* ide cd writer problem with sg
@ 2002-07-28 22:55 Michel Briand
0 siblings, 0 replies; 3+ messages in thread
From: Michel Briand @ 2002-07-28 22:55 UTC (permalink / raw)
To: linux-scsi
hello,
i use an IDE cdwrite with sg, and when thoses modules are loaded,
cdrecord -scanbus works :
sg 24036 0 (autoclean)
ide-scsi 7648 0 (autoclean)
scsi_mod 49804 2 (autoclean) [sg ide-scsi]
which produces :
Cdrecord 1.11a19 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-16102B ' 'OS0E' 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) *
Nice.
But to mount the cdrom i experience some problems. Note that i have :
- kernel 2.4.18
- cd support compiled as modules : scsi_mod, ide-scsi, sg, sr_mod,
ide-cd, cdrom (all modules)
- only one cdwriter, no cdrom : /dev/hdc and no /dev/hdd
i.e. with find /proc/ide -type d -ls :
4307 0 dr-xr-xr-x 4 root root 0 jui 29 00:51 /proc/ide/
4327 0 dr-xr-xr-x 3 root root 0 jui 29 00:51
/proc/ide/ide1
4332 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
/proc/ide/ide1/hdc
4308 0 dr-xr-xr-x 4 root root 0 jui 29 00:51
/proc/ide/ide0
4320 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
/proc/ide/ide0/hdb
4313 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
/proc/ide/ide0/hda
and when i issue this command, i get an error :
bubus:/media # modprobe sr_mod
bubus:/media # mount /dev/cdrom /media/cdrom -t iso9660
mount : Périphérique de bloc/dev/cdrom est protégé en écriture. Montage
en lecture seule.
mount: N'est pas un répertoire
bubus:/media # lsmod
Module Size Used by Tainted: P
nls_iso8859-1 2880 0 (autoclean)
sr_mod 11800 0
cdrom 28736 0 [sr_mod]
vfat 9436 0 (autoclean)
fat 29400 0 (autoclean) [vfat]
....
N'est pas un répertoire = Not a directory, in english
??? This trouble my knowledge of what's happening inside ;-(
I would like to understand ! Please help !
Thanks
Michel
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ide cd writer problem with sg
[not found] <3D447677.9070309@localhost.>
@ 2002-07-29 2:05 ` Douglas Gilbert
2002-08-05 11:53 ` Michel Briand
0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2002-07-29 2:05 UTC (permalink / raw)
To: Michel Briand; +Cc: linux-scsi
Michel Briand wrote:
>
> hello,
> i use an IDE cdwrite with sg, and when thoses modules are loaded,
> cdrecord -scanbus works :
> sg 24036 0 (autoclean)
> ide-scsi 7648 0 (autoclean)
> scsi_mod 49804 2 (autoclean) [sg ide-scsi]
> which produces :
> Cdrecord 1.11a19 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling
> Linux sg driver version: 3.1.22
> Using libscg version 'schily-0.6'
> scsibus0:
> 0,0,0 0) 'LITE-ON ' 'LTR-16102B ' 'OS0E' 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) *
> Nice.
> But to mount the cdrom i experience some problems. Note that i have :
> - kernel 2.4.18
> - cd support compiled as modules : scsi_mod, ide-scsi, sg, sr_mod,
> ide-cd, cdrom (all modules)
> - only one cdwriter, no cdrom : /dev/hdc and no /dev/hdd
>
> i.e. with find /proc/ide -type d -ls :
> 4307 0 dr-xr-xr-x 4 root root 0 jui 29 00:51 /proc/ide/
> 4327 0 dr-xr-xr-x 3 root root 0 jui 29 00:51
> /proc/ide/ide1
> 4332 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
> /proc/ide/ide1/hdc
> 4308 0 dr-xr-xr-x 4 root root 0 jui 29 00:51
> /proc/ide/ide0
> 4320 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
> /proc/ide/ide0/hdb
> 4313 0 dr-xr-xr-x 2 root root 0 jui 29 00:51
> /proc/ide/ide0/hda
>
> and when i issue this command, i get an error :
> bubus:/media # modprobe sr_mod
> bubus:/media # mount /dev/cdrom /media/cdrom -t iso9660
> mount : Périphérique de bloc/dev/cdrom est protégé en écriture. Montage
> en lecture seule.
> mount: N'est pas un répertoire
Michel,
It seems to be saying that /media/cdrom is not a directory.
Perhaps you could show us "ls -l /media".
Also /dev/cdrom is probably a symlink to /dev/scd0, could
you confirm that?
cdrecord and the sg driver are finding the ATAPI writer ok
(as indicated by "cdrecord -scanbus") so I don't think
there is a problem with your cd writer or sg.
<snip/>
Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ide cd writer problem with sg
2002-07-29 2:05 ` ide cd writer problem with sg Douglas Gilbert
@ 2002-08-05 11:53 ` Michel Briand
0 siblings, 0 replies; 3+ messages in thread
From: Michel Briand @ 2002-08-05 11:53 UTC (permalink / raw)
To: Douglas Gilbert, linux-scsi
I run in a new test.
Excuses me, and thank you for your patience.
I've theses modules loaded :
sr_mod 11800 0
sg 24036 0 (autoclean)
sd_mod 9980 0 (autoclean) (unused)
isofs 24864 0 (autoclean)
inflate_fs 17984 0 (autoclean) [isofs]
vfat 9436 0 (autoclean)
fat 29400 0 (autoclean) [vfat]
cdrom 28736 0 [sr_mod]
ide-scsi 7648 0
scsi_mod 49804 4 (autoclean) [sr_mod sg sd_mod ide-scsi]
via82cxxx_audio 18432 1 (autoclean)
ac97_codec 9632 0 (autoclean) [via82cxxx_audio]
uart401 6144 0 (autoclean) [via82cxxx_audio]
sound 53580 0 (autoclean) [via82cxxx_audio uart401]
soundcore 3364 5 (autoclean) [via82cxxx_audio sound]
n_hdlc 6112 1 (autoclean)
ppp_synctty 4832 1 (autoclean)
NVdriver 821184 14 (autoclean)
joydev 6816 0 (unused)
input 3168 0 [joydev]
ipt_TCPMSS 2336 1 (autoclean)
ipt_TOS 1024 22 (autoclean)
ipt_MASQUERADE 1216 1 (autoclean)
ipt_state 608 77 (autoclean)
ipt_LOG 3136 127 (autoclean)
ip_nat_ftp 2944 0 (unused)
ip_conntrack_ftp 3200 0 (unused)
ppp_generic 15848 3 (autoclean) [ppp_synctty]
slhc 4624 0 (autoclean) [ppp_generic]
ne2k-pci 5056 1
8390 5952 0 [ne2k-pci]
ipt_REJECT 2880 3 (autoclean)
iptable_mangle 2144 1 (autoclean)
iptable_nat 12852 2 (autoclean) [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 13036 3 (autoclean) [ipt_MASQUERADE ipt_state
ip_nat_ftp ip_conntrack_ftp iptable_nat]
iptable_filter 1760 1 (autoclean)
ip_tables 10560 11 [ipt_TCPMSS ipt_TOS ipt_MASQUERADE
ipt_state ipt_LOG ipt_REJECT iptable_mangle iptable_nat iptable_filter]
usb-uhci 21508 0 (unused)
usbcore 48992 1 [usb-uhci]
And I run the command :
bubus:/media # mount /dev/scd0 /media/cdrom -t iso9660
mount : Périphérique de bloc/dev/scd0 est protégé en écriture. Montage
en lecture seule.
mount: N'est pas un répertoire
And this is the output of tail -f /var/log/messages :
Aug 5 13:50:55 bubus kernel: SCSI cdrom error : host 0 channel 0 id 0
lun 0 return code = 28000000
Aug 5 13:50:55 bubus kernel: Current sd0b:00: sns = 70 4
Aug 5 13:50:55 bubus kernel: ASC= 8 ASCQ= 3
Aug 5 13:50:55 bubus kernel: Raw sense data:0x70 0x00 0x04 0x00 0x00
0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x08 0x03 0x00 0x00 0x00 0x00
Aug 5 13:50:55 bubus kernel: I/O error: dev 0b:00, sector 80
Aug 5 13:50:55 bubus kernel: ISOFS: unable to read i-node block
Note that before I do a modprobe sr_mod I received another error
message, and when I loaded it, I see in logs :
Aug 5 13:38:34 bubus kernel: Attached scsi CD-ROM sr0 at scsi0, channel
0, id 0, lun 0
Aug 5 13:38:34 bubus kernel: sr0: scsi3-mmc drive: 40x/40x writer cd/rw
xa/form2 cdda tray
Aug 5 13:38:34 bubus kernel: Uniform CD-ROM driver Revision: 3.12
Aug 5 13:38:42 bubus kernel: VFS: Disk change detected on device sr(11,0)
What do you think of this mess ?
Thank you for your help, again ;-)
Michel
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-05 11:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3D447677.9070309@localhost.>
2002-07-29 2:05 ` ide cd writer problem with sg Douglas Gilbert
2002-08-05 11:53 ` Michel Briand
2002-07-28 22:55 Michel Briand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox