LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-20-2012, 03:20 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 340

Rep: Reputation: Disabled
expanding linux partition


I am trying to expand my Linux partition because I am getting warnings that I am running out of space. I also have Windows 7 installed, alongside of Ubuntu. I noticed that if I expand Ubuntu, then it would move the starting point of the win 7 partition, which can cause some issues. is there any way to expand the Linux partition of my hard drive without messing everything up?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2012-12-20 15_10_17.png
Views:	33
Size:	65.7 KB
ID:	11444  
 
Old 12-20-2012, 03:48 PM   #2
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix
Posts: 140

Rep: Reputation: 23
I don't see many options. Shrink /dev/sda3, grow the extended partition, move the swap partition to the end, move/resize the /home partition etc.

It is possible to fix the win7 boot-up using a win7 install dvd.
I would recommend to make a backup copy of the hard drive, so that you are able to come back to the previous state, in case of problem. Hardware failure can be another source of problems, so a backup is always a good idea.

You can consult the GParted FAQ too.
It is safer to use the latest GParted version.
 
1 members found this post helpful.
Old 12-20-2012, 03:53 PM   #3
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Rep: Reputation: 7
You can try using LVM in the future when you want to resize partitions. LVM allows partitions to be resize larger or smaller, but this has to be setup in advance and then you install the distro on LVM volume names i.e root,swap, home. etc. Youtube has tutorials on this.

Last edited by codergeek; 12-20-2012 at 04:15 PM.
 
Old 12-20-2012, 04:12 PM   #4
sniper8752
Member
 
Registered: Oct 2012
Posts: 340

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by masterclassic View Post
I don't see many options. Shrink /dev/sda3, grow the extended partition, move the swap partition to the end, move/resize the /home partition etc.

It is possible to fix the win7 boot-up using a win7 install dvd.
I would recommend to make a backup copy of the hard drive, so that you are able to come back to the previous state, in case of problem. Hardware failure can be another source of problems, so a backup is always a good idea.

You can consult the GParted FAQ too.
It is safer to use the latest GParted version.
so I could potentially resize win 7, move the linux partition to after the win 7 one, then expand the linux partition? would this create unallocated spacing then?
 
Old 12-20-2012, 10:29 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,984

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Your partitions for Ubuntu were too small to start with. What release of Ubuntu are you using? I installed Ubuntu 12.04 recetly and I know it required over 5GB just for the basic installation and you have less than 8GB for /, swap and /home. I would say that the minimum for a / partition on current systems would be 10GB and that may require more if you install a lot of software.

Are you interested in reinstalling Ubuntu, perhaps to a new partition after resizing/shrinking windows. You can do that from windows. If you have data on your /home partition, you could back it up to a DVD before beginning. There are several options that should work but we would need to know:

Are you willing to do a fresh install of Ubuntu?
Are you currently booting both Ubuntu and windows with Grub?
Do you have a full windows installation disk in case something goes wrong?
Do you have some media on which you can back up your data if something goes wrong?
Messing with partitions can cause serious problems, particularly if you don't have much experience.

Depending upon your answers to the above questions, it might be simplest to delete the current Extended partition, resize/increase the / partition (sda1) to the beginning of windows, shrink the windows partition and create an Extended partition with logical partitions in the new unallocated space at the end of the current windows where you could put /home, swap and or a data partition. You would need to back up your /home partition to a DVD. I think it might be simpler to reinstall Ubuntu after you have resized/shrunk windows and start over.
 
1 members found this post helpful.
Old 12-20-2012, 10:49 PM   #6
sniper8752
Member
 
Registered: Oct 2012
Posts: 340

Original Poster
Rep: Reputation: Disabled
it sounds like it may just be easier if I wiped my computer clean, and started all over again.
 
1 members found this post helpful.
Old 12-21-2012, 10:55 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,984

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
it sounds like it may just be easier if I wiped my computer clean, and started all over again.
Maybe. Depends upon what you have now. You seem to have a lot of data (180GB) on your windows partition to back up. You could just resize/shrink the windows partition and install Ubuntu after windows by creating a primary partition for it. There are ways you could then modify sda1 and sda2 but the problem is that Extended partitions, to my knowledge, need to be continguous and your Extended partition is too small to be of much use. I guess in the long run, it would probably be easier to back up and reinstall. Install windows first and if you need an Extended partition, make it larger so you have access to the whole disk.
 
1 members found this post helpful.
Old 12-21-2012, 11:39 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I myself would shrink sda3 from left seeing that you almost 300G unused, then resize and/or move sda2 to get more space for /home.
Is it just /home filling up?

Using gfparted-live
Shrink sda3 from left
Expand sda2 to right
Move sda6 to the right
Resize sda5
 
Old 12-21-2012, 01:32 PM   #9
sniper8752
Member
 
Registered: Oct 2012
Posts: 340

Original Poster
Rep: Reputation: Disabled
yes it is /home. and I am not using much of my win 7 space. i just use it as my primary os.
 
Old 12-21-2012, 01:48 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
As long as it's not / you can use the instructions in post #8
 
  


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
RHEL - Expanding the / partition Bestnetcraft Linux - Server 6 06-05-2010 03:40 AM
[SOLVED] trouble expanding 4+TB GPT partition after expanding hardware RAID-5 volume muad'dib Linux - Enterprise 6 09-26-2009 06:01 PM
Wiping windows out and expanding linux partition geomatt Linux - General 14 02-13-2005 09:49 AM
Expanding a partition echid Linux - General 1 08-12-2002 11:21 AM
need help expanding a partition linuxmaster Linux - General 2 12-01-2001 04:25 PM


All times are GMT -5. The time now is 09:55 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