deaconf19 Posted August 23, 2010 Share Posted August 23, 2010 I have a unattended DVD that works great. the only problem is I need to setup different partitions, from what I read I need to use diskpart to do this before the system starts to load. I haven't messed around with a windowPE before so I am not too sure on what I should do to achieve this.How do I get the WindowsPE to load first then create the partitions then have the unattended portion kick off next?Thanks for any help in advance. Link to comment Share on other sites More sharing options...
Tripredacus Posted August 23, 2010 Share Posted August 23, 2010 I think you'll need a wrapper to detect the hardware configuration and launch the appropriate setup. Or instead of detection you could have a choice option. So basically have the winpeshl.ini set to launch your app or script. Select which option, say like this:Option 1: setup.exe /unattend:autounattend1.xmlOption 2: setup.exe /unattend:autounattend2.xmletc. Link to comment Share on other sites More sharing options...
deaconf19 Posted August 24, 2010 Author Share Posted August 24, 2010 Here is my current problem.I needed to create 4 partitions on a server ( C: D: E: I:) I have an unattended DVD that I used for other setups in the past that did not require 4 partitions. I tried to use different commands in the winnt.sif file but came to realize/told/read that you can’t set the partition size or create different partitions using that method. So I did the following in order to achieve this1. Used windows AIK and created a windows PE 3.0 image.2. Mounted the boot.wim and in the Windows/system32 area I modified the startnet.cmd to have formatbat.cmd. Then I added the following files formatbat.cmd and delpart.txt3. The formatbat.cmd contains the following diskpart /s delpart.txtecho Y | format c: /v:Syspart /fs:ntfs /q echo Y | format d: /v:Sysdata /fs:ntfs /q echo Y | format e: /v:Sysdata /fs:ntfs /qecho Y | format i: /v:Sysdata /fs:ntfs /q"D:\i386\winnt32.exe /syspart:c: /unattend:D:\i386\winnt.sif /s:D:\i386"Exit4. Next the delpart.txt has the following Select disk 0cleancreate partition primary size 36864assign letter cActivecreate partition extended create partition logical size 10240assign letter dcreate partition extended create partition logical size 25600assign letter ecreate partition logicalassign letter=iExit5. Then I unmount and commit the image.6. Then I created an .iso and named it tester.iso7. Once the .iso is completed I open the iso with magic iso 8. I added the following files/folder in the root of the tester.iso, these are the exact files I used in my unattended DVD install in which i copied from OEM W2K3 R2 SP2 CD's$OEM$ ADMIN CMPNENTS I386 PRINTERS SUPPORT AUTORUN.INF R2AUTO.EXE SETUP.EXE SLIPSTREAM.INF WIN51 WIN51IA WIN51IA.SP2 WIN52IA.R29. I mount the .iso using the DRAC. The system loads winpe says it partitions the drives but with errors.10. First I have the directory for the unattended install in the formatbat.cmd statically set to d:\ since that is what I first noticed when winpe boots up it set it to that. This causes a problem since I am trying to format a d:\ and it errors out. How do I change this to a different letter?11. Once that completes it appears that windows is going to load but then it stop and reboots without any warnings. I am not sure why this is happeningAny help would be great in my problem.12. I do not have any problems with the below winnt.sif when I boot it from my original dvd so I am not sure if I need to modify anything in here. 13. Any help would be greatly appreciated, if there is a more precise answer in the forums besides what I found please point me there. Once this is done I will gladly post an entire thread on what I have done and my end goal in hopes that others can utilize my help the same way I used it here.http://support.microsoft.com/kb/303906Here is my winnt.sif file [Data]MsDosInitiated="0"InstallDir="\WINNT"winntupgrade="no"win9xupgrade="no"[Unattended]OverwriteOemFilesOnUpgrade=noNtUpgrade=noUnattendmode = FullUnattendedUnattendSwitch = YESOemPreinstall = YESOemSkipEULA = YESTargetPath = WINDOWSFilesystem = ConvertNTFSDUDisable = YESHibernation = NOWaitForReboot = NONoWaitAfterTextMode=1NoWaitAfterGUIMode=1DriverSigningPolicy=IgnoreNonDriverSigningPolicy=Ignore[Display]Xresolution=1024Yresolution=768BitsPerPel=16Vrefresh=75[GuiUnattended]AdminPassword="XXXXXXXXXXXX"TimeZone=235OEMSkipRegional=1OemSkipWelcome=1[LicenseFilePrintData]AutoMode=PerSeat[Components]Iis_common=OffIis_ftp=OffIis_inetmgr=OffIis_internetdataconnector=OffIis_nntp=OffIis_serversideincludes=OffIis_smtp=OffIis_webadmin=OffIis_webdav=OffIis_www=OffIis_www_vdir_scripts=OffIis_asp=OffSCW=Off[UserData]ProductKey="XXXXX-XXXXXX-XXXXXX-XXXX"ComputerName=CHANGEMEFullName="xDEV"OrgName="DEV"[RegionalSettings]LanguageGroup=1Language= "0409"[Networking]InstallDefaultComponents="Yes"[Identification]JoinWorkgroup="Workgroup" Link to comment Share on other sites More sharing options...
Tripredacus Posted August 24, 2010 Share Posted August 24, 2010 10. First I have the directory for the unattended install in the formatbat.cmd statically set to d:\ since that is what I first noticed when winpe boots up it set it to that. This causes a problem since I am trying to format a d:\ and it errors out. How do I change this to a different letter?Add this to your diskpart script:sel vol dassign letter=vChange the assigned letter to what you want it to be. 11. Once that completes it appears that windows is going to load but then it stop and reboots without any warnings. I am not sure why this is happeningAny help would be great in my problem.When the system is booting up, go into the F8 menu and choose the "Disable automatic restart on system failure" so that you can see the STOP error you are getting. Link to comment Share on other sites More sharing options...
deaconf19 Posted August 24, 2010 Author Share Posted August 24, 2010 (edited) I got the drive letter change to work just fine thanks.The problem is when I boot up I push F8 and select "Disable automatic restart on system failure"the systems runs diskpart then it goes into the windows setup and then it says it copies over the files then afterwards it still reboots and the system is not installed.here is the line that I have in my formatbat.cmd after it finishes the formatting of the drivesf:cd \i386winnt32 /syspart:c: /dudisable /makelocalsource /s:f:\i386 /unattend:f:\i386\winnt.sifeverything is in the right places as for the winnt.sif and the i386 directoryany suggestions ? Edited August 25, 2010 by deaconf19 Link to comment Share on other sites More sharing options...
deaconf19 Posted August 25, 2010 Author Share Posted August 25, 2010 I used part of another install that I saw on this forummd c:\installmd c:\distroxcopy x:\install\*.* c:\install /e /yxcopy x:\distro\*.* c:\distro /e /ycd\xppro\i386winnt32 /syspart:c: /dudisable /makelocalsource /s:x:\xppro\i386 /unattend:x:\i386\winnt.sifI assumed that the install and distro had his custom files so I removed that from mine, the cd portion I did not understand sicne he did not specify which drive so I add the f: to mine the cd into the i386. the the last part I subsititued my dirve letters with the ones in the file and removed the xppro directory.I am not sure if I am doing this correctly Link to comment Share on other sites More sharing options...
deaconf19 Posted August 25, 2010 Author Share Posted August 25, 2010 I got it working after reading the switch guide for winnt32 i forgot the /temp directory Link to comment Share on other sites More sharing options...
Tripredacus Posted August 25, 2010 Share Posted August 25, 2010 That's good. I wouldn't be much help on XP installs, because I don't do them that way. Link to comment Share on other sites More sharing options...
deaconf19 Posted August 26, 2010 Author Share Posted August 26, 2010 I do not do XP, This is for windows 2003 R2 SP2Thanks for your help you helped me a lot Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now