Just wondering if anyone knows how to set Grub up again after compiling a
(I know how to set Lilo up fine but I want to learn how to set Grub up
Thank you for any help... =)
- Brian -
> Just wondering if anyone knows how to set Grub up again after compiling a
> new kernel?
> (I know how to set Lilo up fine but I want to learn how to set Grub up
You need to install the grub files, typically in /boot/grub. In my
case, /boot is a separate partition, so in order to make it look like
/boot/grub, they're really installed in /boot/boot/grub. Really. It
IS in the documentation.
Edit the /boot/grub/menu.lst file, and you can install the appropriate
stage one loader on the mbr.
There are floppy images that you can download, which allow you to play
around with running it from floppy first. Those contain the MBR and
an ext2 filesystem with the rest of the files. Copy the image onto a
floppy, mount it, and edit the /mnt/boot/grub/menu.lst (or whatever)
Here's part of mine:
# Entry 0: Linux boot.
title Linux 2.4.0
kernel /vmlinuz-2.4.0 root=/dev/hda6 read-only ether=0,0,0x30,eth0
# Entry 1: Linux boot.
title Linux 2.2.18
kernel /vmlinuz-2.2.18 root=/dev/hda6 read-only ether=0,0,0x30,eth0
# Don't forget that some distributions rely on an initial ramdisk:
# initrd /boot/initrd
# Entry 2:
title Windows 98
# Entry 3: OpenBSD boot.
# Entry 4: Memtest86
root (hd0, 4)
After applying in single user mode the following patches on a Sun
W1100z workstation running Solaris 10 x86/64 03/05,
118344-08-SunOS 5.10_x86: Fault Manager Patch
118966-19-X11 6.8.0_x86: Xorg patch
119060-12-X11 6.6.2_x86: Xsun patch
119116-17-Mozilla 1.7_x86 patch
119549-04-GNOME 2.6.0_x86: Gnome Multi-protocol instant messaging
119901-02-GNOME 2.6.0_x86: Gnome libtiff - library for reading and
122035-01-SunOS 5.10_x86: nawk patch
122857-02-SunOS 5.10_x86: sendmail patch
118372-07-SunOS 5.10_x86: elfsign Patch
118855-02-SunOS 5.10_x86: kernel patch
118919-12-SunOS 5.10_x86: Solaris Crypto Framework patch
119131-19-SunOS 5.10_x86: Sun Fibre Channel Device Drivers
120901-03-SunOS 5.10_x86: libzonecfg patch
121334-02-SunOS 5.10_x86: zoneadmd, zlogin and zoneadm patch
119255-19-SunOS 5.10_x86: Install and Patch Utilities Patch
120255-02-SunOS 5.10_x86: ufs Patch
122033-02-SunOS 5.10_x86: Update timezones patch
I rebooted the system and it came up with a "panic: cannot mount boot
Googling around, I kind of found out how to get around this, which is:
I booted from cdrom 1 of Solaris 10 x86 (01/06) and ran the following:
# mount /dev/dsk/c0d0s0 /a
# bootadm update-archive -f -R /a
Now the W1100z boots up fine, but still, comparing the grub menu
options on the W1100z (natively 03/05) to another one (32 bit,
unfortunately) which I have installed from scratch with the 01/06
media, there is no "Solaris failsafe" boot option.
On the 32bit 01/06 box, I can see the following in /boot/grub/menu.lst
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
kernel /boot/multiboot kernel/unix -s
With /boot/multiboot and /boot/x86.miniroot-safe existing under /boot.
But, these files are not present on the 64 bit W1100z.
Any idea about how to get this sorted?
Thanks in advance
13. How to use GRUB?