Installing a CD/RW
Same procedure in finding the actual device could work in identifying the drive
This command may not be enough so use this instead:
The dmesg | grep queries the hardware and give you complete information about the drive, including brand name, model, speed and revision number. The dmesg | grep can be also used for any piece of physical known hardware, such as CD, eth0, ide, etc.
Assuming that you only have a hard drive and a CD-RW, then the dmesg | grep should return /dev/hdxx. If your system has two CD drives, you'll have to find out which is which. The system will report whether it is /dev/cdrom, /dev/cdrom0 or /dev/cdrom1; more information can be obtained by exploring /proc/ide
To configure the setting, edit the following files:
- /etc/modules add this line:
scsi_hostadapter
- /etc/modules.conf add this line:
probeall scsi_hostadapter ide-scsi
Exit and save the files
Now edit /etc/lilo.conf, find the line that says append = Inset your correct drive obtained from dmesg | grep.
a)hdb=ide-scsi b)hdc=ide-scsi c)hdd=ide-scsi
Be careful, do not delete devfs=mount, observe my lilo.conf below.
boot=/dev/hda
map=/boot/map
vga=normal
default=linux
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/vmlinuz
label=linux
root=/dev/hda5
initrd=/boot/initrd.img
append="quiet devfs=mount hdc=ide-scsi hdd=ide-scsi"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda5
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi hdd=ide-scsi"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda5
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdc=ide-scsi hdd=ide-scsi"
read-only
other=/dev/hda1
label=NT
table=/dev/hda
other=/dev/fd0
label=floppy
unsafe
other=/dev/hda3
table=/dev/hda
label=FreeBSD
Save, exit and execute lilo
lilo –v
This command will update the boot image… and now you can reboot the system.
If you are logged in graphically, insert a CD disk into the CD-ROM drive and you should be able to read it. If not mount the drive to:
#mount /dev/scd0 /mnt/cdrom
Note. Your first CD-ROM drive is scd0 the second would be scd1…only if you have it in the same ide channel. If you have it as slave with a master hard drive it will be treated as hdb or hdbx. Same rule is applied to Zip drives.
An organized way is to create mounting point for each drive in the mnt directory:
| #/mnt/mkdir cdrom | #/mnt/mkdir cdrom1 | #/mnt/mkdir cdrom2 |
| #/mnt/mkdir dvd | #/mnt/mkdir dvd1 | #/mnt/mkdir dvd2 |
| #/mnt/mkdir zip | #/mnt/mkdir zip2 | #/mnt/mkdir zip3 |
Create directory as needed and mount it as appropriate. Use the Mandrake Control Center, Mount Points to create an fstab entry for your device.
|