On Thu, 28 Mar 2002, Matthew Dalton wrote: > Andy Eager wrote: > > >Disk /dev/hda: 255 heads, 63 sectors, 789 cylinders > > >Units = cylinders of 16065 * 512 bytes > > > > > > Device Boot Start End Blocks Id System > > >/dev/hda1 * 1 204 1638598+ b Win95 FAT32 > > >/dev/hda2 205 217 104422+ 82 Linux swap > > >/dev/hda3 218 789 4594590 5 Extended > > >/dev/hda5 * 218 224 56196 83 Linux > > > > > Space here between 225 and 352 > > > > > >/dev/hda6 353 480 1028128+ 83 Linux > > >/dev/hda7 481 633 1228941 83 Linux > > > > > Space here as well between 634 and 789
Adding a partition at the end will be no sweat fdisk /dev/hda n e Then you just mke2fs /dev/hda8 mount -t ext2 /dev/hda8 /newpartition-directory But the real gotcha is if you create a partition between hda5 and hda6 you'd better make sure your /etc/fstab is using partition labels or you'll have to do the following:- drop to single user mode "init 1" make the partition using fdisk, don't bother with mke2fs yet! edit the /etc/fstab file and increment the partition numbers for those above /dev/hda5. IE change /dev/hda6 to /dev/hda7 and change /dev/hda7 to /dev/hda8. "mkbootdisk" if you haven't got one already! reboot into single user mode (pass "1" as a kernel parameter in your boot loader) just to make sure things come up sanely. now go ahead and mke2fs and mount the extra insterted partition. -- ---<GRiP>--- Web: www.arcadia.au.com/gripz Answering Machine/fax: 02 4950 1194 (wait 5 mins if no answer) Mobile: 0408 686 201 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
