Code: Select all
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x64656469
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3298 26491153+ 7 HPFS/NTFS
/dev/sda2 3299 5921 21069247+ 83 Linux
/dev/sda3 5922 6051 1044225 82 Linux swap / Solaris
/dev/sda4 6052 6075 192780 83 Linux
The first is a windows partition
The second is /
The third is swap
The last is /boot
I have made only primary partitions so I cannot use the unpartitioned space.
How can I create an extended partition without reinstalling everything?
Here is what i have so far.
-My first ideas was to swapoff then delete /dev/sda3(my swapping space)
and create an extended partition there. The problem is that when I try to make an extended partition there it do does not let me to use up all the space that is free probably because extended partitions need to be continuous I think.
-My second idea is to dd /dev/sda4 (this my boot) to an external drive,then delete the partition.
On the new space create an extended partition that will use up all the space up to the end of the disk.
Then create a partition on the extended and dd back from the external drive to the new logical partion.
Which files do I need to fix so to make this work(for example reinstall grub? /etc/fstab ?)?
-My third ideas was to use a /dev/loop remember reading about it in a magazine when someone wanted to reclaim space from bad partitiong just don't remember how the procedure was and if this will cover my case.