I tried to install Xubuntu 13.10 on an older computer. I noticed some difficulties during installation that may be relevant to my problems. Notably:
The screen resolution was extremely low. The windows were much larger than the screen and I had to move them around to get to the "Next" button.
The mouse cursor was a blur of colours that was flashing all the time.
The installation finished and I tried to reboot the computer. Immediately I got:
error: attempt to read or write outside of disk 'hd0'.
Entering rescue mode...
grub rescue>
I made a Boot Repair USB disk, booted it and chose the default repair. The application told me that the problem is repaired and that If this does not solve my problem I should show this link to someone who can help me.
What should I do next? I already tried to install Ubuntu and Xubuntu, both with no success.
EDIT:
I found a workaround.
- Insert the Xubuntu live USB
- Select "try Xubuntu"
- In the settings menu select "install Xubuntu"
This fixed the problem for me. Since it is solved I cannot test the answer.
Locate the partition in which linux is present with the help of following technique
Now, system's boot menu appears. Boot into linux.
This fixes boot loader.
For anyone else that has this issue:
This was happening to me where a new install or grub repair would work and reboot, but the next time I rebooted, it would get this same "attempt to read error". Most times I would get a kernel panic and the computer would need a hard restart.
I followed some advice and did a new install using the advanced options (don't use the "erase disk and install ubuntu") using these partition settings:
It can be easily solved through the Grub rescue prompt. The first answer isn't quite complete and I got the same error at first. Here is how it works:
1st we need to find the primary partition. This will be where the essential files needed for linux to boot will reside, so we enter this -
You should now see a list comparable to (hd0) (hd0,msdos5) (hd0,msdos1). Note that you may have different partitions than myself, as well as multiple drives, but the process is the same.
Now search the partitions to find the primary -
Until grub outputs either a list of files on that partition or shows the filesystem type and date of last modification.
2nd we need to set up a few things once we've found our primary partition -
Once the last set command is executed Grub will output a list of different parameters. Now lets check that we've set the correct root and prefix -
Grub should output a list of files contained within /boot.
3rd we need to set the mount point and load the kernel -
And lastly we boot the system -
If you end up booting into the busybox shell, simply enter
fsck /dev/sda1
. After that just enterexit
and your system will boot normally.I solved this problem by moving my Linux partition close to begining of hard disk. When linux partition was at the end of my 120 Gb HDD (40 Gb from end) I got this problem. No one solution didn't work. After moving linux partition to space from 40Gb to 80Gb problem disappeared.
I had this issue when trying to install Ubuntu 18 Server and Xubuntu 18 on a Dell server. Selecting UEFI instead of Legacy in the BIOS menu fixed it.
After searching lots of hours I tried this solution and it works well, to reinstall the kernel:
This is random problem.
In this case better solution is to create
/boot
folder in its own partitionDetails are here
I am achieving this issue when I has used vmdk disk from OVA virtual machine package in virt-manager/QEMU/KVM. The virtual machine was failing with this error message.
Solution was to convert vmdk into qcow2:
And to use converted image in virt-manager instead.
I used @Andrew answer to recover an existing system.
In my case I had the following system:
Basically I installed a new ubuntu besides the old one with an independent /boot partition, then remapped the old ubuntu to use the new /boot.
Start Installing new ubuntu from live CD, go to advanced.
Make space for a /boot partition (permanent) and a root partition (temporary) for the new ubuntu.
After installing you might access the old ubuntu at grub menu below the memtest (it's recognized automatically like if it was a windows partition). Boot it.
Edit /etc/fstab to mount the new /boot, ie
Option 1 (tested) Mount the new /boot and reinstall all linux-images
Option 2 (not tested) Copy everything from your old /boot to the new one, except the grub folder
Use blkid to find the UUID of your new swap partition, update fstab with the new UUID
Update Grub with update-grub and reboot.
If everything is still working, umount /boot. delete everything inside your old /boot and remount it.