Re: [scsi cdrw, how do I set this up?] here ya go !


Subject: Re: [scsi cdrw, how do I set this up?] here ya go !
From: cdowns (cdowns@skillsoft.com)
Date: Thu Nov 16 2000 - 20:15:23 MST


dsbelile wrote:

> ------------------------------------------------------------------------
>
> Subject: Re: scsi cdrw, how do I set this up?
> Date: 17 Nov 2000 04:11:14 EST
> From: Robert M <mayro@earthlink.net>
> Reply-To: yellowdog-general@lists.yellowdoglinux.com
> To: yellowdog-general@lists.yellowdoglinux.com
>
> yes dmesg says it should be on /dev/sr0 but it doesnt exist. What
> major/minor numbers should I use to create this? this is what cdrecord
> -scanbus gives me:
>
> [root@localhost /root]# cdrecord -scanbus
> Cdrecord 1.8 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg
> Schilling
> cdrecord: No such file or directory. Cannot open SCSI driver.
> cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are
> root.
>
> any sugestions?
> thanks, robert
>
> On Wed, 15 Nov 2000 17:54:12 -0700, Bryan Stillwell said:
>
> >
> > Run dmesg to figure out what device it should be, probably /dev/sr0
> > which may not exist... Also try running `cdrecord -scanbus`.
> >
> > Bryan
> >

OK are you ready to BURN !? heheh
LESS THEN 10 STEP PROGRAM........
#NOTE make sure you have ide-scsi compiled into you kernel as a MODULE or
this does not work.......
    the quick and easy way to tell if the module is present is type: insmod
ide-scsi and then type lsmod like so:
example of lsmod:
Module Size Used by
ide-scsi 7336 0 <--------------- this is what you want
to see.
rtl8139 12388 1 (autoclean)
nls_iso8859-1 2240 1 (autoclean)
nls_cp437 3748 1 (autoclean)
vfat 9500 1 (autoclean)
fat 31168 1 (autoclean) [vfat]
opl3 11496 0
sb 34132 0
uart401 6256 0 [sb]
sound 58264 0 [opl3 sb uart401]
soundlow 420 0 [sound]
soundcore 2692 6 [sb sound]
aic7xxx 138488 4
[root@elf rc.d]#

as you can tell i run a modular kernel for several reasons and this being one
of them.

1> install RPMS ( the easy way booo, but works fine )
    a) [root@elf rc.d]# rpm -ivh cdrecord-1.8-1.i386.rpm
    b) [root@elf rc.d]# rpm -ivh mkisofs-1.12b5-3.i386.rpm
#NOTE get the PPC versions.

2> vi /etc/rc.d/rc.local

add line at end like so:

------ snip for brevity -----------
fi
## call ide-scsi for cdrecording
/sbin/insmod ide-scsi
echo "Loaded ide-scsi module for Sony 8x4x32 burner"
sleep 2
[root@elf rc.d]#

3> vi /etc/conf.modules

[root@elf rc.d]# cat /etc/conf.modules
alias scsi_hostadapter aic7xxx
alias eth0 rtl8139
alias parport_lowlevel parport_pc
alias sound-slot-0 sb
options sound dmabuf=1
alias midi opl3
options opl3 io=0x388
options sb io=0x220 irq=7 dma=0 dma16=5 mpu_io=0x300
## cdrecord setup ----------------------------------
alias scd0 srmod
alias scsi_hostadpater ide-scsi
options ide-cd ignore=hdc
## -------------------------------------------------
[root@elf rc.d]#

4>vi /etc/lilo.conf and add the cdrecord setup append.

[root@elf rc.d]# cat /etc/lilo.conf
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=linux

image=/boot/vmlinuz-2.2.14-5.0
        label=linux
        initrd=/boot/initrd-2.2.14-5.0.img
        read-only
        root=/dev/sdb6
## ------- cdrecord setup append --------
        append="hdc=ide-scsi"

other=/dev/sda1
        label=dos
[root@elf rc.d]#

5> run: /sbin/lilo

6> reboot or init 1

7> test dmesg for output like so:

scsi1 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 2 hosts.
  Vendor: SONY Model: CD-RW CRX140E Rev: 1.0h
  Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0

8> check /etc/fstab and edit accordingly:

[root@elf rc.d]# cat /etc/fstab
/dev/sdb6 / ext2 defaults 1 1
/dev/sdb1 /boot ext2 defaults 1 2
/dev/sda1 /mnt/dos vfat defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,ro 0
0 <---------- this is my burner, you can call your whatever you want and
correct you symlinks.
/dev/fd0 /mnt/floppy ext2 noauto,rw 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/sdb5 swap swap defaults 0 0
[root@elf rc.d]#

9> burnsomething like:
[root@elf rc.d]# cdrecord -v speed=4 dev=1,0,0 -data LinuxPPC_2000_Full.image

in this case i just burned LinuxPPC_2000_Full.image so i have a bootable HFS
system disk for a PowerPC. works great by the way ! :)

you might need to tweak some things but this is how it is done, so get going
and burn some goodies ! :)

good luck and take care....

Christopher M Downs
-----------------
Network Administrator
www.skillsoft.com
cdowns@skillsoft.com
-----------------



This archive was generated by hypermail 2a24 : Thu Nov 16 2000 - 20:11:56 MST