Jump to content

Just found a way to automate partitionning...


Recommended Posts

PQDisk is a scriptable version of PowerQuest® PartitionMagic®. It is intended for use by PC configuration centers and corporations that need to configure large numbers of PCs. Unlike PartitionMagic, PQDisk has no interactive user interface. It uses ASCII text script files based on the PartitionMagic Pro scripting language to specify operations that create and manipulate the computer?s hard disk partitions. PQDisk provides optional log and error files and can display script execution progress status. The log file details the operation of each script command. Error files contain only the error number so it can be easily parsed for automated processes.

You can use PQDisk to create, format, copy, move, resize and delete partitions. Additional operations are also available to display information about partitions, test bad sectors, analyze clusters, convert file system types, and change a partition?s status (active, hidden).

To allow better control over PQDisk?s behavior, many of the constraints built into the retail version of PartitionMagic are disabled in PQDisk. For example when a primary partition is hidden or unhidden with PQDisk, other primary partitions are not affected, whereas if you set one primary partition active with PartitionMagic, all other primary partitions on that hard disk are hidden.

PQDisk uses a three-step process to perform partition operations. The first step selects the physical disk where the partition is located, the second step is to select a free space or defined partition, and the third is to select the operation. You can also specify various options for each operation.

PQDisk functions on computer systems with hardware-based RAID systems. It will not function on software-based RAID systems.

PQDisk v7.01 is part of the PowerQuest Deploy Toolkit v2.51, witch is part of the PowerQuest DeployCenter Library 2.0...

h**p://www.powerquest.com/deploycenterlibrary/

calling:

pqdisk /CMD=formatcd.txt /DSS /LOG=pmdisk.log /IHF

Will format my C:, D: and E: as NTFS... Just put it on a boot floppy (I call it via CDShell)

PQDisk is ~500 kb

Select Drive 1

Select Partition C

Check

Format /FS=NTFS /Label="Windows"

Select Partition D

Check

Format /FS=NTFS /Label="Prog"

Select Partition E

Check

Format /FS=NTFS /Label="Data"

Link to comment
Share on other sites


thanx evilvoice... But dos doesnt like ntfs drives so there is no C: d: and e: for me...

Ausmith: I'm using dos boot floppies (Win98). Those are included with my cd because they are much more small than PE... and just to format a drive I'm not sure I need a full cd wich takes 5 minutes to load...:rolleyes: I'm actually using Acronis Partition Expert and since I do many testing in vmware, I was looking for a way to automate the formating.

The format from the win98 disk doesnt support ntfs (:D) and XP's one can't run in dos... (**** dos..:D)

Will continue my search for something :)

Link to comment
Share on other sites

Why not just use the

Filesystem=ConvertNTFS

line in Winnt.sif?

Personally I'd be somewhat (make that extremely) wary of using any utility that didn't come from Microsoft to create an NTFS partition. NTFS data structures are barely documented and all the third party utilities for it were reverse engineeered. That's why the Linux NTFS drivers are typically read only by default...

So to be 100% safe I'd recommend formatting with FAT/FAT32 (which is very well documented and well understood) and letting Windows handle the filesystem conversion.

I guess that my opinions on this are somewhat colored by the fact that I build unattended install CD for servers and I can't afford to have something that "should work OK" on there. For what I do it just has to work 100% of the time. You wouldn't like it very much if the X-Ray generators computer controller was to crash and give you a lethal radiation dose the next time you go to the hospital, now would you?

Link to comment
Share on other sites

Hey there,

I do the exact same thing! I really do prefer a small 1.44MB boot floppy with Win98 DOS files and my RAR32 DOS decompressor. Then I load up a 700MB RAR archive on the CD and that has everything I need for a complete install.

I would use the ConvertNTFS flag in WINNT.SIF if I was assured that I could reformat the partition as FAT32 if I had to redo the install cycle. I think AEFDisk 2.1 (free) may do this, but I've not gotten around to adding this to my scripts yet. It's really small though (18k). Here's a snippet from the readme:

       AEFDISK is a DOS based, command line driven disk partitioning
       utility. With AEFDISK you can:

       - Create primary, extended and logical partitions
       - Delete primary, extended and logical partitions (and wipe them)
       - Format FAT partitions
       - Hide and unhide FAT, NTFS/HPFS partitions
       - Activate/deactivate a partition
       - Show the partition table
       - Show characteristics of harddisks
       - Install the standard MBR loader to a harddisk
       - Save or restore the MBR
       - Set up hundreds of harddisks with a simple batch file on a floppy
       - and more...

It can set up partitions for you, but adding partitions requires a reboot. If you assume the hard disk already has a partition available, you could use AEFDisk in a script as such:

aefdisk 1 /formatfat:1:Hard_Disk (formats the first partition on drive 1 as FAT32 and names it Hard_Disk)

Go to http://www.aefdisk.com/ and see if you can get it going. It's a DOS utility, small, and free - why not try it and shoot me a message when you get it working. Like I said, I've downloaded it but I haven't gotten it going yet, but it seems like what you need.

JP

Link to comment
Share on other sites

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...