Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

WinPE Diskpart problem

- - - - -

  • Please log in to reply
3 replies to this topic

#1
pr1ngl3

pr1ngl3
  • Member
  • 3 posts
  • Joined 30-June 11
  • OS:none specified
I hope someone can help with this urgent issue.

I use WinPE on a USB Thumb drive to install 2003 server. A quick summary of the process

Boot from USB drive using syslinux bootloader (menu driven loader)
Boot WinPE ISO via Grub Loader (syslinux will not load the iso)
From WinPE, use Diskpart to Clean, Partition and make active HDD
Format HDD (Logical Drive) to NTFS
Copy over bootfiles (NTDetect, NTLDR etc etc)
Copy over sysprep image
Reboot machine and let it install from sysprepMy linked Image

All this works fine on a machine running RAID 5 over 3 SAS disks; however the problem i'm having is getting this to work on a machine running RAID 5 over 3 SCSI disks. (both have only 1 logical drive)

It partitons the Logical Drive and marks it as active but when the system reboots, it sticks on 'Error loading operating system'

If I run the same process but instead of using a USB device, run WinPE from a CD (and altering the DiskPart commands as required), it will work fine. In addition to this, if I run the above steps from a USB device twice, it will work. I have tried the MBRFIX tool from Here to no avail, I have also tried the Vista Bootsect.exe tool to no avail.

Here are the Diskpart commands I am running (they are all batched)

Booting WinPE from CD
select disk 0
clean
select volume 0
assign letter=E: <<< CD Drive
select disk 0 <<< Logical Drive
create partition primary
assign letter=C:
select partition 1
active
exit

format c:\ /fs:NTFS /Q /Y

This will work on both the SCSI and SAS RAID 5 from CD

Booting WinPE from USB
select volume 1
assign letter z: <<< USB Drive
select disk 1 <<< Lofical drive, now 1 because USB takes 0
clean
create partition primary
assign letter=C:
select partition 1
active
exit

format c:\ /fs:NTFS /Q /Y

This works on the SAS RAID 5 from USB but not the SCSI RAID 5, it hangs on 'Error loading operating system'
It reports that it has succeeded in all steps and if I boot off the USB drive again and check the partition, everything seems fine.
If I run the same procedure again, it will work fine

Before anyone asks, I have checked that the Disks, Volumes and partitions I am referencing in the diskpart commands are infact the correct ones.

Please help as this is very urgent...


Thanks in advance

I have since discovered this also happens to the SAS drives. It only occurs when the RAID set gets deleted and recreated.

Edited by pr1ngl3, 30 June 2011 - 07:18 AM.



How to remove advertisement from MSFN

#2
Kullenen_Ask

Kullenen_Ask

    Advanced Member

  • Member
  • PipPipPip
  • 314 posts
  • Joined 10-September 04
  • OS:XP Pro x86
  • Country: Country Flag
bootsect /nt52 c: /force /mbr

#3
pr1ngl3

pr1ngl3
  • Member
  • 3 posts
  • Joined 30-June 11
  • OS:none specified

bootsect /nt52 c: /force /mbr


Thanks for the reply, but I had already tried this and it does not work.

#4
killerb255

killerb255

    Member

  • Member
  • PipPip
  • 102 posts
  • Joined 26-May 07
Edit the registry of your PE before running the diskpart command:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vds\Alignment]
@="Alignment Settings in Bytes"
"Between4_8GB"=dword:0
"Between8_32GB"=dword:0
"GreaterThan32GB"=dword:0
"LessThan4GB"=dword:0





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users