I recently moved a partition with a complete Linux install except /home to a new disk (with DD).

Everything went fine, I can mount the partition, browse it... perfect.

Next step: install GRUB to make it bootable.

Restarted from a Live CD mounted the partition (mount /dev/sda1 /mnt/root/)

and installed GRUB:

grub-install --boot-directory=/mnt/root /dev/sda

I get a success message when I do this.

Now, when I boot, I go to the GRUB rescue CLI with the error "out of partition".

I tried to see what's inside the disk ls (hd0,1)/ and I got the list of directories. If I try to list the content of one of the directories I get an "out of partition" again.

The hardware is actually a virtual machine (QEMU).

  • mount /dev/sda1 /mnt/root, --boot-directory=/mnt/boot? – Hauke Laging Apr 26 '13 at 9:58
  • @HaukeLaging ops, mixed named, just fixed. Thanks for the remark. – Guerrio Apr 26 '13 at 10:37
  • I know grub only. With grub grub-install needs a target device (at least I think so and tha man page says so) and produces some really useful messages. – Hauke Laging Apr 26 '13 at 10:54
  • @HaukeLaging again missing. I forgot to put it on the question... but I did that. Thank you Hauke. – Guerrio Apr 26 '13 at 12:12
  • And the output? – Hauke Laging Apr 26 '13 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.