Ok, when I discovered that I could not have more than 15 partitions in Linux, I stopped creating volumes in my extended partition leaving some 50 GB of unused space inside it. I have three primary partitions (NTFS and FAT16 - dell's diagnostics) and an extended partition with NTFS and ext3 volumes, plus swap).
I Installed kanotix, ubuntu, manually installed grub on the ubuntu partition, fixed Vista's bootloader in order to boot Vista, Kanotix and Ubuntu. Everything seemed fine.
This evening I decide I could expand my last volume in the extended partition so that I could use up all the space left. To my dismay I discovered that the unallocated space is outside the extended partition and that there is no way to use it. WTF???
Neither GParted nor Vista are able to include the unallocated space in the extended partition so that I could expand the last volume.
How do I get my disk space back?
And, more importantly, how could that have happened? AFAIK the logical volumes size is determined by the start of the next logical volume. But who changed the size of the extended partition? The ubuntu install? Grub? GParted? Vista?
-
Sredni Vashtar Notebook Evangelist
-
Not being a Linux expert, I can't say for certain, but my best guess would be to try deleting the partition you are trying to merge with the unpartitioned space, then repartition the whole lot. Of course, the data loss is a significant disadvantage of my suggestion, but it might work.
-
Expand the logical partition (sda4?) first to fill all the space, then it'll move the unallocated space to where you can expand your last partition.
- Trip -
Sredni Vashtar Notebook Evangelist
I ran
sfdisk -l -x /dev/sda
and, as I expected, the problem resides in tha main partition table in the MBR. The extended partition endsector is not the last sector of the disk.
I am a little hesitant in modifying its' entry by hand, mostly because I got a warning saying that the extended partition does not begin at the beginning of a cylinder (thanks Vista, for that) and I don't get an integer number by dividing the number of cylinders by the size of the blocks.
I am pretty pissed off since removing the extended partition would mean removing the two linux directories and reinstall everything. And all this because of the artificial and arbitrary limitation of 15 partitions Linux has for scsi disks. And I thought it was windows the OS with the limitations... :-(
I will try to run gparted from a live CD, since I guess the option is greyed out because I cannot unmount the / directory that's on one logical partition. -
Sredni Vashtar Notebook Evangelist
-
- Trip -
Sredni Vashtar Notebook Evangelist
I had to disable swap and then I was able to expand sda4 and then sda15.
I still wonder what caused the problem, though.
Thanks everybody for your support.
Extended partion shrinked. How to use the unallocated space beyond it?
Discussion in 'Linux Compatibility and Software' started by Sredni Vashtar, Oct 22, 2007.