MSFN Forum: system reserved partition drive letter - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

system reserved partition drive letter diskpart is adding a drive letter for the system reserved partition

#1 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 26 July 2012 - 12:52 PM

has anyone found a way to get the system reserved partition to create w/o assigning a drive letter to it?

I'm trying to get the install so that it looks like a standard windows install and cannot for the life of me figure this out.

I've even tried this on the volume - in the pre and post configuration.

diskpart
sel disk 0
sel vol 1
attributes vol set nodefaultdriveletter


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 27 July 2012 - 09:52 AM

How are you installing? Are you using an answer file?

#3 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 31 July 2012 - 06:01 AM

I'm using an answer file, and then capturing the image with gimagex.

I've only been capturing the windows partition.

#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 31 July 2012 - 07:52 AM

Ok, so you have an image now and need to deploy it, is that where you are getting this problem? Are you using Gimagex or Setup to deploy your image?

#5 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 31 July 2012 - 08:26 AM

I'm using imagex to do the deploy.

here's how I'm doing it
- boot into winpe
- map drive
- run diskpart script - standard script from microsoft

select disk 0
clean
create partition primary size=300
select partition 1
format fs=ntfs label="System Reserved"
assign letter=S
active
create partition primary size=102400
select partition 2
format fs=ntfs label="Windows" quick
assign letter=W
active
exit

- Then apply the wim file to the windows partition
imagex /apply f:\2008r2\2008r2ent.wim 1 w:\

- Then run these commands to make the device bootable
bcdboot w:\windows /s w:
bootsect /nt60 w:

after that re-boot and off I go.

#6 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 31 July 2012 - 01:47 PM

Don't assign the System Reserved a drive letter at all with your diskpart script.

And you can't set 2 partitions to be active, so remove the active on the "W" volume.

#7 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 31 July 2012 - 04:54 PM

I took out the drive letter for the system reserved and it's still assigning one on bootup.

it's just strange that diskpart script is right from microsoft.

the w: drive changes to c: on bootup.

#8 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 31 July 2012 - 05:07 PM

Is your image generalized?

#9 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 01 August 2012 - 05:27 AM

yes the image is.

I only capture the windows partition not the system reserved partition, I'm thinking about doing that next and then recreating the boot files.

I've also tried not assigning a drive through diskpart and the drive is still getting created.

#10 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 August 2012 - 07:35 AM

change your line:

Quote

create partition primary size=300

to:

Quote

create partition msr size=300


#11 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 01 August 2012 - 09:44 AM

The MSR setting is only used in a GPT type format. The user's posted diskpart script does not mention switching to GPT mode. I'm fairly certain that Diskpart is smart enough to throw an error if you try to make an MSR partition on an MBR disk.

#12 User is offline   JFX 

  • Member
  • PipPip
  • Group: Members
  • Posts: 264
  • Joined: 17-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 August 2012 - 10:52 AM

View PostTripredacus, on 01 August 2012 - 09:44 AM, said:

The MSR setting is only used in a GPT type format. The user's posted diskpart script does not mention switching to GPT mode. I'm fairly certain that Diskpart is smart enough to throw an error if you try to make an MSR partition on an MBR disk.


You right this is only for GPT and don't work with MBR.
So i guess while the Windows Setup create the system reserved it also set a new registry setting for the new Windows installation, that prevents a drive letter.

Posted Image

#13 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 01 August 2012 - 04:59 PM

I actually tried something today

- imaged a 2008r2 device
- removed the drive letter
- rebooted
- boots no problem.

no idea why this is adding a drive letter.

#14 User is offline   mobious99 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 28-May 08

Posted 02 August 2012 - 07:11 AM

I'm going to add this to my startup script

rem remove system reserved drive letter

diskpart /s removehiddent.txt

removehidden.txt has the following lines in it..

SEL VOL 0
REMOVE LETTER=D

Where d: is the drive that always gets assigned to the system reserved partition.

It's got to be something sysprep / winpe is doing because when I boot off my winpe cd I see two drive letters.

#15 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 02 August 2012 - 08:16 AM

View Postmobious99, on 02 August 2012 - 07:11 AM, said:

It's got to be something sysprep / winpe is doing because when I boot off my winpe cd I see two drive letters.


That is normal to see the System Reserved get a drive letter in WinPE when booting on a system with an existing OS.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy