| Make Sure You can Boot Your System When Testing Kernels
|
- You might want to make a separate boot floppy for testing your kernels
|
| Booting Your CDRW-capable Kernel w/ Lilo
|
- Lets assume /dev/hda is your system disk
- Lets assume /dev/hdc is your cdrw disk
- vi /etc/lilo.conf
....
#
# Build a 2.4.22 kernel that supports writing to cdrom
#
image=/boot/vmlinuz-2.4.22
label=Linux-2.4.22-CDRW
read-only
#
# Pass the kernel options to support cdrw
#
append="hdc=ide-scsi"
# append="hdc=scsi"
#
#
# If you unplug your cdrw and use a ide hard disk instead
#
image=/boot/vmlinuz-2.4.22
label=Linux-2.4.22
read-only
#
# leave these cdrw options commented out
# append="hdc=ide-scsi"
# append="hdc=scsi"
....
- lilo
|
| Booting Your CDRW-capable Kernel w/ Grub
|
- Lets assume /dev/hda is your system disk
- Lets assume /dev/hdc is your cdrw disk
- vi /boot/grub/grub.conf
#
root (hd0,0)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) \ /boot/grub/stage2 0x8000 (hd0,0)
/boot/grub/menu.lst
quit
#
- vi /boot/grub/menu.lst
#
boot=/dev/hda
#
default=4
timeout=10
#
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
#
title Linux (2.4.22p4)
root (hd1,0)
kernel /boot/vmlinuz-2.4.22p4 ro root=/dev/hda1
#
#
# Pass the kernel options to support cdrw
#
title Linux (2.4.22cd)
root (hd1,0)
kernel /boot/vmlinuz-2.4.22p4 ro root=/dev/hda1 hdc=ide-scsi
#
- grub-install /dev/hda
|
| /etc/modules.conf and /etc/rc.d/rc.local
|
|