Mounting SCSI Emulated CD-RW
Dear helpers,
I compiled the 2.4.18 kernel using scsi emulation, scsi
generic support and scsi CDROM support, iso9660 etc. I boot from the floppy
and assume that , there is no need to pass any commands at the linux prompt
at the boot time.
=================================================================================
I have all the scsi device types like /dev/scd*, sr*, sg*.
# ls -l sc
scd0 scd10 scd12 scd14 scd16 scd3 scd5 scd7 scd9
scd1 scd11 scd13 scd15 scd2 scd4 scd6 scd8 scsi
:/dev# ls -l sr
sr0 sr10 sr12 sr14 sr16 sr3 sr5 sr7 sr9
sr1 sr11 sr13 sr15 sr2 sr4 sr6 sr8
:/dev# ls -l sg
sg0 sg10 sg12 sg14 sg16 sg3 sg5 sg7 sg9
sg1 sg11 sg13 sg15 sg2 sg4 sg6 sg8
==================================================================================
I have created a link to /dev/scd0 using cdrom
# ls -l cdrom
lrwxrwxrwx 1 root root 4 Oct 1 17:49 cdrom -> scd0
================================================================================
The content of /etc/modules and lsmod
# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
af_packet
ppp
slip
ppp_deflate
tulip
minix
emu10k1
sr_mod
sg
===============================================================================
/dev# lsmod
Module Size Used by Tainted: P
sg 24484 0
sr_mod 11416 0
cdrom 28864 0 [sr_mod]
emu10k1 54112 1
soundcore 3844 4 [emu10k1]
ac97_codec 9632 0 [emu10k1]
minix 18240 0 (unused)
tulip 38048 1
ppp_deflate 39040 0 (unused)
ppp_generic 17448 0 [ppp_deflate]
slhc 4384 0 [ppp_generic]
slip 5952 0 (unused)
==============================================================================
$ cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J�rg
Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'Lite-On ' 'LTN483S 48x Max ' 'PD02' Removable CD-ROM
0,1,0 1) 'LG ' 'CD-RW CED-8080B ' '1.04' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
================================================================================
The partial content of dmesg
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 2
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
hda: MAXTOR 6L040J2, ATA DISK drive
hdb: WDC WD200BB-75AUA1, ATA DISK drive
hdc: Lite-On LTN483S 48x Max, ATAPI CD/DVD-ROM drive
hdd: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=4866/255/63, UDMA(100)
hdb: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=2434/255/63, UDMA(100)
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Lite-On Model: LTN483S 48x Max Rev: PD02
Type: CD-ROM ANSI SCSI revision: 02
Vendor: LG Model: CD-RW CED-8080B Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
I was able to read the contents of cdrom using the command .
mount -t iso9660 /dev/cdrom /cdrom
By reading the documentation, I came to know that /dev/sg0 can
be used for cd-writers , but the /dev/sg0 is char device and I donot know
how to mount it. Can any body help me with mountiing a cd-read write device.
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Reply to: