Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a MacBook Pro with Mac OSX installed and Ubuntu 12.04. I wanted to resize my Ubuntu partition, so I booted to a 10.04 liveCD and used GParted to "move/resize" my Ubuntu partition.

Unfortunately, I think GParted defaults to moving it 1000MiB to the right (i.e., adds 1000MiB of unallocated space to the left, and moves the partition right), something I didn't realize until after I had started the process.

In addition to doing this, I reduced its sized by ~10GiB (9.77GiB in the screenshot) from the right, and added an ext3 partition in that unallocated space (I'm trying to do Linux From Scratch)

How can I repair my system so that I can boot my Ubuntu 12.04 system? Perhaps it is something to do with Grub? I use the rEFIt Boot Manager, so everytime at boot, I have the option to load either OSX or Linux. I have already gone through the option to sync/update the MBR in rEFIt.

Here is a screenshot of GParted from my livecd booted up after the move:

enter image description here

Something very fortunate, though, is that in File Browser, in the left-hand panel, I can mount the "132 GB Filesystem", which is my 12.04 Filesystem which I moved and can no longer boot. I can browse it, and read files from it. Here is a screenshot:

enter image description here

share|improve this question

1 Answer 1

up vote 2 down vote accepted

It would appear that the Grub file is looking for Ubuntu in the wrong place. As the files are still there, nothing should be wiped, you will just need to fix grub.

The easiest way to do that is with Boot Repair

Boot into the live CD and then install Boot Repair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair

This will also start the program after install. On the GUI that opens up click on the Recommended Repair this will reinstall the Grub2 boot-loader. This should find your Linux partition in it's new location.

My source is here if you want to read more about Boot Repair- Ubuntu Community Documentation

If you want to do it with the terminal the Ubuntu docs. here will tell you how to do it. This page also links to the Boot Repair page that I linked to.

share|improve this answer
I installed and ran boot-repair, but gee, it's taking its time. It's been "Scanning systems. This may require several minutes..." for hours now. Is this normal? I do have a relatively large drive. –  kalaracey Jul 25 '12 at 16:59
It may take some time, but hours seems a bit odd. I've not heard of it taking that much time...not sure why it would take that long unless it's having problems finding the Linux kernel Images, not sure why it would not be able to find them though. –  TrailRider Jul 25 '12 at 20:55
Do you think I should do ... && sudo boot-repair? –  kalaracey Jul 26 '12 at 1:22
boot repair should already run with sudo privileges. Have you tried to shut down boot repair and run it again? (you can find it in the dash) if so did it still freeze? I assume that the window to select the repair never came up, it just froze at the first window with the bar running back and forth? –  TrailRider Jul 26 '12 at 1:28
It froze at the same place (with the bar running back and forth, with the same message as I said in the first comment), but I went to terminal, and I did Control-C, and it switched to the GUI screen described in your post and in the documents. I clicked the button, then I got an EFI issue, saying that I was in legacy MBR mode, not EFI mode (or something along those lines; if what's happening now doesn't work, which I'll describe next, I'll go back and reproduce), but I had the ability to continue. Now it is at "Purge and reinstall of GRUB of: sda4 (upd). This may require several minutes..." –  kalaracey Jul 26 '12 at 1:42

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.