Solved Hard drive legal device name at DOS prompt

June 14, 2014 at 04:06:13
Specs: Windows 2000
What is the legal device name for a hard drive at the DOS prompt (format/syntax)?

I want to refer to a specific hard drive & partition by its legal device name

I assume it is something like [\\harddrive2\partition1], but I've tried various combinations that do NOT work:
For instance, when running NFI I get the message [\\harddrive2\partition1] is not a legal device name

Thanks, Tracey
Microsoft has the NFI utility to find out what file is at a specified sector: <nfi> <device> <sector.number>

See More: Hard drive legal device name at DOS prompt

Report •

June 14, 2014 at 05:29:45
✔ Best Answer
Just use the drive letter. E.g.

nfi C: 12345

P.S. If, for some reason, you really want to use the device names rather than the drive letter they are of the format




You really need to use WinObj to discover the correct names on your system, but you could try a few guesses I suppose

message edited by ijack

Report •

June 14, 2014 at 17:17:14
I gave the wrong example (I should not have put the partition reference).
I want to know how to view the file name (or whatever the contents referenced) in a disk sector (not a partition sector).

How do I use NFI to reference the disk sector?
Thanks, Tracey

I tried both of your examples with the following results (I may be wrong on the drive number):
nfi \Device\HarddiskVolume1 6160466
***Physical sector 6160466 (0x5e0052) is not in any partition on \Device\HarddiskVolume1, or \Device\HarddiskVolume1 is not a legal device name.
nfi \Device\Harddisk1 6160466
***Physical sector 6160466 (0x5e0052) is not in any partition on \Device\Harddisk1, or \Device\Harddisk1 is not a legal device name.

I have a disk testing program that discovered bad sectors: the program reports both the disk sector and the partition sector:
Event: All data was completely recovered from this damaged sector
Drive Sector: 6160466
Partition Sector: 6160403

According to the Disk Manager, the disk is:
Disk 1
IDE (Port:0, Target ID:1, LUN:0)
Primary IDE Channel
Disk 1 has drive letters P: and Q:

nfi P: 6160403
***Logical sector 6160403 (0x5e0013) on drive P is in file number 2.
Log File ($LogFile)
$FILE_NAME (resident)
$DATA (nonresident)
logical sectors 6160368-6291439 (0x5dfff0-0x5fffef)

Report •

June 15, 2014 at 16:33:00
WinObj now requires XP or later :-(

Does any know of a site that has WinObj for w2k?

Report •

Related Solutions

June 29, 2014 at 16:40:20
This claims it will work on Windows 2000:

Always pop back and let us know the outcome - thanks

Report •

Ask Question