📄 00000019.htm
字号:
information to boot your machine. The lines we are concerned with are <BR> the following: <BR>image=/boot/vmlinuz <BR>root=/dev/hda3 <BR>label=LinuxSMP <BR> <BR> We must add a new entry to the lilo configuration file. Basically just <BR> copy the information, but change the image=/boot/vmlinuz entry to <BR> image=/boot/scsi (or whatever you named your new kernel). We must also <BR> change the label line. In place of whatever is there now, chose a new <BR> label, such as scsi. This label is how you tell LILO which kernel you <BR> want to boot. After editing my lilo.conf file looks like this: <BR>boot=/dev/hda <BR>read-only <BR>prompt <BR>timeout=100 <BR>vga=normal <BR> <BR>image=/boot/vmlinuz <BR>root=/dev/hda3 <BR>label=LinuxSMP <BR> <BR>image=/boot/scsi <BR>root=/dev/hda3 <BR>label=scsi <BR> <BR> As you can see I added a new entry and changed the image and label <BR> lines. After modifying lilo.conf run lilo to add the new entry , just <BR> enter the command lilo on a line by itself and press enter, lilo will <BR> read in your new config file and you are ready to reboot. <BR> <BR> A word of warning, once you reboot you will NOT be able to get to your <BR> CD-ROM and CDR drives until a few changes are made. Go ahead and <BR> shutdown and reboot the machine now. When you get the LILO boot prompt <BR> type in whatever name you placed on the label= line to start your new <BR> kernel. If your new kernel does not boot correctly then you can revert <BR> to using the old kernel. <BR> <BR> Ok, now we have to find out where our CDR and CDROMs are. Use the <BR> dmesg command to scroll through the system startup messages by issuing <BR> the command dmesg | more. The relevant sections of mine look like <BR> this: <BR>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <BR>scsi : 1 host. <BR> Vendor: GoldStar Model: CD-ROM CRD-8241B Rev: 2.03 <BR> Type: CD-ROM ANSI SCSI revision: 02 <BR>Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 <BR> Vendor: CREATIVE Model: CD-RW RW4224E Rev: 1.20 <BR> Type: CD-ROM ANSI SCSI revision: 02 <BR>Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0 <BR>scsi : detected 2 SCSI generics 2 SCSI cdroms total. <BR>*sr0: scsi3-mmc drive: 1x/24x cd/rw xa/form2 cdda tray <BR>Uniform CDROM driver Revision: 2.56 <BR>*sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray <BR> <BR> I have added the asterisks to the bottom lines to show you what to <BR> look for. Basically this tells me that 2 scsi devices were found, one <BR> at /dev/sr0 and the other at /dev/sr1. If you try and use such things <BR> as your CD player etc they probably will not work, we need to set a <BR> few links and change a few files. <BR> <BR> According the above output of the dmesg command my regular plain <BR> vanilla CD-ROM manufactured by Goldstar is located at /dev/sr0 . I <BR> want to make this my standard CD-ROM device for general CD usage and <BR> music playing so I will link it to the /dev/cdrom device using the <BR> following command: <BR>ln -sf /dev/sr0 /dev/cdrom <BR> <BR>Replace the /dev/sr0 with the actual location reported to you during <BR>system startup. <BR> <BR> This sets a link to the CD-ROM device and you should be able to play <BR> music now, go ahead and try it. Now we need to deal with the CDR <BR> device which is located at /dev/sr1 on my system, but could be <BR> different on yours. First I want to create a directory to mount the <BR> CDR in. I personally like to mount all my external file-systems under <BR> some subdirectory of / . Many distributions default to mounting <BR> external file-systems to a subdirectory of /mnt, such as /mnt/cdrom <BR> for the CD-ROM. It does not really matter what you do, I created a <BR> directory called /cdr for my CD-R by navigating to the / directory and <BR> creating a new directory with the following commands: <BR>cd / <BR>mkdir cdr <BR> <BR> Pretty simple, once you have done this make sure everything is working <BR> correctly by placing a good CD (not music) into the recorder and <BR> trying to mount it with the following command: <BR>mount -t auto /dev/sr1 /cdr <BR> <BR> You will need to replace the /dev/sr1 to whichever location was <BR> reported to you on system boot-up and replace the /cdr to the location <BR> of the directory you created in the above step to create a directory <BR> to mount your cdr under. <BR> <BR> Ok, once you've mounted the CD-R goto whatever location you mounted it <BR> at get a directory list to make sure everything is ok, if so leave the <BR> directory and unmount the cdr. We are ready to edit our /etc/fstab, <BR> but first breathe and take a little break, we are almost done! <BR> <BR> Now, the final part to get it all installed and working, to edit our <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -