(fd0) /dev/fd0
(hd0) /dev/hda
- Take out hard drive
- Boot with rescue CD
- # mkdir /mnt/rootdrive
- # mount /dev/hda5 /mnt/rootdrive
- # chroot /mnt/rootdrive
- # mount boot
- Edit boot/grub/config.map to be:
(fd0) /dev/fd0
(hd0) /dev/hda
- Edit boot/grub/menu.lst to be the contents of http://paste.lisp.org/display/1756#6
- Edit etc/fstab so that the entries are correct (referencing /dev/hda in place of /dev/hdd)
- # grub-install /dev/hda
- # umount boot
- # exit
- # umount rootdrive
- # reboot
- You should be able to boot from the hard drive now
once booted up, try to:
- chroot /dev/hda5
- mount -a
- revert boot/grub/device.map to: http://paste.lisp.org/display/1756#1
- grub-install /dev/hda
# menu.lst --- attempt 1
# use http://paste.lisp.org/display/1756#1 for the device.map file
#
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$R5jb9Lfz$X03bpoTrjxxLm7lrF7Cpt1
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,4)
kernel (hd0,0)/vmlinuz-2.4.22-1.2174.nptl ro root=/dev/hda5 rhgb
initrd (hd0,0)/initrd-2.4.22-1.2174.nptl.img
[root@nina root]# grub-install /dev/hdd
/dev/hda1 does not have any corresponding BIOS drive.
[root@nina root]# mount -l
/dev/hda1 on / type ext3 (rw) [/]
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdd5 on /mnt/hdd type ext3 (rw) [/]
/dev/hdd8 on /mnt/hdd/usr type ext3 (rw) [/usr]
/dev/hdd7 on /mnt/hdd/usr/local type ext3 (rw) [/usr/local]
/dev/hdd11 on /mnt/hdd/var type ext3 (rw) [/var]
/dev/hdd9 on /mnt/hdd/home type ext3 (rw) [/home]
/dev/hdd10 on /mnt/hdd/var/www type ext3 (rw) [/var/www]
/dev/hdd2 on /mnt/hdd/var/ftp type ext3 (rw) [/var/ftp]
/dev/hdd1 on /mnt/hdd/boot type ext2 (rw) [/boot]
[root@nina root]# mount
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdd5 on /mnt/hdd type ext3 (rw)
/dev/hdd8 on /mnt/hdd/usr type ext3 (rw)
/dev/hdd7 on /mnt/hdd/usr/local type ext3 (rw)
/dev/hdd11 on /mnt/hdd/var type ext3 (rw)
/dev/hdd9 on /mnt/hdd/home type ext3 (rw)
/dev/hdd10 on /mnt/hdd/var/www type ext3 (rw)
/dev/hdd2 on /mnt/hdd/var/ftp type ext3 (rw)
/dev/hdd1 on /mnt/hdd/boot type ext2 (rw)
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
password --md5 $1$R5jb9Lfz$X03bpoTrjxxLm7lrF7Cpt1
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,0)
kernel /boot/vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ rhgb
initrd /boot/initrd-2.4.22-1.2174.nptl.img
(fd0) /dev/fd0
(hd0) /dev/hdd