Reading boot sector from kernel mode

Hi,
how do I read logical sectors from kernel mode? I need to read the boot sector.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Assemble IRP_MJ_READ by hand and send it down to the disk device.

Max

----- Original Message -----
From: Ratmil Torres
To: File Systems Developers
Sent: Wednesday, October 31, 2001 5:53 PM
Subject: [ntfsd] Reading boot sector from kernel mode

Hi,
how do I read logical sectors from kernel mode? I need to read the boot sector.

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>“Ratmil Torres” wrote in message news:xxxxx@ntfsd…
>Hi,
>how do I read logical sectors from kernel mode? I need to read the boot
sector.
>

As Max said, or (alternatively) if it’s the partiton info that you want, can
send an IOCTL_DISK_GET_DRIVE_LAYOUT_EX to the disk driver. Very easy.

Peter


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com