Commandline partitioning in DOS

Discussion in 'Windows Desktop Systems' started by Glaanieboy, Jan 9, 2005.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    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.
     
  2. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    the dos command fdisk will do all you need for partitioning
     
  3. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    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.
     
  4. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
  5. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    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 :)
     
  6. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
  7. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands