Installation manual

22 4. Configuration of the Custom Kernel
Update of /etc/lilo.conf:
image=/boot/vmlinuz
label=linux
read−only
vga=792
append="hdc=ide−scsi"
The DVD/CD-RWdrive shows up as Host: scsi0 Channel: 00 Id: 00 Lun: 00 and as the first SCSI CD-ROM, i.e.
/dev/scd0. For convenience, we install symlinks for /dev/cdrom, /dev/dvd and /dev/cdrw.
Creating symlinks for the DVD/CD-ROM/CD-RW/:
#> rm /dev/cdrom /dev/dvd /dev/cdrw
#> ln −s /dev/scd0 /dev/cdrom
#> ln −s /dev/scd0 /dev/dvd
#> ln −s /dev/scd0 /dev/cdrw
Finally we also have toupdate /etc/fstab.
/etc/fstab:
/dev/hda1 /boot ext2 defaults,ro 02
/dev/hda2 none swap sw 00
/dev/hda5 / ext2 defaults,errors=remount−ro 01
/dev/disk/usr /usr ext3 defaults,ro 02
/dev/disk/var /var ext3 defaults,errors=remount−ro 02
/dev/disk/tmp /tmp ext2 defaults,errors=remount−ro 02
/dev/disk/cdr /cdr ext3 defaults,errors=remount−ro 02
/dev/disk/home /home ext3 defaults,errors=remount−ro 02
/dev/scd0 /mnt/cdrom iso9660 user,ro,nosuid,nodev,exec,noauto 00
/dev/scd0 /cdrom iso9660 defaults,noauto 0 0
proc /proc proc defaults 00
none /dev/pts devpts gid=5,mode=620 00
After inserting the APA1480A card, the scanner shows up as Host: scsi1 Channel: 00 Id: 00 Lun: 00 and as the
second generic SCSI device, i.e. /dev/sg1. Unfortunately,the AIC7xxx driverisapparently not hot-un-pluggable.
In other words, we must shutdown the machine to remove the SCSI card. Otherwise the kernel will panic sooner
or later — with unpredictable consequences for the rest of the SCSI subsystem.
4. 14. LVM(Logical Volume Management)
There is nothing newinour kernel configuration for Logical Volume Management (LVM). Wecan add, however,
afew cosmetic configurations.
Kernel configuration for LVM:
—— Multi−Device Support (RAID and LVM) ——
yes Multiple devices driver support (RAID and LVM)
yes Logical volume manager (LVM) support
The LVM library scans for a bunch of devices while heading to find disks. If these are not supported by the ker-
nel, the module loader tries to find and load the corresponding kernel modules. This produce somes error mes-
sages, which we can easily avoid.
LVMstartup error messages:
[date] [machine] modprobe: Can’t locate module block−major−8
[date] [machine] modprobe: Can’t locate module block−major−33
[date] [machine] modprobe: Can’t locate module block−major−34
block-major-8 are SCSI disk devices, block-major-33 and block-major-33 the third and forth IDE hard disk/CD-
ROMinterfaces. As we don’thav e anySCSI disks and don’taccess the CD-ROM as an IDE device, we can cre-
ate /etc/modutils/lvm-exclude and then update /etc/modules.conf to makeLVM shut up.