Yesterday I successfully fixed my Linux boot problem. The whole experience taught me two valuable lessons: how the fsck command rescues a broken filesystem, and how to tame the GRUB boot order.
When the system refused to boot, I turned to the trusty fsck command. I tried a few variations:
# fsck -y /dev/rdsk # reboot # fsck -t ext3 /dev/sda1 # reboot
Neither of these did the trick. But when I ran fsck on its own, the system automatically repaired my filesystem. Everything worked after that, and I couldn't help but laugh in relief.
Next, I decided I didn't like the GRUB boot order and wanted to change it. Unfortunately, I had no idea how, and ended up with a system that wouldn't boot at all.
So I turned to the GRUB command line for help. After a bit of trial and error, I finally succeeded. Here's my working grub.conf, generated by anaconda:
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,6)/grub/splash.xpm.gz
hiddenmenu
title Mircosoft Windows
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.9-1.667)
root (hd0,6)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
With this configuration in place, my system boots smoothly again. A small victory, but a memorable first step into the world of Linux.