HOWTO Setup Your IDE CDR/RW Drive on SME 5.x


Author:
Placido Sanchez
http://www.geocities.com/lapsch
[email protected]
Last Updated 2-25-02

NOTE:
Tested only on SME 5.0 and SME 5.1 but should work fine with little/no problem on E-Smith 4.x

WARNING:
You are responsible for any changes you make, so only add these settings if you know what you're doing, or are prepared to deal with the consequences.

Create needed files/directories
mkdir -p /etc/e-smith/templates-custom/etc/lilo.conf
cd /etc/e-smith/templates-custom/etc/lilo.conf

ls -lah /dev/cdrom
e.g.
lrwxrwxrwx    1 root     root            3 Feb 25 08:22 /dev/cdrom -> hdd

pico 80append
replace h?? what what ever `ls -lah /dev/cdrom` points to

append=" h??=ide-scsi"

e.g.
append=" hdd=ide-scsi"

Rebuild lilo.conf
/sbin/e-smith/expand-template /etc/lilo.conf

Reinstall lilo
lilo

Link to device
Now you can put this on the end of /etc/rc.local or /etc/rc.serial
/etc/rc.serial will execute at the begining before /etc/rc.d/init.d/*
If /etc/rc.serial does not exist, create and chmod 755 /etc/rc.serial
/etc/rc.local will execute at the end of /etc/rc.d/init.d/*

ln -sf /dev/scd0 /dev/cdrom

Install mkisofs,cdrecord...
I've rebuild the ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/SRPMS/cdrtools-1.10-4.src.rpm on SME 5 and seems to work properly.

http://www.geocities.com/lapsch/rpms/e-smith-cdrtools/mkisofs-1.10-4.i386.rpm
http://www.geocities.com/lapsch/rpms/e-smith-cdrtools/cdrecord-1.10-4.i386.rpm
http://www.geocities.com/lapsch/rpms/e-smith-cdrtools/cdda2wav-1.10-4.i386.rpm
http://www.geocities.com/lapsch/rpms/e-smith-cdrtools/cdrecord-devel-1.10-4.i386.rpm

rpm -Uvh cdda2wav-1.10-4.i386.rpm cdrecord-devel-1.10-4.i386.rpm cdrecord-1.10-4.i386.rpm mkisofs-1.10-4.i386.rpm

Restart
shutdown -r now

Verify
ls -lah /dev/cdrom
lrwxrwxrwx    1 root     root            9 Feb 25 10:02 /dev/cdrom -> /dev/scd0

cdrecord -scanbus
sample output
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 2.1.39
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'YAMAHA  ' 'CRW2100E        ' '1.0M' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
[root@serverl /root]#

Make a CD to be sure it works correctly.

Enjoy!

Hosted by www.Geocities.ws

1