Grub

Grub

Post by Bria » Fri, 26 Jan 2001 15:21:40



Hi,

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
properly)

Thank you for any help...  =)


Thanks again!

- Brian -

 
 
 

Grub

Post by hac » Fri, 26 Jan 2001 23:50:06



> Hi,

> 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
> properly)

It works.  The documentation does have a few gaps ;-)

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)
file.

Here's part of mine:

# Entry 0: Linux boot.
title   Linux 2.4.0
root    (hd0,4)
kernel  /vmlinuz-2.4.0 root=/dev/hda6 read-only ether=0,0,0x30,eth0
pas2=0x388,10,5,-1,0,-1,-1 opl3=0x388

# Entry 1: Linux boot.
title   Linux 2.2.18
root    (hd0,4)
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
root    (hd0,0)
# makeactive
chainloader +1

# Entry 3: OpenBSD boot.
title   OpenBSD
root    (hd0,1)
chainloader +1

# Entry 4: Memtest86
title   Memtest86
root    (hd0, 4)
kernel  /memtest

--


 
 
 

1. Applying latest Recommended/Security patches installs grub, but "Solaris failsafe" grub option is missing.

Hello Guys,

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
client Pat
119901-02-GNOME 2.6.0_x86: Gnome libtiff - library for reading and
writing T
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
archive".
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
root (hd0,0,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------
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

Loris

2. How to Make Xinetd Stop Trying Port 113

3. HowDo I: Boot from Redhat GRUB to Mandrake GRUB

4. Sun Sees Opportunity in IBM-SCO Showdown

5. GRUB winxp and RH8 - Grub overwritten

6. shared writeable mapping ?

7. Grub setup trouble (newbie with grub and Suse 8.1)

8. RPM's

9. GRUB: GRUB requires a working absolute objcopy; upgrade your binutils

10. grub to chainload another grub?

11. Grub/Lilo - How do you start with GRUB?

12. Lilo does not remove grub. How do I get rid of grub?

13. How to use GRUB?