PDA

View Full Version : CDRW doesn´t work anymore



KeTZer
04-26-2004, 10:22 PM
I´m working with a Knoppix HD-Install that works fine so far. In the beginning both drives worked fine, but the after a kernel update to 2.4.24 the automounter screwed up. I turned out because of the newly installed grub. I didn´t know that I had to pass hdc=ide-scsi and hdd=ide-scsi to the kernel. Now both drives are configured exactly the same. They are attached to scd0 and scd1. But the problem ist, that only one drive can be mounted. The other one just blinks a few times then a few times again and then again and then I get this error-msg:

root@Blackheart:~# mount /dev/scd1 /mnt/cdrom1/
mount: Einhängepunkt /mnt/cdrom1/ existiert nicht
(or in english: mount: Mounting point /mnt/cdrom1/ doesn´t exist)


Now some further stuff you might want to read:

root@Blackheart:~# dmesg|grep sr
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: 32x/32x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 18x/40x writer cd/rw xa/form2 cdda tray

root@Blackheart:~# dmesg|grep sc
ide-cd: passing drive hdd to ide-scsi emulation.
hdc: attached ide-scsi driver.
hdd: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
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: 32x/32x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 18x/40x writer cd/rw xa/form2 cdda tray
...

root@Blackheart:~# dmesg|grep CD
Type: CD-ROM ANSI SCSI revision: 02
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
Uniform CD-ROM driver Revision: 3.12


The contents of my fstab:
proc /proc proc defaults 0 0
/dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0
/dev/cdrom /mnt/auto/cdrom auto ro,user,exec,noauto 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto ro,user,exec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/hda1 none swap defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /mnt/hda3 ext3 users,exec 0 0
/dev/hda4 /mnt/hda4 ext3 users,exec 0 0
/dev/hdb5 /mnt/hdb5 ntfs users,exec,ro,umask=000 0 0

(/dev/cdrom and /dev/cdrom1 are symbolic links to /dev/scd0 and /dev/scd1)


Ah, and K3B just tells me of an I/O error when I try burning something...

So, I hope that someone can halp me with that prob...

mzilikazi
04-27-2004, 12:35 AM
root@Blackheart:~# mount /dev/scd1 /mnt/cdrom1/
mount: Einhängepunkt /mnt/cdrom1/ existiert nicht
(or in english: mount: Mounting point /mnt/cdrom1/ doesn´t exist)

That's an easy one.

mkdir /mnt/cdrom1


Ah, and K3B just tells me of an I/O error when I try burning something...

So, I hope that someone can halp me with that prob...

Beats me. Never really used k3b before. By the time you get it configured I've already burned 2 or 3 cd's. :) Perhaps just a configuration issue.

KeTZer
04-27-2004, 04:47 AM
That's an easy one.

mkdir /mnt/cdrom1

Don´t think so; in mnt are symbolic links like cdrom1->/mnt/auto/cdrom1
and I think that is right as it is.

KeTZer
04-29-2004, 12:17 PM
Is there really noone who can tell me what´s wrong?

OErjan
04-29-2004, 06:56 PM
according to this, you have it on sr1 and sr2.

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: 32x/32x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 18x/40x writer cd/rw xa/form2 cdda tray

try first to make the mountpoint (as root)

mkidr /mnt/cdrom3
then mount it as below (still as root)

mount -t iso9660 /dev/sr1 /mnt/cdrom3
if this works you edit the links /dev/cdrom and cdrom1 so that they point to sr0 and sr1 if i am not all wrong they should not point to scdX .
hope it helps.
OE

KeTZer
04-30-2004, 07:28 PM
If I do it the way you described the CDRW just flashes a little and then mount says that there is no disc in the drive (Tried it with different ones...).


Here is something from my syslog that might mean something:

Apr 30 19:21:12 Blackheart kernel: SCSI subsystem driver Revision: 1.00
Apr 30 19:21:12 Blackheart kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Apr 30 19:21:12 Blackheart kernel: Vendor: TOSHIBA Model: DVD-ROM SD-M1212 Rev: 1R14
Apr 30 19:21:12 Blackheart kernel: Type: CD-ROM ANSI SCSI revision: 02
Apr 30 19:21:12 Blackheart kernel: Vendor: LITE-ON Model: LTR-16102B Rev: OS0K
Apr 30 19:21:12 Blackheart kernel: Type: CD-ROM ANSI SCSI revision: 02
Apr 30 19:21:12 Blackheart kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Apr 30 19:21:12 Blackheart kernel: Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
Apr 30 19:21:12 Blackheart kernel: sr0: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
Apr 30 19:21:12 Blackheart kernel: Uniform CD-ROM driver Revision: 3.12
Apr 30 19:21:12 Blackheart kernel: sr1: scsi3-mmc drive: 22x/40x writer cd/rw xa/form2 cdda tray
Apr 30 19:21:12 Blackheart kernel: Initializing Cryptographic API
Apr 30 19:21:12 Blackheart kernel: NET4: Linux TCP/IP 1.0 for NET4.0

What made me courious is that this "Uniform CDR Driver" is only loaded after the first drive and not after the second one (wich is the problematic one).
Don´t know if that has something to say....

OErjan
04-30-2004, 09:10 PM
weird, it SHOULD work. hmmmm.
what does lsmod say?
and likewise output from
hdparm /dev/hda
hdparm /dev/hdb
hdparm /dev/hdc
hdparm /dev/hdd
and try what i gave above after booting with cheatcode nodma.

keep at it. sooner or later some fix will emerge.

KeTZer
05-01-2004, 11:03 AM
root@Blackheart:~# lsmod
Module Size Used by Tainted: P
hisax 548164 3
isdn 127392 4 [hisax]
slhc 4560 1 [isdn]
appletalk 23140 1 (autoclean)
ipx 19556 1 (autoclean)
snd-mixer-oss 11256 1 (autoclean)
snd-emu10k1 61316 1 (autoclean)
snd-pcm 54048 0 (autoclean) [snd-emu10k1]
snd-timer 13604 0 (autoclean) [snd-pcm]
snd-hwdep 4736 0 (autoclean) [snd-emu10k1]
snd-page-alloc 5620 0 (autoclean) [snd-emu10k1 snd-pcm]
snd-util-mem 1088 0 (autoclean) [snd-emu10k1]
snd-ac97-codec 41532 0 (autoclean) [snd-emu10k1]
snd-rawmidi 12480 0 (autoclean) [snd-emu10k1]
snd-seq-device 3700 0 (autoclean) [snd-emu10k1 snd-rawmidi]
snd 27716 0 (autoclean) [snd-mixer-oss snd-emu10k1 snd-pcm snd-timer snd-hwdep snd-util-mem snd-ac97-codec snd-rawmidi snd-seq-device]
nvidia 1967328 6 (autoclean)
parport_pc 24840 1 (autoclean)
lp 7492 0 (autoclean)
parport 22496 1 (autoclean) [parport_pc lp]
pcmcia_core 39712 0
ipt_TOS 1144 34 (autoclean)
ipt_MASQUERADE 1496 1 (autoclean)
ipt_LOG 3416 39 (autoclean)
ipt_TCPMSS 2424 3 (autoclean)
ipt_tos 568 0 (unused)
iptable_mangle 2228 1
ip_nat_ftp 3120 0 (unused)
iptable_nat 17112 2 [ipt_MASQUERADE ip_nat_ftp]
ipt_tcpmss 1048 0 (unused)
iptable_filter 1736 1
ipt_multiport 728 2
ip_conntrack_ftp 3888 1 [ip_nat_ftp]
ipt_state 664 12
ip_conntrack 20392 3 [ipt_MASQUERADE ip_nat_ftp iptable_nat ip_conntrack_ftp ipt_state]
ipt_limit 1080 42
ip_tables 11608 14 [ipt_TOS ipt_MASQUERADE ipt_LOG ipt_TCPMSS ipt_tos iptable_mangle iptable_nat ipt_tcpmss iptable_filter ipt_multiport ipt_state ipt_limit]
scanner 10364 0 (unused)
ext3 64164 2
jbd 46388 2 [ext3]
autofs4 8756 1
af_packet 13448 0 (unused)
nls_iso8859-1 2844 1
ntfs 51104 1
msdos 4652 0 (unused)
agpgart 35768 3
sis900 12012 1
crc32 2816 0 [sis900]
emu10k1-gp 1224 0 (unused)
gameport 1404 0 [emu10k1-gp]
tuner 9440 1 (autoclean)
tvaudio 12444 0 (autoclean) (unused)
bttv 96352 0 (unused)
i2c-algo-bit 6888 1 [bttv]
i2c-core 12100 0 [tuner tvaudio bttv i2c-algo-bit]
soundcore 3428 3 [snd bttv]
videodev 5600 2 [bttv]
serial 52004 0
keybdev 1696 0 (unused)
hid 21380 0 (unused)
mousedev 3832 1
input 3168 0 [keybdev hid mousedev]
usb-ohci 18184 0 (unused)
usbcore 57824 1 [scanner hid usb-ohci]
apm 9768 1
rtc 6972 0




root@Blackheart:~# hdparm /dev/hda

/dev/hda:
multcount = 32 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 1867/255/63, sectors = 30008475, start = 0

root@Blackheart:~# hdparm /dev/hdb

/dev/hdb:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 1027/255/63, sectors = 16514064, start = 0

root@Blackheart:~# hdparm /dev/hdc

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
BLKRAGET failed: Invalid argument
HDIO_GETGEO failed: Invalid argument

root@Blackheart:~# hdparm /dev/hdd

/dev/hdd:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
BLKRAGET failed: Invalid argument
HDIO_GETGEO failed: Invalid argument



hda and hdb are working hdd´s, hdc is a workind dvd-drive and hdd is the CDRW

OErjan
05-01-2004, 07:45 PM
do you have the line append = "hdd=ide-scsi" in your lilo .conf (like this):

# LILO configuration file
# Start LILO global section
append = "hdd=ide-scsi"
boot = /dev/hda
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console

if not add and reboot. then give me
dmesg|grep * where * is replaced with sr, sc, CD, ATAPI, rw and finly ide-scsi.
I refuse to give up, there is some minor thing i have missed here.

Durand Hicks
05-01-2004, 07:53 PM
Your modules and/or kernel is tainted. Looks like a recompile of your kernel or modules is in order.

KeTZer
05-08-2004, 01:20 PM
My Kernel is tainted because of the NVidia Drivers, which I use.

dmesg|grep *
with any of the devices suggested does not give any output...

KeTZer
05-10-2004, 03:03 PM
Thank you people for the help, but the problem has solved itself as I tested the drive in another computer and it wasn´t recognised by bios. Shortly after this some chip in the drive got extremely hot and left for chip heaven...