Actually, if the disk is removable, the first sector IS the boot record
and not an MBR.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pashupati Kumar
Sent: Friday, August 02, 2002 9:51 AM
To: File Systems Developers
Subject: [ntfsd] RE: Yet Another Target Link Question
The first sector of a disk isn’t a boot sector rather it has MBR. On
Windows, first 63 sectors of the disk are skipped.It is supposed to be
used
by kernel mode drivers. If you want to read file system boot sector, use
IOCTLS to map from drive letter to physical drives.On NT , you can use
GET_PARTITION_INFORMATION and on 2k and above use
GET_VOLUME_DISK_EXTENTS( check for exact IOCTLS).
thanks
-----Original Message-----
From: Bob Loewer [mailto:xxxxx@jamesbimen.com]
Sent: Friday, August 02, 2002 7:33 AM
To: File Systems Developers
Subject: [ntfsd] Yet Another Target Link Question
Hi–
My task is to directly read the boot sector on the windows system drive
from the kernel on W2K & XP.
\DosDevices\PhysicalDrive0 provides access to the first sector of the
first hard drive; this is usually drive C:. But I understand that in
some cases, say SCSI drives,
\DosDevices\PhysicalDrive0 may not be drive C:.
Given a (boot disk) drive letter, I have been trying the
ZwOpenDirectoryObject () / ZwOpenSymbolicLinkObject combination but
receive back a partition link (e.g., \Device\HarddiskVolume2) which is
NOT a reference to the drive boot sector.
I’ve read the archives and gleaned info but not enough to put my finger
on what I need.
So, here’s the question:
Given a drive letter of the boot drive (e.g., C:), how does one obtain a
target link to the
boot sector of that drive that will resolve correctly for mixed fixed
drive types (SCSI, IDE).
Bob Loewer
You are currently subscribed to ntfsd as: xxxxx@Legato.COM
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%