re-partitioning a logical partition
i want to re-partition a logical partition into two smaller logical partitions. here is my current partition table:
<snip>
# /sbin/fdisk -l
Disk /dev/sda: 1254.9 GB, 1254995722240 bytes
255 heads, 63 sectors/track, 152577 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 760 6024375 83 Linux
/dev/sda3 761 1015 2048287+ 82 Linux swap
/dev/sda4 1016 152577 1217421765 5 Extended
/dev/sda5 1016 127449 1015581073+ 83 Linux
/dev/sda6 127450 152449 200812468+ 83 Linux
/dev/sda7 152450 152577 1028128+ 83 Linux
Disk /dev/sdb: 1254.9 GB, 1254995722240 bytes
255 heads, 63 sectors/track, 152577 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 152577 1225574721 83 Linux
</snip>
<snip>
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 5.7G 4.7G 707M 88% /
/dev/sda1 76M 36M 37M 50% /boot
/dev/sda5 954G 33M 905G 1% /data1
/dev/sdb1 1.2T 4.6G 1.1T 1% /data2
/dev/sda6 189G 34M 179G 1% /home
none 1009M 0 1009M 0% /dev/shm
/dev/sda7 989M 289M 650M 31% /var
</snip>
i want to divide /dev/sda6 (/home) into two smaller partitions.
i used fdisk to delete /dev/sda6. when i did this, /dev/sda7 became /dev/sda6 and the two new paritions i made were /dev/sda7 and /dev/sda8. i then updated my fstab to relfect these parition changes. when i reboot, there are fsck crashes and i am exited into Ctrl-D filesystem check mode. i have recently used fdisk and changed the partitions back to the way they were (see above) and replaced fstab with the orignal configuration. things are back to normal, but i still want to repartition /dev/sda6 into two smaller logical drives.
what is the best way to do this? did i miss something?
THANKS in advance
|