Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
/dev/sdb1  

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
add comment

1 Answer 1

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
1  
@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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.