Resizing
Stephen
stephen_o at rogers.com
Mon Mar 12 10:04:27 UTC 2012
On 10/03/2012 9:46 PM, Basil Chupin wrote:
> On 11/03/12 11:06, Stephen wrote:
>> On 10/03/2012 4:33 PM, Nils Kassube wrote:
>>> Stephen wrote:
>>>> Hello I'm using Ubuntu 10, 11. I originally set it up in a 40gb
>>>> partition on a windows xp drive. I wanted to give more space to the
>>>> ubuntu partition.
>>>> I shrunk the windows partition by 30 gig, and tried to make the linux
>>>> partition larger but it wouldn't let me because I couldn't unmount
>>>> the partition.
>>>> So I booted from a live disk and started gparted. All I could do was
>>>> shrink the linux partition it wouldn't let me make it larger.
>>> Can you post the output of the command
>>>
>>> sudo fdisk -l
>>>
>>> in a terminal? That might help us determine the reason for the problem.
>>>
>>> One idea: Could it be that your Linux partition is a logical partition
>>> within an extended partition? Then you should first expand the extended
>>> partition and afterwards you should be able to expand the Linux
>>> partiion.
>>>
>>>
>>> Nils
>>>
>> Thank you for your response.
>> I tried again.
>> Here is the read out from sudo -l
>> Device Boot Start End Blocks Id System
>> /dev/sda1 * 63 892377087 446188512+ 7 HPFS/NTFS/exFAT
>> /dev/sda2 892379134 976768064 42194465+ 5 Extended
>> /dev/sda5 973217763 976768064 1775151 82 Linux swap /
>> Solaris
>> /dev/sda6 892379136 969025535 38323200 83 Linux
>> /dev/sda7 969027584 973215743 2094080 82 Linux swap /
>> Solaris
>>
>> I tried again to enlarge the dev/sda2. Which seems to be a container
>> for all the linux partitions. It wouldn't give me the option to
>> re-size it. I tried again to enlarge the dev/sda6 which is EXT4 format.
>
> You cannot expand an extended partition if it is taking up the rest of
> the HDD which hasn't been assigned to primary partition which in this
> case is the Windows installation.
>
> Could you please provide the FULL output of fdisk -l - ie , whatever
> shows up immediately below this command (and which will show the size
> of the HDD etc etc).
>
> BC
>
>
sorry I thought that was the whole listing I did it again. Here is the
complete readout.
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 / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x54ca54ca
Device Boot Start End Blocks Id System
/dev/sda1 * 63 838836223 419418080+ 7 HPFS/NTFS/exFAT
/dev/sda2 892379134 976768064 42194465+ 5 Extended
/dev/sda5 973217763 976768064 1775151 82 Linux swap / Solaris
/dev/sda6 892379136 969025535 38323200 83 Linux
/dev/sda7 969027584 973215743 2094080 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 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 / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aa6b3
Device Boot Start End Blocks Id System
/dev/sdb1 63 976768064 488384001 7 HPFS/NTFS/exFAT
There must be some way to resize the logical drive and then I can
enlarge the linux part. There are two swap partitions because I
re-installed ubuntu with the command to use linux partition. I guess it
just used the linux partition and created a new swap partition instead
of using the swap partition that was already there.
Thanks
Stephen Oulton.
<stephen_o at rogers.com>
More information about the ubuntu-users
mailing list