Jump to content

Recommended Posts

Posted

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


Posted

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.

Posted

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 section2
goto 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 > nul
goto end

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...