[vox-tech] Mini Howto: resize NTFS with PQDisk (from v1.0 Xandros CDs)

Mike Simons vox-tech@lists.lugod.org
Sun, 21 Mar 2004 22:33:20 -0500


v1.0 Xandros CDs come with a problem called PQDisk, which can be used to
resize NTFS partitions among others types.
                                                                                
If you happen to have a Xandros CD then you can boot up your machine
using the cd, switch to a command shell window to resize a drive... 

It's also possible to boot from some other media (like two debian
rescue floppies) then mount the disk and use the CD to resize.  However
you may need to use do something like
"LD_LIBRARY_PATH=/cdrom/live/usr/lib:/cdrom/live/lib /cdrom/live/bin/PQDisk" 
to use the shared libraries from the CD...).
                                                                                
The PQDisk program is a program meant to be called from scripts, so
it has no user interface.  It has a few command line arguments, but
most control is done by giving it a command script to run.
                                                                                
Here is some example syntax... the "command_file" below would shrink a
NTFS partition to as small as it can be, then grow it by 2 Gigs.
                                                                                
===
# get drive info
PQDisk -INFO
                                                                                
# check script for okay-ness, don't apply changes
PQDisk -CMD=command_file -LOG=Log -SCO
                                                                                
# apply script.
PQDisk -CMD=command_file -LOG=Log
                                                                                
info_file
===
Select Drive 1
Select Partition Number 1
Check
Info /Usage /Waste /Partition /FS
===
                                                                                
command_file
===
Select Drive 1
Select Partition Number 1
Check
Resize Min
Resize Larger 2048
===