WinPE and Advanced Format Drives how to use diskpart.exe to create an aligned partition?
#1
Posted 02 August 2011 - 11:21 AM
I'm currently using WinPE 3.0 patched with KB982018 and used DISM to add the current Intel Rapid Storage drivers to my WinPE USB stick.
But what I'm not getting is how do you create a partition with Diskpart that is AFHDD aligned?
I read online that you can "create partition primary align=1024" but this doesn't work.
is this something I have to go to WinPE 3.1 for? I've searched through google and I haven't found squat. The only thing I've seen works so far is to make a misaligned partion, deploy my Win7 wim file and realign it later with Dell's paragon tools.
But how do I use diskpart to align the partition correctly right out of the gate so I don't have to use those Paragon tools?
Thanks in advance!
#2
Posted 02 August 2011 - 12:03 PM
VoodooV, on 02 August 2011 - 11:21 AM, said:
Maybe you have the "wrong" (actually "right", but "old style"
Compare with:
http://www.911cd.net...topic=21186&hl=
http://www.911cd.net...pic=21186&st=18
The manual way should have worked allright though:
VoodooV, on 02 August 2011 - 11:21 AM, said:
Which EXACT version of diskpart do you have running?
jaclaz
#3
Posted 02 August 2011 - 12:28 PM
the error I get when I do that alignment of 1024 is "The specified alignment is not a multiple of the sector size" Just for grins I tried 4096 too but same error.
I checked the registry. all the alignment entries are set to "0x00100000" except for "less than 4gb" which is "0x00010000"
#4
Posted 02 August 2011 - 12:44 PM
VoodooV, on 02 August 2011 - 12:28 PM, said:
the error I get when I do that alignment of 1024 is "The specified alignment is not a multiple of the sector size" Just for grins I tried 4096 too but same error.
I checked the registry. all the alignment entries are set to "0x00100000" except for "less than 4gb" which is "0x00010000"
Version should be allright.
Maybe it's a different issue, i.e. the PE *somehow* not getting the "right" sector size from the disk (or from the disk controller)?
The "Advanced format" drives are 4096 bytes/sectors, right?
OR, is the partition NOT at the beginning of the disk?
http://technet.micro...465(WS.10).aspx
In other words, does this happen on a RAW disk when you run the EXACT command:
create partition primary size=<size> offset=n align=1024
of course with the actual value for <size>
or, if you prefer what happens if you only run:
create partition primary size=<size>
which alignment is created?
jaclaz
#5
Posted 02 August 2011 - 01:35 PM
This post has been edited by allen2: 02 August 2011 - 01:39 PM
#6
Posted 02 August 2011 - 04:15 PM
jaclaz, on 02 August 2011 - 12:44 PM, said:
The "Advanced format" drives are 4096 bytes/sectors, right?
I was concerned about this too. I thought that WinPE didn't have the right mass storage driver. Dell's documentation of AFHDD also refers to making sure you have the most current MSD drivers
http://www.delltechc...bid=f0S9sYjriTs
So I downloaded the RapidStore drivers from Dell. All the documentation I saw about adding mass storage drivers to WinPE talked about adding entries to a winpeoem.sif file in WinPE. I could not find this file for the life of me. (supposed to be in system32, but I couldn't find it anywhere) It later occurred to me that all that documention might have referred to older versions of WinPE so I used DISM to add the drivers to the boot.wim file. It claims to have added the drivers successfully...but how do I verify this? Is there a WinPE equivalent to Device Manager? I tried going into diskpart and doing a "detail disk" on drive 0 but none of the information seems to pertain to what driver it's using.
As a side bar. I have been trying to get on WinPE 3.1 in case that's the solution to this problem, but I'm also running into a weird problem there. I'm on a new computer so I downloaded both WAIK and the supplement isos. I mounted the isos with MagicISO and installed WAIK, then mounted the supplement iso, but when I run the xcopy command to copy over the supplement files. I get an error in the middle of the copy process that the target does not support symbolic links. Anyone know how to fix this? My google-fu has failed me on this issue too! Is there anyway to get a WAIK that has the supplement built right into it?
I'll have to run those diskpart commands tomorrow afternoon. so I'll get back to you then.
#7
Posted 02 August 2011 - 04:31 PM
#8
Posted 03 August 2011 - 08:42 AM
VoodooV, on 02 August 2011 - 04:15 PM, said:
First, the winpeoem.sif is for the old version of WinPE, v1.5 based on XP.
You don't have a "device manager" per se, but you can see what drivers are in your boot.wim. In fact, you should use this to get those x64 drivers out before you put in the correct 32bit drivers.
DISM /IMAGE:c:\winpe_x86\mount /GET-DRIVERS
This will give you a list of the drivers you have installed, including the original filename and the new filename. Find your original filename, which will show the version too, and make note of the installed filename. You'd remove it like this:
DISM /IMAGE:c:\winpe_x86\mount /REMOVE-DRIVER /DRIVER:oem22.inf
Of course you already know how to add the drivers.
#9
Posted 03 August 2011 - 02:54 PM
select disk 0
clean
create partition primary
select part 1
active
assign letter=c:
format fs=ntfs
both the dellafdt.exe tool and the paragon disk tools confirm that the partitions are properly aligned.
The only other thing I had to do was use dism to add KB982018 and the updated 64bit RapidStore drivers after laying down my Win7 wim image.
The only remaining issue is just what I mentioned before about copying over the WAIK supplement and getting the error about not supporting symbolic links. Anyone got any clues on that one? I'll try installing it on another machine to see if I can recreate the issue
EDIT: Thanks Tripredacus, I'll remember that. I didn't see your post until after I updated the wim with the 32 bit drivers so the 64bit drivers are still in there but it appears not to have caused a problem. Ultimately I want to get on WinPE 3.1 AND build a new Win7 SP1 sysprep image that has all this stuff pre-added in. but this at least gets me moving forward and understanding the factors at play here.
This post has been edited by VoodooV: 03 August 2011 - 03:00 PM
#10
Posted 04 August 2011 - 08:45 AM
This all just leads to documenting what drivers are put in there. And if I have to do an update, need to look for the old ones, take them out, put new ones in. Oh well.
#11
Posted 08 September 2011 - 04:04 PM
- ← terminal services in winpe 3.0
- Windows PE
- [GUIDE] Creating WIM images of Windows for system deployment using PE →



Help
Back to top










