[Bug 812907] Re: Unallocated free space after creating parititons

Robert Blair ubuntu-qygzanxc at listemail.net
Sun Dec 8 03:42:47 UTC 2013


This looks the same as the problem I have.

I had another OS installed on the disk before I installed Ubuntu using
the 12.10 live CD.  There was a small primary partition, the rest of the
disk was an extended partition.  There were two partitions at the front
of the extended space so I installed Ubuntu at the end of the extended
space.  It seemed that everything was normal (for a few months) until I
tried to change the swap partition size.  When I started gparted it
listed all of the disk as free space.  The last time any changes were
made to the partition tables was the Ubuntu install.

As I see the problem the install changed the end of the extended
partition to an incorrect value.

During the install I used whatever partitioning program the install
uses.  The first partition defined was /home then swap then root, all at
the end of the free space.  The following is the output of fdisk.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xdf5ee111

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63       16064        8001    a  OS/2 Boot Manager
Partition 1 does not start on physical sector boundary.
/dev/sda4           16065   703309823   351646879+   5  Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5           16128    10265534     5124703+   7  HPFS/NTFS/exFAT
/dev/sda6        10265598    30748409    10241406    b  W95 FAT32
Partition 6 does not start on physical sector boundary.
/dev/sda7       781461504   976771071    97654784   83  Linux
/dev/sda8       703324160   781449215    39062528   82  Linux swap / Solaris
/dev/sda9       625184768   703309823    39062528   83  Linux

The Ubuntu partitions are listed backwards.  Notice that the end of sda4
is the same as sda9, this is wrong.

Why would any program change the end of the extended partition end
unless you were purposely changing the size of the extended partition?

I changed the end of sda4 to 976773166 which I think is correct (if not
what should it be?) and now gparted can display all the partitions on
the disk and I could change the size of the swap partition.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/812907

Title:
  Unallocated free space after creating parititons

Status in “ubiquity” package in Ubuntu:
  Confirmed

Bug description:
  A few days ago I installed Ubuntu 11.04 to a Acer Aspire 722 netbook. Originally, it had 3 primary partitions:
  Win7 restore (13GB)
  Win7 system something (100MB)
  Win7 (~460GB)
  I was using alternate install from USB disk. The first thing I did was to shrink Win7 partition to 40GB. Then, I added 4 logical partitions (swap 4GB, boot 500MB, home 40GB and root 40GB), leaving ~350GB of unallocated space. What happend next I discovered today when I tried to install one more OS and I couldn't create new partitions and I spent a few hours trying to find out what's wrong.
  As it turned out, the extended partition created by ubiquity was the exact size of 4 linux partitions I created (~85GB) and it didn't include the free space left on the disk. As I alredy had 3 primary partitions, I was unble to create more partitions.
  Because extended partition is in use when Ubuntu boots, I was unale to extend it to include the free space left on the disk and I needed to boot it again from USB and use GParted from there.

  What should be done instead: if ubiquity creates extended partition,
  and it's 4th partition on the disk, it should also include free space
  left on the disk, as there is no other way to use that space (at
  least, with classic partition table).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/812907/+subscriptions



More information about the foundations-bugs mailing list