Ubuntu – Booting Ubuntu Failure : error: attempt to read or write outside of disk ‘hd0’

12.10bootgrub2grubrescue

I have installed Ubuntu 12.10 in a Western Digital external hard drive (320GB). This is a complete installation, not a live USB.

When I plug it in my HP desktop I go to the BIOS settings and boot off the hard drive, everything work perfectly as it should. Now this works on every single computer and laptop in my house (all HP), except for ONE. My HP ProBook 4530s.

When I select to boot of the USB I get the message:

error: attempt to read or write outside of disk 'hd0'

Now, I have removed the hard drive from my laptop and the external drive is the ONLY drive plugged in. Below is a screenshot of the message on the screen. After the message I navigate to ls / (as shown below):

enter image description here

After here I try to acces other folders under ls /, for example, I try to go to ls /boot to get to the grub folder. Then I get the same message as before: as shown below:

grub rescue> ls /boot

error: attempt to read or write outside of disk 'hd0'
grub rescue> _

The only folders I can access without getting the message again are /home, /run and /usr.

So how do I:

  1. Boot Ubuntu from GRUB2 (this screen) manually
  2. Set to automatically boot Ubuntu
  3. If possible an explanation for this problem

Thanks!

Best Answer

I have spent days messing with this and researching an answer, and I was unable to find one until today. I wanted to post the solution here because I find it unlikely that I am the only one (this question has a lot of views).

The answer for me was found here: http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/boot-problem-after-installing-ubuntu-11-04-kernel-panic-not-syncing-vfs-919143/

Booting from a LiveCD and altering grub.cfg to access the block device by name instead of UUID was the fix for me. This was temporary... in that after I updated my packages, it installed a grub update that broke it. I have been messing with the grub.cfg to try and re-fix it, now, but its progress! Hope someone can fill in the next step.

Related Question