Help - Search - Members - Calendar
Full Version: how can i change the boot drive letter ( BartPE +xpe)
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
lyh728
BartPE 3.13 + xpe1.04

from xp sp2 , the boot disk letter has changed to X:

how can disable this feature ,just let behave as xp sp1

i google much ,but i do not find answer
thanks in advance
mats
Well acctually you can't

it's hardcoded in the code according to MS
ChrisBaksa
QUOTE (mats @ Nov 10 2005, 10:41 AM) *
Well acctually you can't

it's hardcoded in the code according to MS


Correct.
You would have to Hack it to change it.

Some advice... Change all your hard coded drive letter values to %SYSTEMDRIVE% instead. Then you never have to worry about it.

Chris
lyh728
QUOTE (ChrisBaksa @ Nov 11 2005, 07:24 AM) *
QUOTE (mats @ Nov 10 2005, 10:41 AM) *

Well acctually you can't

it's hardcoded in the code according to MS


Correct.
You would have to Hack it to change it.

Some advice... Change all your hard coded drive letter values to %SYSTEMDRIVE% instead. Then you never have to worry about it.

Chris

i know %SYSTEMDRIVE%, if pe run from cdrom , X: will be ok

but i like to put winpe on the harddisk
when pe start , the original c: will be x:
original d: be c: now

can u tell me x: hardcoded in which file? i guess it is in ntoskrnl.exe, but i can not find that
getwired
It's not in the kernel.
lyh728
getwired,
can u tell me where is it?
jetman
QUOTE (ChrisBaksa @ Nov 11 2005, 07:24 AM) *
QUOTE (mats @ Nov 10 2005, 10:41 AM) *

Well acctually you can't

it's hardcoded in the code according to MS


Correct.
You would have to Hack it to change it.

Some advice... Change all your hard coded drive letter values to %SYSTEMDRIVE% instead. Then you never have to worry about it.

Chris


Actually, I was just about to start a topic on this very subj. As I read the msgs in the thread, it suddenly dawned on me how to do this. One needs a batch script to boot the WINNT32 installer and in the batch script, one needs to change the SYSTEMDRIVE environment variable to the drive where the XP installation directory is. I'm not sure if this will work (probably will have to redefine SYSTEMDRIVE prior to booting WINNT32 and put it back to its original def after WINNT32 exits.) However, you'd have to change the SYSTEMDRIVE def via the registry, bec trying to change it using a simple scripted env variable (via the SET cmd) won't work. HTH....Jet
mats
If i get your basic problem right. It is that you need to know where your original c: drive went?

I can think of a few ways to handle this.

The simplest one is to use a %targetdrive% in your scripts or whatever. In your startup script you will have to check if ofr example c:\boot.ini exists. If it does targetdrive should be set to c: if it doesn't check for x:\boot.ini if that exists. If that exists set targetdrive to X.
lyh728
QUOTE (mats @ Nov 15 2005, 10:37 AM) *
If i get your basic problem right. It is that you need to know where your original c: drive went?

I can think of a few ways to handle this.

The simplest one is to use a %targetdrive% in your scripts or whatever. In your startup script you will have to check if ofr example c:\boot.ini exists. If it does targetdrive should be set to c: if it doesn't check for x:\boot.ini if that exists. If that exists set targetdrive to X.


i just want to harddisk driver layout as normal
i write a script , change the driver layout as xp sp1
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.