LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2011, 09:48 AM   #1
lazerking9
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu
Posts: 24

Rep: Reputation: 12
Question 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
 
Old 06-01-2011, 10:40 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,330

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
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.
 
1 members found this post helpful.
Old 06-01-2011, 12:41 PM   #3
lazerking9
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu
Posts: 24

Original Poster
Rep: Reputation: 12
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it safe to resize my Slackware partitions after removing my Mint 10 partitions? Robert.Thompson Slackware 19 02-18-2011 12:47 PM
need to resize my linux partitions with ubuntu netbook remix whatleya Linux - Laptop and Netbook 4 11-29-2009 12:00 PM
resize the partitions piduruviswa Linux - Newbie 8 04-28-2009 09:28 AM
Resize partitions in Ubuntu pgsmith Linux - Newbie 16 01-07-2007 11:29 AM
How do I resize partitions? watha SUSE / openSUSE 4 09-28-2006 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration