On Fri, 31 Oct 2003 12:49:24 -0800 Jesse Keating [Jesse] wrote: Jesse> On Friday 31 October 2003 12:47, Richard Black wrote: Jesse> > Non-interactive fdisk: Jesse> > Jesse> > echo "p Jesse> > q" | fdisk /dev/sda Jesse> Jesse> er, what exactly does that do? Jesse> p and q are fdisk commands, so it will print the partion table then quit. [root@RHsux]# fdisk /dev/hda << EOF ? m ? q ? EOF The number of cylinders for this disk is set to 59560. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): [root@RHsux]# -- Alain