Re: Patching a kernel source --verbose



Roberto C. Sanchez wrote:
On Fri, Aug 11, 2006 at 01:18:30PM +0930, Arthur Marsh wrote:
The memtest86+ package installs as a grub option, so one doesn't need a separate boot image on CD to run it.

True, but from a user-friendliness stand point, it is much simpler. I
know that grub always destroys my menu.lst whenever it touches it, so I
do not trust the authomated tools to update it or change it.

Regards,

-Roberto


I've wanted to have the automated tools to work for me, so I backed up /boot/grub/menu.lst, then read the manual page for update-grub before running it, observing the differences between the backed-up copy and the automatically updated copy and seeing what needed to be tweaked.

For instance in my

### BEGIN AUTOMAGIC KERNELS LIST

## ## Start Default Options ##

section I have (amongst other things)

# kopt=root=/dev/hda5 ro
# kopt_2_6_17_1_686=root=/dev/hda5 ro noisapnp
# kopt_2_6_17=root=/dev/hda5 ro noisapnp

# memtest86=true

which are read by update-grub (even though the line starts with #) to rewrite menu.lst to boot the kernel with "noisapnp" in effect, and to create the memtest grub option:

title Debian GNU/Linux, kernel memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
boot

Arthur.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Error rebooting after upgrade from 2.6.12-i36 to 2.6.15-i686
    ... and a busybox shell appears. ... Have the latest grub in unstable. ... Boot into 2.6.12 kernel and then do this: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to Boot a Dell Optiplex 320?
    ... No, there's not so much as a grub menu; it's like the grub menu has been pre-told which option to boot from, so there's no option for the user to over-ride the installer's choices. ... I was hoping someone knew a "hot-key" in LILO when it's been instructed not to wait for user interaction) to bring the menu up. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: [Jaunty] Grub problem after update
    ... Grub problem after update ... # Put static boot stanzas before and/or after ... ## default kernel options for automagic boot ... ## should update-grub create alternative automagic ...
    (Ubuntu)
  • Re: grub re-install
    ... I've updated another OS on my machine and I'd like to re-install grub, ... Is there any way I can re-run the debian installer on an existing system ... There should be an option to reinstall the boot loader. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Grub question..
    ... info to partition - I want to dual boot using ... I copied the grub menu.lst entry from /boot/grub/menu.lst ... Boot with it typing at boot prompt: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)