Resizing Solved

Stephen stephen_o at rogers.com
Mon Mar 12 19:16:52 UTC 2012


On 12/03/2012 10:45 AM, Jonesy wrote:
> On Sat, 10 Mar 2012 19:06:53 -0500, 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.
>>>
>> 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.
> Having just gone through a similar 'exercise'...
> If you're working from a live CD, you'll have to 'release' the swap
> device(s) -- sda5 (and/or sda7).  man swapoff.
> The live CD will use any (all?) swap device(s) it finds on the hard
> drive(s).
>
> Alternately, in gparted, (right?) click on the little icon (is it a
> padlock? I forget now.) near the sda2 (or/and sda7) objects and you'll
> be presented with a dropdown that includes a "swapoff" option.
>
> THEN you can move on with expanding the logical partition.
>
> HTH,
> Jonesy
Thank you Jonesy this procedure worked fine. Then my box wouldn't boot 
up!!! I did a new install and told it to keep my data. Everything is 
great and the size is enlarged.

I would also like to thank.
Nils, Double Dark, Basil, Lance, and Liam. I learned from all of your 
responses, and am grateful that you were all there to help me, and 
responded.





More information about the ubuntu-users mailing list