All of lore.kernel.org
 help / color / mirror / Atom feed
* problem mounting CD writer in 2.4.20
@ 2003-10-10  4:32 Prashanth A Pandit
  2003-10-12 19:01 ` Edward Macfarlane Smith
       [not found] ` <3F869565.A5F8C80@toughguy.net>
  0 siblings, 2 replies; 3+ messages in thread
From: Prashanth A Pandit @ 2003-10-10  4:32 UTC (permalink / raw)
  To: linux-kernel

Hi,

Am facing a problem with my sony cd writer. Unable to mount. It is connected
to a Cyrix processor based PC 104 board, running linux kernel 2.4.20. I have
compiled scsi generic driver and related stuffs to kernel. Following is the
details about my system:
----------------------------------------------------------------------------
----
Configuration in /etc/lilo.conf
----------------------------------------------------------------------------
----
image=/boot/bzImage-2.4.20
label=linux-2.4.20
read-only
root=/dev/hda1
append="hdb=ide-scsi"
----------------------------------------------------------------------------
----
Extract of 'dmesg' after system boot
----------------------------------------------------------------------------
----
hda: QUANTUM FIREBALL SE2.1A, ATA DISK drive
hdb: SONY CD-RW CRX225E, ATAPI CD/DVD-ROM drive
hdc: Hitachi XXM2.3.0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 4124736 sectors (2112 MB) w/80KiB Cache, CHS=1023/64/63
hdc: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
Partition check:
hda: hda1 hda2 hda3
hdc: hdc1
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SONY Model: CD-RW CRX225E Rev: QYB2
Type: CD-ROM ANSI SCSI revision: 02
EXT2-fs warning (device ide0(3,3)): ext2_read_super: mounting ext3
filesystem as ext2
----------------------------------------------------------------------------
----
Output of /proc/devices after system boot
----------------------------------------------------------------------------
----
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
6 lp
7 vcs
10 misc
21 sg
29 fb
108 ppp
128 ptm
136 pts
162 raw
Block devices:
1 ramdisk
2 fd
3 ide0
7 loop
22 ide1
31 mtdblock
44 ftl
93 nftl
----------------------------------------------------------------------------
----
Listing of device files in /dev/ directory
----------------------------------------------------------------------------
----
brw-rw---- 1 root disk 3, 1 Sep 26 15:38 /dev/hda1
brw-rw---- 1 root disk 3, 2 Sep 26 15:38 /dev/hda2
brw-rw---- 1 root disk 3, 3 Sep 26 15:38 /dev/hda3
brw-rw---- 1 root disk 3, 65 Sep 26 15:38 /dev/hdb1
brw-rw---- 1 root disk 3, 66 Sep 26 15:38 /dev/hdb2
brw-rw---- 1 root disk 22, 1 Sep 26 15:38 /dev/hdc1
brw-rw---- 1 root disk 22, 2 Sep 26 15:38 /dev/hdc2
brw-rw---- 1 root disk 22, 65 Sep 26 15:38 /dev/hdd1
brw-rw---- 1 root disk 22, 66 Sep 26 15:38 /dev/hdd2
crw-rw---- 1 root disk 21, 0 Sep 26 15:40 /dev/sg0
crw-rw---- 1 root disk 21, 1 Sep 26 15:40 /dev/sg1
lrwxrwxrwx 1 root root 3 Sep 16 17:58 /dev/sga -> sg0
lrwxrwxrwx 1 root root 3 Sep 16 17:58 /dev/sgb -> sg1
brw-rw---- 1 root disk 11, 0 Oct 10 14:45 /dev/scd0
brw-rw---- 1 root disk 11, 1 Oct 10 14:45 /dev/scd1
----------------------------------------------------------------------------
----
Output of cdrecord -scanbus
----------------------------------------------------------------------------
----
Linux sg driver version: 3.1.24
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'SONY ' 'CD-RW CRX225E ' 'QYB2' 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) *
----------------------------------------------------------------------------
----
Output of mount /dev/scd0 /mnt/cdrom -text2
----------------------------------------------------------------------------
----
mount: /dev/scd0 is not a valid block device

I have been trying to write to CD as well as read from it through my C
program. Please help how do I do it?

Thanks in advance.
- prashanth pandith


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem mounting CD writer in 2.4.20
  2003-10-10  4:32 problem mounting CD writer in 2.4.20 Prashanth A Pandit
@ 2003-10-12 19:01 ` Edward Macfarlane Smith
       [not found] ` <3F869565.A5F8C80@toughguy.net>
  1 sibling, 0 replies; 3+ messages in thread
From: Edward Macfarlane Smith @ 2003-10-12 19:01 UTC (permalink / raw)
  To: Prashanth A Pandit, linux-kernel

Have you got SCSI cdrom selected as an option? On my machine the cd writer is 
/dev/sr0 (SCSI CDROM gives a module sr_mod).
In dmesg I get :
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
Do you see anything like this?
Regards,
Edward

On Friday 10 October 2003 05:32, Prashanth A Pandit wrote:
> Hi,
>
> Am facing a problem with my sony cd writer. Unable to mount. It is
> connected to a Cyrix processor based PC 104 board, running linux kernel
> 2.4.20. I have compiled scsi generic driver and related stuffs to kernel.
> Following is the details about my system:
> ---------------------------------------------------------------------------
>- ----
> Configuration in /etc/lilo.conf
> ---------------------------------------------------------------------------
>- ----
> image=/boot/bzImage-2.4.20
> label=linux-2.4.20
> read-only
> root=/dev/hda1
> append="hdb=ide-scsi"
> ---------------------------------------------------------------------------
>- ----
> Extract of 'dmesg' after system boot
> ---------------------------------------------------------------------------
>- ----
> hda: QUANTUM FIREBALL SE2.1A, ATA DISK drive
> hdb: SONY CD-RW CRX225E, ATAPI CD/DVD-ROM drive
> hdc: Hitachi XXM2.3.0, ATA DISK drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> hda: 4124736 sectors (2112 MB) w/80KiB Cache, CHS=1023/64/63
> hdc: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
> Partition check:
> hda: hda1 hda2 hda3
> hdc: hdc1
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> loop: loaded (max 8 devices)
> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: SONY Model: CD-RW CRX225E Rev: QYB2
> Type: CD-ROM ANSI SCSI revision: 02
> EXT2-fs warning (device ide0(3,3)): ext2_read_super: mounting ext3
> filesystem as ext2
> ---------------------------------------------------------------------------
>- ----
> Output of /proc/devices after system boot
> ---------------------------------------------------------------------------
>- ----
> Character devices:
> 1 mem
> 2 pty
> 3 ttyp
> 4 ttyS
> 5 cua
> 6 lp
> 7 vcs
> 10 misc
> 21 sg
> 29 fb
> 108 ppp
> 128 ptm
> 136 pts
> 162 raw
> Block devices:
> 1 ramdisk
> 2 fd
> 3 ide0
> 7 loop
> 22 ide1
> 31 mtdblock
> 44 ftl
> 93 nftl
> ---------------------------------------------------------------------------
>- ----
> Listing of device files in /dev/ directory
> ---------------------------------------------------------------------------
>- ----
> brw-rw---- 1 root disk 3, 1 Sep 26 15:38 /dev/hda1
> brw-rw---- 1 root disk 3, 2 Sep 26 15:38 /dev/hda2
> brw-rw---- 1 root disk 3, 3 Sep 26 15:38 /dev/hda3
> brw-rw---- 1 root disk 3, 65 Sep 26 15:38 /dev/hdb1
> brw-rw---- 1 root disk 3, 66 Sep 26 15:38 /dev/hdb2
> brw-rw---- 1 root disk 22, 1 Sep 26 15:38 /dev/hdc1
> brw-rw---- 1 root disk 22, 2 Sep 26 15:38 /dev/hdc2
> brw-rw---- 1 root disk 22, 65 Sep 26 15:38 /dev/hdd1
> brw-rw---- 1 root disk 22, 66 Sep 26 15:38 /dev/hdd2
> crw-rw---- 1 root disk 21, 0 Sep 26 15:40 /dev/sg0
> crw-rw---- 1 root disk 21, 1 Sep 26 15:40 /dev/sg1
> lrwxrwxrwx 1 root root 3 Sep 16 17:58 /dev/sga -> sg0
> lrwxrwxrwx 1 root root 3 Sep 16 17:58 /dev/sgb -> sg1
> brw-rw---- 1 root disk 11, 0 Oct 10 14:45 /dev/scd0
> brw-rw---- 1 root disk 11, 1 Oct 10 14:45 /dev/scd1
> ---------------------------------------------------------------------------
>- ----
> Output of cdrecord -scanbus
> ---------------------------------------------------------------------------
>- ----
> Linux sg driver version: 3.1.24
> Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
> Using libscg version 'schily-0.5'
> scsibus0:
> 0,0,0 0) 'SONY ' 'CD-RW CRX225E ' 'QYB2' 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) *
> ---------------------------------------------------------------------------
>- ----
> Output of mount /dev/scd0 /mnt/cdrom -text2
> ---------------------------------------------------------------------------
>- ----
> mount: /dev/scd0 is not a valid block device
>
> I have been trying to write to CD as well as read from it through my C
> program. Please help how do I do it?
>
> Thanks in advance.
> - prashanth pandith
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem mounting CD writer in 2.4.20
       [not found] ` <3F869565.A5F8C80@toughguy.net>
@ 2003-10-12 23:22   ` Prashanth A Pandit
  0 siblings, 0 replies; 3+ messages in thread
From: Prashanth A Pandit @ 2003-10-12 23:22 UTC (permalink / raw)
  To: linux-kernel

yes, i did created an image of ext2 filesystem using following commands:

dd if=/dev/zero of=cd.img bs=1k count=4k
mke2fs cd.img
mount -o loop cd.img /mnt/tmp
cp ./* /mnt/tmp
umount /mnt/tmp

then i used 'cdrecord' as follows:
cdrecord dev=0,0,0 -data -multi cd.img

to use the CD on some other OS, i must use ISO9660 fs right? in which case,
i will go with 'mkisofs' instaed of 'mke2fs'. please tell me where am i
going wrong. this is first time am using CD writer.

thanks & regards,
- prashanth

----- Original Message -----
From: Raj <obelix123@toughguy.net>
To: Prashanth A Pandit <prashanth@prodigylabs.com>
Sent: Friday, October 10, 2003 4:47 PM
Subject: Re: problem mounting CD writer in 2.4.20


> > Output of mount /dev/scd0 /mnt/cdrom -text2
>
> Are u sure u have a CD which has an EXT2 filesystem on it ???? ;-)
> Or is it iso9660 which is the default CD format ?
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-13  4:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10  4:32 problem mounting CD writer in 2.4.20 Prashanth A Pandit
2003-10-12 19:01 ` Edward Macfarlane Smith
     [not found] ` <3F869565.A5F8C80@toughguy.net>
2003-10-12 23:22   ` Prashanth A Pandit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.