When I rebooted I got the "Error 15: File not found" grub message.
Here's how I recovered from my mistake (terminal commands are in parentheses):
- Booted from LiveCD. I used the Fedora 16 LiveCD, but any LiveCD distribution should work.
- Mounted my Fedora 14 system's boot partition using nautilus.
- Mounted my Fedora 14 system's root partition using nautilus.
- In the terminal, I ran df -Th and determined that the boot partition was mounted as /media/[big long string], and the root partition was mounted as /media/Fedora-14
- Opened a terminal.
- Changed to super user (su)
- Went to root directory (cd /)
- Moved/renamed the boot directory to something else (mv boot booty). I'm actually not sure if steps 8 and 9 are necessary, but I did it, so I'm noting it here.
- Created a symbolic link from /boot to the partition that I mounted in step 5 (ln -s /media/[big long string] /boot)
- Created a symbolic link from /lib/modules/3.1.1-libre to /media/Fedora-14/lib/modules/3.1.1-libre (ln -s /media/Fedora-14/lib/modules/3.1.1-libre /lib/modules/3.1.1-libre)
- Entered the /boot directory (cd /boot).
- Ran mkinitrd to make the initramfs file for kernel version 3.1.1-libre (mkinitrd initramfs-3.1.1-libre.img 3.1.1-libre). There were complaints about an inability to copy a bunch of module files to /var/tmp, but this is okay.
- Edit the grub.conf file so that it has an entry for the new kernel. Here's what the entry looks like.
title Fedora (3.1.1-libre) root (hd0,0) kernel /vmlinuz-3.1.1-libre ro root=UUID=blah-blah-blah ... rhgb quiet initrd /initramfs-3.1.1-libre.img
No comments:
Post a Comment