Next Previous Contents

5. Χρησιμοποιώντας το Lilo όταν το BIOS δεν μπορεί να δει το Root partition

Έχω δυο δίσκους IDE, και έναν δίσκο SCSI. Το BIOS δεν μπορεί να δει το SCSI δίσκο μου. Ο Linux Loader, το Lilo, χρησιμοποιεί κλήσεις του BIOS και μπορεί να δει δίσκους που μόνο το BIOS μπορεί να δει. Το κουτό AMI BIOS μου θα ξεκινήσει μόνο από το "A:" ή το "C:". Το root σύστημα αρχείων μου είναι ένα partition στο SCSI δίσκο.

Η λύση έγκειται στην αποθήκευση του πυρήνα, του αρχείου απεικόνισης (map file), και του chain loader σε ένα Linux partition στο πρώτο IDE. Σημειώστε ότι δεν είναι απαραίτητο να κρατάτε το πυρήνα σας στο root parition σας.

Το δεύτερο parition του πρώτου IDE δίσκου μου (/dev/hda2, το Linux parition που χρησίμευε για την εκκίνηση του συστήματος) είναι mounted στο /u2. Παρακάτω ακολουθεί το αρχείο /etc/lilo.conf που χρησιμοποιώ.

#  Install LILO on the Master Boot Record
#  on the first IDE.
#
boot = /dev/hda
#  /sbin/lilo (the installer) copies the LILO boot record
#  from the following file to the MBR location.
install = /u2/etc/lilo/boot.b
#
#  I wrote a verbose boot menu.  LILO finds it here.
message = /u2/etc/lilo/message
#  The installer will build the following file. It tells
#  the boot-loader where the blocks of the kernels are.
map = /u2/etc/lilo/map
compact
prompt
#  Wait 10 seconds, then boot the 1.2.1 kernel by default.
timeout = 100
#  The kernel is stored where BIOS can see it by doing this:
#      cp -p /usr/src/linux/arch/i386/boot/zImage /u2/z1.2.1
image = /u2/z1.2.1
        label = 1.2.1
#  LILO tells the kernel to mount the first SCSI partition
#  as root.  BIOS does not have to be able to see it.
        root = /dev/sda1
#  This partition will be checked and remounted by /etc/rc.d/rc.S
        read-only
#  I kept an old Slackware kernel lying around in case I built a
#  kernel that doesn't work.  I actually needed this once.
image = /u2/z1.0.9
        label = 1.0.9
        root = /dev/sda1
        read-only
#  My DR-DOS 6 partition.
other = /dev/hda1
        loader=/u2/etc/lilo/chain.b
        label = dos
        alias = m


Next Previous Contents