I have the following one hdd
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Disk identifier: 0xfa6bd800
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 821247 409600 7 HPFS/NTFS/exFAT
/dev/sda2 821248 210991103 105084928 7 HPFS/NTFS/exFAT
/dev/sda3 210991104 317941759 53475328 83 Linux
/dev/sda4 420343806 625141759 102398977 5 Extended
/dev/sda5 435689472 507955096 36132812+ 83 Linux
/dev/sda6 507955200 566546431 29295616 83 Linux
/dev/sda7 566548480 625141759 29296640 83 Linux
/dev/sda8 420345856 435687423 7670784 82 Linux swap / Solaris
I have recently recovered one partition from Windows. I want to extend my 'extended partition' /dev/sda4 to the left to use the unallocated space. you could see that /dev/sda4 can be extended from 420343806 to 317941760 (end of /dev/sda3). I tried to this from gparted and it failed.
GParted 0.12.1 --enable-libparted-dmraid
Libparted 2.3
Move /dev/sda4 to the left and grow it from 97.66 GiB to 126.95 GiB 00:00:00 ( ERROR )
calibrate /dev/sda4 00:00:00 ( SUCCESS )
path: /dev/sda4
start: 420,343,806
end: 625,141,759
size: 204,797,954 (97.66 GiB)
move partition to the left and grow it from 97.66 GiB to 126.95 GiB 00:00:00 ( ERROR )
old start: 420,343,806
old end: 625,141,759
old size: 204,797,954 (97.66 GiB)
requested start: 358,901,760
requested end: 625,139,711
requested size: 266,237,952 (126.95 GiB)
libparted messages ( INFO )
Unable to satisfy all constraints on the partition.
Can't have overlapping partitions.
So I am trying to do the partition extension with fdisk.
I think these are the following steps. 1. delete /dev/sda4 2. create new extended partition from 317941760 to 625141759. 3. resize2fs on /dev/sda4
But if I do this way, will I lose my logical partitions or data? Or should I be taking another route to achieve the same.
Also can someone recommend an ultimate source to learn about partitions and file systems?
Thanks
