Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Macbook Pro configured to dual boot OSX or Ubuntu. Originally, I split the drive evenly between the two, but as I've been using Ubuntu far more heavily, and I'm running out of space on its partition, I want to reconfigure the partitions to give Ubuntu a greater share of disk space.

I tried using GParted, both running from inside Ubuntu and from GParted's Live CD, but in both I get the following screen:

GParted Screenshot

As you can see, Ubuntu has about 72GB of space. I've already shrunk the OSX partition down, leaving about 45GB of free space. I'm trying to expand the Ubuntu partition to include that additional 45GB of space, but GParted won't allow me to, presumably because of that weird "unknown" 1MB partition in the middle. I'm not 100% sure what it is, but the flags for it list "bios_grub", so I'm assuming it's where rEFIt installed Grub. Unfortunately, GParted won't let me relocate this partition, only delete it (and I'm sure I'd hose my system if I did that).

How can I resize my Ubuntu partition to use my free disk space?

share|improve this question

As Huckle said, booting from a live USB or live CD would probably make it possible. You can get what you need from the download site at, and when you're ready you can boot into Ubuntu just as you're used to, and use GParted to move the partition to the left.

However, I would recommend another approach:

It looks as if the only partitioning you've done is into one Mac partition and one Ubuntu partition. Consider creating a third partition for your data. (That partition could even be shared between both operative systems, if you want.)

Using for example the Disk Analyzer utility, you can identify the largest node of your Ubuntu file tree, and copy that over to the new partition (let's call it /dev/sda6, for the sake of this argument). When you have copied all the files you want, and verified that they were copied OK to the new partition, you can delete them from /dev/sda4. Note! If you chose to move system files, such as /usr or /home, you must reboot in single user mode before you delete the files!

Then, edit your /etc/fstab to mount the new partition in the same place in the file system. For example, if /home/cerin/ was the largest folder, I would suggest moving cerin to the new partition and mount the partition at /home with the following fstab line:

/dev/sda6 /home ext4  defaults 0 0

If you're unfamiliar with /etc/fstab, this guide seems to give a good introduction. It hasn't been updated for a couple of years, but I suspect that the basics of fstab haven't either =)

While you're at it...

If it turns out your home folder isn't the largest folder in your file system, I would still recommend moving it aside on a separate partition. The main benefit of this is that if something fails on your Ubuntu system, you can reinstall Ubuntu from scratch and still keep most of your user settings. I'm running Ubuntu/Win7 dual booted on a 120GB SSD, and on that I've allocated 500MB for my home partition - it turns out this is on the edge of too little, and I've had to use some other quirks to work around this. I would (given that I know nothing of what files you have that's using up your space...) recommend a 40GB data partition and a 5GB home partition.

share|improve this answer

I'd venture to say that you should be able to restore rEFIt by using a third party bootdisc for OSX after nuking the rEFIt partition and expanding Ubuntu. I've had great success with iBoot from TonyMac. Burn the disk and boot from that, select your OSX install and it should boot into that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.