Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was doing a series of upgrades of my desktop which had 10.04, aiming for 12.04. Somewhere in the middle, GRUB began displaying "error: hd0 out of disk / press any key to continue", but the boot continued without problems. I decided a fresh install of 12.04 from a CD would be faster and hopefully eliminate the error, but it persisted.

I then used boot-repair according to this topic Out Of disk, but still boots choosing the option of ATA disk support. This led to some scary errors.

So I followed the directions of creating a 1G partition at the start of the disk and running boot-repair. Now when booting Ubuntu, it says "error: hd0 write error / press any key to continue" and again boots like normal. How do I solve this error?

Here are the current results of running bootinfoscript:

Any help is appreciated.

grub> ls -l
Device hd0: Not a known filesystem - Total size 312581808 sectors
    Partition hd0,msdos5: Not a known filesystem - Partition start at 300505088 - Total size 12075008 sectors
    Partition hd0,msdos3: Filesystem type ext2 - Last modification time 2012-11-20 20:39:28 Tuesday, UUID 497becdd-c89d-4fcf-8f82-61e37fdc7881 - Partition start at 2048 - Total size 2048000 sectors
    Partition hd0,msdos1: Filesystem type ext2 - Last modification time 2012-11-20 07:43:41 Tuesday, UUID deb68dbd-c809-4b2a-9047-a58349e67375 - Partition start at 2050048 - Total size 298452992 sectors
Device hd1: Not a known filesystem - Total size 976773168 sectors
    Partition hd1,msdos1: Filesystem type ntfs, UUID D6942BD2942BB3C1 - Partition start at 63 - Total size 976751937 sectors
share|improve this question
At the grub menu, press c to go to the console and type ls -l and edit your question to show the output. – psusi Nov 20 '12 at 19:15
How do I write this output to a file from within the console so I can paste it here? – djtrousdale Nov 20 '12 at 20:03
You don't; you will have to retype it or take a photo. – psusi Nov 20 '12 at 20:53
Okay, there's some info. – djtrousdale Nov 20 '12 at 21:31
Run Boot-Repair. When asked if sda is amovible, answer Yes (even if it is not in reality), then click the Recommended Repair button. This will reinstall GRUB in the MBR of your Ubuntu disk, and a generic bootloader in your Windows disk. Please indicate the URL that will appear. – LovinBuntu Nov 21 '12 at 13:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.