wod Posted April 21, 2005 Posted April 21, 2005 Hi,I am working at an unattended setup with XP over PXE.My problem is fdisk because it needs a reboot.I need an tool that partitio and format my harddisc without reboot.Is this possible?My Bootimage starts DOS 7 (WIN98 DOS).Thanks
Martin Zugec Posted April 22, 2005 Posted April 22, 2005 Nope, it is not - there are two workarounds:1.)If you use WinPE + diskpart, you can run winnt32 with parameter, so it wont need restart.2.) You can (I use this solution) use gdisk and automatically check the name of partision - it it will be different from HDDReady, then you will delete + create new partition with name HDDReady. If you would like, I can post a code here.
wod Posted April 26, 2005 Author Posted April 26, 2005 Hi Soulin,please post the code with gdisk.Thanks
Martin Zugec Posted April 26, 2005 Posted April 26, 2005 This is the part, where you control if name of partition is hddinst (ready for installation, e.g. gdisk was run before. Section2 is where installation continue. %ramd%\gdisk\gdisk.exe 1 /status|%ramd%\gdisk\find.exe /i "hddinst"if not errorlevel 1 goto section2goto gdisk :gdisk%ramd%\gdisk\gdisk.exe 1 /mbr /wipe /y > nul%ramd%\gdisk\gdisk.exe 1 /cre /pri /sz:4096 /for /v:hddinst%ramd%\gdisk\reboot.com /c > nulgoto end
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