Paste number 1756: myrkraverk's new /boot/grub/device.map file

Index of paste annotations: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Paste number 1756: myrkraverk's new /boot/grub/device.map file
Pasted by: bigmike160
4 years, 5 months ago
#emacs
Paste contents:
Raw Source | XML | Display As
(fd0)        /dev/fd0
(hd0)        /dev/hda

Annotations for this paste:

Annotation number 1: amendment 1 for /boot/grub/device.map
Pasted by: bigmike160
4 years, 5 months ago
Paste contents:
Raw Source | Display As
(fd0)        /dev/fd0
(hd0)        /dev/hdd

Annotation number 2: /boot/grub/grub.conf
Pasted by: myrkraverk
4 years, 5 months ago
Paste contents:
Raw Source | Display As
# 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

Annotation number 3: mount
Pasted by: myrkraverk
4 years, 5 months ago
Paste contents:
Raw Source | Display As
[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)

Annotation number 4: mount -l
Pasted by: myrkraverk
4 years, 5 months ago
Paste contents:
Raw Source | Display As
[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]

Annotation number 5: for reference, the error that myrkraverk is now getting
Pasted by: bigmike160
4 years, 5 months ago
Paste contents:
Raw Source | Display As
[root@nina root]# grub-install /dev/hdd
/dev/hda1 does not have any corresponding BIOS drive.

Annotation number 6: menu.lst attempt 1
Pasted by: bigmike160
4 years, 5 months ago
Paste contents:
Raw Source | Display As
# 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

Annotation number 7: rescue routine for myrkravek
Pasted by: bigmike160
4 years, 5 months ago
Paste contents:
Raw Source | Display As
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

Annotation number 8: another attempt to get myrkraverk's machine sane
Pasted by: bigmike160
4 years, 5 months ago
Paste contents:
Raw Source | Display As
- 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

Colorize as:
Show Line Numbers
Index of paste annotations: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.