LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resize partitions ubuntu 11.04 (https://www.linuxquestions.org/questions/linux-newbie-8/resize-partitions-ubuntu-11-04-a-883946/)

lazerking9 06-01-2011 08:48 AM

Resize partitions ubuntu 11.04
 
I am currently running Ubuntu 11.04 (narwhal), dualbooting with Windows 7. When I installed ubuntu, i gave it a small(er) partition size for it to use (10gb total for swap and main partition). I now find I have run out of room on my Ubuntu partition, and want to (if possible) shrink down my Windows partioion and move some of that freed space to Ubuntu to expand it.
I tried to use gParted from a live Ubuntu CD, but I can't seem to move any unused space into the Ubuntu partitions. Am i doing something wrong?

For your reference, results of fdisk -l -u:
Code:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x0008cb12

  Device boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048      206847      102400  7  HPFS/NTFS
Partition1 does not end on cylinder boundary.
/dev/sda2          206848  528882351  264337752  7  HPFS/NTFS
/dev/sda3      528883710  625141759    48129025  5  Extended
/dev/sda5      528883712  618993663    45054976  83  Linux
/dev/sda6      618995712  625141759    3073024  82  Linux swap / Solaris


Thanks in advance for your help.
~~~alec

yancek 06-01-2011 09:40 AM

Quote:

I tried to use gParted from a live Ubuntu CD, but I can't seem to move any unused space into the Ubuntu partitions. Am i doing something wrong?
Have you managed to shrink sda2, your windows partition?
The problem is that sda2 is a primary partition and your Linux root is a logical partition. You won't be able to extend the logical partition into a primary. Logical partitions are part of the Extended partition and need to be contained within it. If you shrink windows to what you want (you didn't indicate if you were able to do that??), you should be able to create another primary partition using that freed space which you can use as data or a home partition and use that for non-system files.

lazerking9 06-01-2011 11:41 AM

Thank you so much. This is exactly the answer I was looking for. I can get the unallocated space from sda2 easily enough (through gParted or Windows itself), so I guess i would go ahead and make a new partition with that space.. Is there a way to set that to automatically mount when Ubuntu starts?


All times are GMT -5. The time now is 01:58 AM.