RE: locking and unlocking a drive

Lock/dismount/unlock operate on a file-system’s volume DO, not on the
disk driver’s raw disk DO.

If the instructions to repartition don’t go through the disk driver, it
isn’t necessarily going to recognize the new partition layout (the
Win2000 DDK sample disk class driver updates partitions on receipt of
IOCTL_DISK_GET_DRIVE_LAYOUT, but the NT 4 DDK sample does not), and
so it may not create partition device objects.

Without a device object for the partition, there is nothing for a
drive letter to point to.

If you want to dismount the raw file-system volume for the entire disk,
you want to connect to the raw (Partition0) disk device object, via a
PhysicalDriveN: symbolic link.


Dave Cox
Hewlett-Packard Co.
HPSO/SSMO (Santa Barbara)
https://ecardfile.com/id/Dave+Cox

-----Original Message-----
From: ANISH NAIR [mailto:xxxxx@nestec.net]
Sent: Wednesday, May 24, 2000 5:41 AM
To: NT Developers Interest List
Subject: [ntdev] locking and unlocking a drive

Hi all,
I have a problem.
How to lock and Dismount a volume in a drive which has no current partitions
i.e. without any drive letters?

The scenario is:
I have created a partition and formatted (FAT) the same with my own code.
But the NT Explorer doesn’t recognize the partition or assign drive letter
to it until reboot, and Windisk shows the partition as Unknown.
After rebooting everything works fine.
This is because I couldn’t Lock and Dismount the volume without the drive
letter.

Is there any way to make NT assign drive letter to a new partition without
rebooting?

Any Information regarding this would be highly appreciated.

Warm Regards
Anish


You are currently subscribed to ntdev as: david_cox2@hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)