Dual boot, Ubuntu needs more disk space, how do I get more?

Asked by Dan Baker

OK, I recently have gotten rid of Vista and went back to Win XP Pro but even then I was only re-introduced to the same old problems that I had before. I have always wanted to try Linux so I made a disk image of Ubuntu 9 and installed it in a dual boot configuration and both systems are working fine, I am writing this in Ubuntu and so far I love it. My problem is I am a novice and when I was going through the install I didn't know how to give Ubuntu more disk space and now that it is installed it has left itself only an extra 300 meg. I want to give it at least 20 more gigs but I don't know how. <email address hidden>

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu parted Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Habib Tamala (drpyro) said :
#1

just boot from live CD, execute gparted (sudo gparted) and make your partition for ubuntu a little bigger... that's it !! on information how to use gparted please visit http://www.howtoforge.com/partitioning_with_gparted...

if you dont have the LIVE CD, just install gparted (sudo apt-get install gparted) and run it locally

GoodLuck
TaMaLa

Revision history for this message
Jeruvy (jeruvy) said :
#2

"OK, I recently have gotten rid of Vista and went back to Win XP Pro but even then I was only re-introduced to the same old problems that I had before."

How typical, many folks assume the system is at fault and think replacing the system is the solution. It's never a solution to a problem unless your problem is "I hate MS and want Ubuntu" then, a system replace IS the solution. However back to your issue...

"I have always wanted to try Linux so I made a disk image of Ubuntu 9 and installed it in a dual boot configuration and both systems are working fine, I am writing this in Ubuntu and so far I love it."

Awesome, hey this doesn't sound like a problem...

"My problem is I am a novice and when I was going through the install I didn't know how to give Ubuntu more disk space and now that it is installed it has left itself only an extra 300 meg. I want to give it at least 20 more gigs but I don't know how."

Ah, well there are a couple ways to resolve this short-sightedness, but given that its a dual boot I'll recommend one, and then discuss the other.

My RECOMMENDATION.

Wipe out the ubuntu partition, forget you even installed it, format the hard disk and reinstall Ubuntu again this time with no less than 8GB of space. I'd even recommend creating TWO disk/partitions say another one about 10GB or bigger and creating that STRICTLY for the /home directory tree. Since all your important data will be here, this makes good sense to have on a separate partition that can easily be backed up and restored without affecting the system, and vice versa. If you do a system update that trashes Ubuntu (god forbid!) you can still easily migrate your /home folder to a new installation since it's on it's own disk. By default Ubuntu installs in one disk/partition and thats that. You should still backup your /home folder prior to wiping it out and starting over.

Option to FIX

You can use a tool like gparted to resize the ubuntu disk/partition but since this may or may not be used with or sharing a disk with NTFS I'd highly recommend a couple steps first. In windows make sure there are no errors on the disk (use chkdsk) and defragment the disk. If you use a commercial defragger, then one pass should be sufficient, if you use the built-in defragmenter then you may have to run it several times to clear up the fragments and get it sorted out. If the disk has been one big drive for a long time, then resized for installing ubuntu, further resizing can cause corruption, but it's also possible to work, its really try it and see.

Once windows is all cleaned up, then boot into a liveCD (like the Ubuntu desktop install CD) start up gparted and select the ubuntu partition you have and resize it, again a minimum of 8GB, 20GB is more ideal if you want to keep data on it.

Habib posted a link to howtoforge which may offer more insight into using gparted than I care to explain here. Hopefully between the two ideas you can decide which you prefer and make it happen.

Good luck!

Can you help with this problem?

Provide an answer of your own, or ask Dan Baker for more information if necessary.

To post a message you must log in.