Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is an example of a mounted USB key under Linux. It's a file that can be viewed as hexa, edited, .. etc, but not used to manipulate device via serial communication protocol.

Simply, Can you provide me with a same path under Windows ?
In other words, where does windows saving mounted devices files !

share|improve this question
up vote 2 down vote accepted

Can you provide me with a same path under Windows ?

Yes, \\.\PhysicalDrive1.

Not all programs can access such paths, however. I've been using HxD myself.

See also this answer for more detailed information on how Windows treats disks.

Every disk, partition, and volume has several names under \Device in the NT namespace. For example:

  • (NT) \Device\Harddisk0\DR0 – first hard disk (entire disk)
  • (NT) \Device\Harddisk0\Partition0 – first hard disk (entire disk)
  • (NT) \Device\Harddisk1\Partition1 – second hard disk, first partition
  • (NT) \Device\Floppy0 – first floppy drive
  • (NT) \Device\HarddiskVolume1 – first volume (usually a partition, but it's possible to have a single volume spanning multiple disks, similar to LVM in Linux)
  • (NT) \ArcName\multi(0)disk(0)rdisk(1)partition(3) – second hard disk, third partition (using an ARC name)

They are accessible from Win32 device namespace by prefixing \\.\GLOBALROOT, such as \\.\GLOBALROOT\Device\Floppy0 and so on.

The Win32 device namespace, \\.\, also has symbolic links to specific devices, for more convenient usage. For example:

  • (Win32) \\.\C: – volume by its drive letter
  • (Win32) \\.\Volume{93e657ad-64a8-11df-b394-806d6172685f} – volume by its GUID
  • (Win32) \\.\PhysicalDrive0 – entire physical disk

(The paths which point to volumes also work in the Win32 file namespace \\?\: for example, \\?\Volume{93e657ad-64a8-11df-b394-806d6172685f}\WINDOWS\Notepad.exe or \\?\C:\Program Files. The Win32 file namespace can be used to bypass the 253 character limit in file names, as described in the namespace article.)

You can see the NT namespace with WinObj. (The Win32 device namespace is accessible in WinObj too, in the directory (NT) \GLOBAL??\.)

share|improve this answer
+1 WinObj link :) – Ahmed Ghoneim Jun 8 '12 at 12:43
@AhmedGhoneim: I updated the answer a little – I had mixed up the namespace prefixes; it should have been \\.\ , not \\?\ . (Also, in WinObj, \ is the NT namespace, and \GLOBAL?? is the Win32 namespace.) – grawity Jun 8 '12 at 13:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .