Commandline partitioning in DOS

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
Hey guys. I want to make an autorecovery disk for a laptop I am using atm. I can use the laptop, but I have to restore Windows 98 back if they want it back. That chance is rather slim, but present nevertheless. Anyway I want to make a recovery disc that does the following automagically:
- repartitioning the harddrive in 3 parts, one Windows partition, one data partition and one backup partition (all FAT32).
- copy the Ghost image from cd-rom to the backup partition
- fire up Ghost using the commandline to restore the image back to the Windows partition.

The last two things aren't difficult, it's the first one I am having questions about. As I want to make a cd that I pop in the drive, and should do it's work automagically I want to know if there is a commandline app that I can use to partition the drive the way I want. I have Partition Magic 8.01, but I can't see anything in the docs about commandline partitioning. This all has to work in DOS real mode, as I would be using bootup discs to bootup the computer.
 
the dos command fdisk will do all you need for partitioning
 
Yes, but it can't do commandline thingies. What I mean is something like:
Code:
<app name> -c PRIMARY -s 2GB -t FAT32 -o ACTIVE
<app name> -c EXTENDED -s 4GB
<app name> -c LOGICAL -s 2GB -t FAT32
<app name> -c LOGICAL -s 2GB -t FAT32
etc etc etc
That kind of commandline applications. With fdisk you can only use /?, /STATUS, /X and /MBR.
 
Khayman said:
oh i see, you want a script that will do it automaticaly. Well then ... nevermind :)

how about this program? http://support.microsoft.com/kb/300415
No, I need a DOS program, because I will boot the computer from a floppy or CD-ROM. The program you mentioned is built into Windows XP.

We're getting closer :p Now I need a mix between diskpart and fdisk and I am happy :)
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,623
Latest member
AndersonLo
Back