Celeb Glow
updates | March 18, 2026

how can I fix error: hd0 out of disk?

I am running Ubuntu 12.04 on a netbook - Acer AS 1410.

After a download session, I restarted the computer and it said:

error: hd0 out of disk. Press any key to continue...

I pressed everything, but it's just frozen there.

Any idea what's wrong with it and what I can do to fix it? I haven't been able to run my computer at all since it's frozen like that. Help please!

I booted the live cd and ran sudo fdisk -lu into terminal, and here's what it gave me:

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9a696263 Device Boot Start End Blocks Id System
/dev/sda3 2048 117229567 58613760 5 Extended
/dev/sda5 * 71647232 109039615 18696192 83 Linux
/dev/sda6 109041664 117229567 4093952 82 Linux swap / Solaris
/dev/sda7 4096 71645183 35820544 83 Linux
Partition table entries are not in disk order

I am somewhat of a beginner in this, so don't know what this means. any ideas? Thanks!

7

3 Answers

I believe you've upgraded many times, and you have a lot of old linux kernals filling up your grub partition.

I think you're going to have to boot from a live DVD or USB, mount the HDs boot partition, see if it is indeed full, and if that's the case, manually delete a couple of old kernals.

If you haven't got a backup, you might copy your ~/ to a safe place first.

2

Start with a Live-Usb.

Completed load session:

Open a terminal.

Press Ctrl+Alt+T

Run it:

sudo -i
umount /dev/sda5
fsck -y /dev/sda5
umount /dev/sda6
fsck -y /dev/sda6
mount /dev/sda5 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
apt-get update
apt-get autoremove
apt-get clean
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
grub-install --root-directory=/mnt /dev/sda
grub-install --recheck /dev/sda
umount /mnt
reboot

I had such problem.

error: hd0,msdos1 out of disk.
grub rescue>

The reason is that the RAM modules did not fully enter the slot. I removed the modules and installed them in a new way, checked that they fully entered the slots, and were locked with locks. After these operations, the system boots normally.

P.S: CPU: Pentium 4, 2.4 GHz. MotherBoard: ASUS P4P800; OS Linux MINT 10 «Julia» (32-bit)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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