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.

With an Ubuntu Live Disc, I have copied my Ubuntu 10.04 installation to a new harddisk (with the same hardware). However, it doesn't boot, since I think I still need to set up grub for this new installation.
How do I set up grub2 for a copied Ubuntu installation?
All the tutorials for grub2 didn't really help me...

running

update-grub

on the "original" Ubuntu installation doesn't find the copied Ubuntu installation.

share|improve this question
    
How exactly did you clone the Ubuntu installation? –  Jordan Uggla Mar 2 '11 at 9:38
    
I used gparted from a Ubuntu 10.10 live disk. In gparted, you can "copy/paste" a whole partition. –  ptikobj Mar 2 '11 at 10:57
    
I'd have used clonezilla clonezilla.org/downloads.php , another solution is while booted in live mode, mount your partition by either clicking on it in nautilus or sudo mount /dev/sdaX /mnt (replace X with partition number) and from terminal do sudo grub-install --root-directory=/mnt /dev/sda reboot into installed ubuntu and run sudo update-grub –  duffydack Oct 29 '11 at 8:53
add comment

1 Answer

up vote 6 down vote accepted

Here is the solution I used... It's in german, unfortunately.

It's basically the same as described in the Ubuntu wiki:

  1. In a Live-CD session run: sudo fdisk -l to determine the disk name X and the partition number Y of your Ubuntu installation - should be of form /dev/sdXY.
  2. run sudo mount /dev/sdXY /mnt
  3. run sudo grub-install --root-directory=/mnt/boot /dev/sdX
  4. Reboot.
  5. Update the grub menu: sudo update-grub
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.