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've been following the instructions on this page to copy my Linux partition from one partition to another on the same drive. (I'm doing this because I want to move it from /dev/sda3 to /dev/sda4 so that I can then resize /dev/sda2 and use my drive more efficiently).

I got up to "1. Reboot you machine again" under Step 6, but 'UBUNTU' on the copied partition never appears in the grub boot menu. I only ever see my original /dev/sda3 version. I have tried reinstalling GRUB and it says it's been successful, but there's no change.

Are those instructions wrong? Is there just something wierd with my computer? Can you suggest how to get this working?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

After a bit of fiddling, I worked this one out myself. I needed to repair GRUB using the instructions here.

Quick precis of the steps:

Boot in to live CD. Mount the new partition to /mnt:

sudo mount /dev/sda2 /mnt  # make sure that sda2 is correct!

Bind the various local directories so that chroot will work:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

chroot in to the new partition:

sudo chroot /mnt

At which point you're running Ubuntu in the new partition. Then from there, update and reinstall GRUB:

update-grub
grub-install /dev/sda

You might need to update GRUB again afterwards.

Then reboot and the GRUB menu will be updated.

At that point I booted in to the new partition, deleted the old one, and updated GRUB to reflect that change.

share|improve this answer
add comment

Boot into the live CD and then do this in the terminal

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

Let it do its thing, and then do this

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

follow the defaults "Fix most common problems" or whatnot If it breaks again, come back.

share|improve this answer
add comment

Your Answer

 
discard

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.