Want to make one cd with a bootable WinXP and automatically making partitions.

Posted on 2005-04-14
Last Modified: 2008-02-01
Hi all,

I am trying to make one cd, with on it a bootable Unattended Windows XP with SP2, but also I want to use the gdisk on it to automatically make 3 partions. (must be NTFS, so I will add an fat32 to NTFS converter into the winnt.sif)

1: I have a script for making the partitions and
2: I can make a bootable Windows XP with SP2 (using Nlite for this)
but how can I add both things on ONE cd.

So when I put the cd in it I want to first create 3 partitions and when that has happened it must automatically start the unattended Windows XP installation.

1: using gdisk to make 3 partitions.
    problem is: how can I make this bootable.
2: getting one cd with both the bootable gdisk and the bootable windows xp.
    problem is: how to make a bootable disk with both on it.
3: getting the gdisk.bat to automatically start the unattended windows XP installation.
    problem: how to create a script that first will run the gdisk and after that redirects to the winnt.exe on the Windows XP.

Gdisk to create the partitions (not yet know how to make it start the Windows XP installation):

gdisk.exe 1 /del /all
gdisk.exe 1 /cre /pri /sz:10240 /for /q
gdisk.exe 1 /cre /ext
gdisk.exe 1 /cre /log /sz: /for /q
gdisk.exe 1 /cre /log /sz:10240 /for /q
gdisk.exe /r

Maybe I can add something here that the script will run this and after that make a .txt file when restarting and then checking if a .txt file is there so it will go to an install section where a script must be to start the Unattended Windows XP.

Hope you guys and/or girls can help me.

thnx alot so far.

regards Pieter
Question by:Seal9
    LVL 21

    Accepted Solution

    I would use an image of a dos boot disk as a "boot sector" for the CD. (for example the Ultimate boot disk -
    In nearly every cd burning program you can choose drive A: as the source for the boot sector.

    Customize the autoexec.bat of the disk to your needs so it creates the partitions from there and at the end of the file start the setup with the appropriate switches. To make this work you have to know which drive letter your cdrom drive gets.

    This links to a dos script to detect the drive letter...

    Hope that helps...


    Author Comment

    Thnx for your help,

    I used Barts way to make a bootable cd and now I have

    |-rest of windows dir.
    |autorun.bat (customized to my needs)

    The gdisk thing worked very good only when Windows XP starts his installation I get errors that he can't copy certain files that are needed. When I try the standalone WinXP cd it gives no errors and when I make the customized cd I get these copy errors.

    Allready tried to copy the files from the orignial cd to my cd but still the errors are there.

    sv-262... .png files

    those files give the copy errors so I tried to get them from the origninal cd (this cd works) but I still get those errors.

    have no idea how to sort this out.

    btw my partitions are all FAT32 and I will convert them to NTFS when I am in windows.

    I hope anyone can help me :(.

    thnx so far

    Author Comment

    Ok I fixed the problem above.

    Had to set the burning software making the bootable dvd on DOS mode.

    So I want to JBlond for responding to my problem, its all fixed now.

    thnx alot

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now