Help - Search - Members - Calendar
Full Version: CD-ROM drive letter - how to change
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
xphilz
G'Day all,

Wondering if anyone knows how to set a permanent drive letter for the PE cd so each time it boots it will always be a certain drive letter.

EG\ want it to always be P drive.

Cheers,
Phil
Br4tt3
Dunno if u have a special criteria for wanting the PE to assign a special drive letter to the CD as you could manage most circumstances with PE to refer it to as %systemdrive% variable.

I use this variable to run appz off the WinPE CD (path). Check out:

http://www.msfn.org/board/index.php?showtopic=18150&st=10
xphilz
Hey there Br4tt3,

Thanks for taking the time to reply.

I actaully posted to the WinPE newsgroups @ M$ as well this question (with more detail)

<SNIP>

This is particularly important for me as I have Compaq
servers with the 44MB system partition, then I need to
create 2 extra partitions as C and D, but the issue is
that the CDRom will already have taken D drive, so my new
partition ends up as C and E.

I am aware I can use DiskPart to change the CD drive
letter, but this is not helpful as I have to reboot after
the change which is time consuming and causes more
scripting as I am trying to do this automagically.

It would be far easier to be able to force the PE CD to
default to a particular drive letter.

<\SNIP>

...and I got this following reply...

<SNIP>

WinPE will assign itself the next available drive letter there is nothing
that can be done to change this. The drive letters assigned while running
WinPE will not be the same assignments once the OS is installed to the
drive.

Regardless if you assign the second partition as letter E: after a single
reboot it will be seen as drive D: and WinPE will be moved up to letter E:

<\SNIP>

I will do some more testing around this theory, but I was pretty sure from my initial testing that this wasn't the case....but as I said, I will test it more thoroughly to see the outcome. I'll post my results once I get this done.

thumbup.gif
likuidkewl
I have found that if you use a a program called getcd.exe, say called from a batchfile that it makes this X:, any other time it has been the next available drive letter.
Br4tt3
Yup... I have used the Iceman solution, detectCD.exe I think it was called... and then modified his code somewhat to comply for personal reasons...

Check that one out and see if it helps u aswell...

http://icemannd.msfnhosting.com/index.htm?...tm&detectcd.htm

Guess it will get down to try and error... GL
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.