LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-20-2004, 09:33 AM   #1
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Rep: Reputation: 15
Angry External DVDRW trouble with kernel 2.6 -- ???Kernel bug???


I just changed over from Slackware 9.1 to Gentoo. I decided to use the modified 2.6.8 kernel. I am having trouble getting my external TDK IndiDVDRW to work, when it worked fine before in slackware using rescan-scsi-bus.

When I connect the drive using firewire, the system detects the drive as a generic scsi device and links it to sg0. However, this does me no good, as I need it to detect it as a scsi cdrom (sr0). I have scsi cdrom support compilled into the kernel. What is going wrong here???

Below is the dmesg output when the drive is connected:

ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node suspended: ID:BUS[0-00:1023] GUID[0010100345c4bd87]
ohci1394: fw-host0: SelfID received, but NodeID invalid (probably new bus reset occurred): 0000FFC0
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node resumed: ID:BUS[0-01:1023] GUID[0010100345c4bd87]
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: TDK Model: DVDRW840G Rev: 1.03
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 5


****EDIT****
I have since gotten the drive to work, but have a problem when reconnecting the drive. Scroll down to the bottom for details.

Last edited by wickdgin; 08-21-2004 at 02:41 PM.
 
Old 08-21-2004, 11:15 AM   #2
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Almost, but no dice...

I upgraded my kernel to 2.6.8.1, and changed sbp2, sr_mod, and sg (scsi_generic) to compile as modules (were compiled into kernel previously). Now when I load sbp2, and plug in my dvdrw I get this in my kernel messages:

Code:
ohci1394: fw-host0: SelfID received, but NodeID invalid (probably new bus reset occurred): 0000FFC0
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node resumed: ID:BUS[0-01:1023]  GUID[0010100345c4bd87]
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: TDK       Model: DVDRW840G         Rev: 1.03
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 5
sr0: scsi3-mmc drive: 62x/62x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
However, I still wasn't able to mount the sr0 device. The symlink just seemed to point to sg0. So I looked through the scsi devices and found a device named cd (this device wasn't here previously), that was mountable, so I was able to mount the dvdrw drive:

Code:
root# mount /dev/sr0 /mnt/dvdrw
mount: /dev/sr0 is not a block device
root# ls -l /dev/sg0 /dev/sr0
lr-xr-xr-x  1 root root 36 Aug 21 11:50 /dev/sg0 -> scsi/host0/bus0/target0/lun0/generic
lr-xr-xr-x  1 root root  8 Aug 21 06:48 /dev/sr0 -> /dev/sg0
root# mount /dev/scsi/host0/bus0/target0/lun0/cd /mnt/dvd
mount: block device /dev/scsi/host0/bus0/target0/lun0/cd is write-protected, mounting read-only
Now here is the second problem, when I unplug the dvdrw drive and plug it back in, it no longer recognizes it. If I try unloading (rmmod) either sr_mod or sbp2, rmmod just hangs.

Code:
**AFTER UNPLUGING**
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node suspended: ID:BUS[0-00:1023]  GUID[0010100345c4bd87]

***AFTER PLUGING BACK IN***
ohci1394: fw-host0: SelfID received, but NodeID invalid (probably new bus reset occurred): 0000FFC0
So any ideas on how I can get this running smoothly???
 
Old 08-21-2004, 01:46 PM   #3
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
One down, one to go.

Ok, I recompilled my kernel again... realized I was using devfs, so I changed over to using udev. Booted up with my drive plugged in, recognized it fine. This time sr0 pointed to scd0, and I was able to mount the sr0 device. k3b recognized the drive as well. However it only recognizes any burning devices when run as root, which seems to be a whole other problem.

However, I am still having the same problem if I unplug the drive, and plug it back in. I get the same kernel messages as shown in the previous post, and the device register. Also, rmmod still hangs if I try to remove the sr_mod module.

Anybody??? It seems I always have to answer my own questions
 
Old 08-22-2004, 08:40 AM   #4
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
It's a problem in the 2.6.8 kernel. You can only burn cds as root in 2.6.8, you should switch to 2.6.7 if you want to burn cds.
 
Old 08-22-2004, 10:55 AM   #5
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks, but is this also the reason for not being able to reconnect the drive???
 
Old 08-22-2004, 12:15 PM   #6
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
I switched to 2.6.7, it does fix the k3b problem. However I still have the problem of reconnecting the drive....

I found that I am able to 'rmmod sr_mod' while the dvdrw is still plugged into the firewire port, if I do that and unplug/replug the drive it will recognize it fine again. If I don't remove the sr_mod module, the drive will not be recognized when it is plugged back in, and 'rmmod -f sr_mod' tells me the modules is busy.

Any suggestions as to a work around on this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble installing debian on external usb harddrive willigi Debian 4 11-14-2005 03:24 PM
Trouble mounting an external dvd-rw drive zirtik Linux - Hardware 2 07-12-2005 05:03 AM
External Modem Trouble gr3ygh0s1 Linux - Networking 18 05-27-2005 08:56 AM
Trouble Installing a Creative Blaster V.92 External Serial Modem on Mandrake 10.0 dreakon Linux - Hardware 4 12-21-2004 03:43 PM
DVDRW HHH Linux - General 0 06-28-2001 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration