BartPE and cd drive

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using bartpe to automate the prosses of creating unattende images.
from the cd we start diskpart /s d:\diskpart.txt through a cmd file.
The problem is that bartpe makes the disk drive d or x depending on the
system we are booting the cd from.
Is there an easy way to resolve this?
 
As of Windows XP SP2, and later in Windows Server 2003 SP1, WinPE behavior
changed to always have the boot drive letter be X:. It used to be X: only
when booted from RIS, and another (variable) drive letter when booted from a
HDD or CD, depending on the partitions and drives already on the system.
Previously there was no way to know what the letter would be when booted
from anything other than RIS. Now it is always X:. That is the default
behavior for WinPE - BartPE should be the same, since it is just
reverse-engineered WinPE.
 
Not sure that i get you correctly but if you got your diskpart script on the
same media as you boot from you can either skip the driveletter and just do
a diskpart /s \diskpart.txt or if that doesn't work try a diskpart /S
%systemdrive%\diskpart.txt
 
Back
Top