error: attempt to read or write outside of disk hd0

Asked by Egon Hess

I have a Compaq 2510p Laptop with a 30gb SSD and 2gb ram. I had previously installed Ubuntu 16.04 a while ago and 'clean' installed ubuntu v17.04 .After restart, it came up with
"error: attempt to read or write outside of disk hd0
 entering rescue mode"
I have followed a few hints online ie:
"grub rescue> ls (hd0,msdos1)/boot/grub" still results in
 " error: attempt to read or write outside of disk hd0"
I have reinstalled Ubuntu many times since then, always with the same result.
I am at a total loss as to what to do next.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

Maybe the bootinfo script provides the details for identifying the cause.
https://help.ubuntu.com/community/Boot-Info

Revision history for this message
Egon Hess (egon.h) said :
#2

When I use the "Erase disk and install Ubuntu 17.04" operation on the install disk , the installation does not create a boot partition and when complete, boots with the above error.
If I use " Something Else" and create some partitions on my hard drive (boot and root), Ubuntu installs and boots OK.
It appears that when I install Ubuntu over a Windows installation and use the "Erase disk and install Ubuntu 17.04" operation, the existing boot partition is not overwritten and Ubuntu installs and boots.
I now have Ubuntu 17.04 running on my laptop again but I can't understand how it would ever install on a machine using the default install settings on the installer disk.