LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-02-2002, 01:13 PM   #1
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Rep: Reputation: 0
Unhappy CD-RW problems, yet again


Hi,

I've carefully read all others threads I could find on this topic; other than that, I tried Google (of course). Both, however, with no luck.

Since I wanted my CD-burner to, ehm, burn CD's, I followed the advice I got somewhere, and took care of having SCSI emulation in my kernel. I also put the line "append='hdc=ide-scsi'" in my lilo.conf, but I haven't tested burning some CD since, because I'm in some trouble with my CD-drive.

First, I can't figure out what my CD-drive is called with SCSI-emulation enabled. The problem is that I can't even try out with scd0, sr0 and what not, because I get errors all the time.

When I try "mount -t iso9660 /dev/scd0 /cdrom", I get "/dev/scd0 is not a valid block device". Same goes for scd1 and sr0, which made me check my dmesg. There, I found this error, reported about a dozen times:

ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:00 (hdc), sector 64
isofs_read_super: bread failed, dev=16:00, iso_blknum=16, block=32

These are the lines I searched for with Google, but, as I said, without any solutions... I also found this error on this forum, but also without any usable advice. I must say I'm quite desperate. Burning CD's (accessing them at all, actually) is the last thing I'm having problems with; other than that, everything just works as it did when I still used Windows.

Please be kind, I'm just a newbie. And many many thanks in advance...

Tom
 
Old 11-02-2002, 01:26 PM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
I dont have a straight forward solution but just some suggestions. Do you have SCSI CD or SCSI generic support enabled in the kernel?
I'm sure someone else will be able to help out more than me...
-NSKL
 
Old 11-02-2002, 01:31 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Piece by piece and yet another question, are you sure that your CD-burner is /dev/hdc? Does ide-scsi module show up in /sbin/lsmod ? and post the output of /sbin/lsmod as well, it might help us to narrow the problem down.
 
Old 11-02-2002, 02:31 PM   #4
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Piece by piece and yet another question, are you sure that your CD-burner is /dev/hdc?
Yes. That's at least *something* I'm sure of... :-/

Quote:
Does ide-scsi module show up in /sbin/lsmod ? and post the output of /sbin/lsmod as well, it might help us to narrow the problem down.
Er... The module does not show up in lsmod. Lsmod actually mentions only *one* module, which is the Nvidia-driver.

Concerning the question about the kernel of the previous poster: I actually managed to compile my own kernel, and it works, and I'm sure I enabled SCSI-emulation support. But how do I check right now if it is SCSI CD or SCSI generic support?

Thanks for your help; it's much appreciated.

Tom
 
Old 11-02-2002, 03:15 PM   #5
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
SCSi-emulation and SCSI CD / generic support are three different things.
SCSI emulation is needed to make /dev/hdc look like a SCSI device while SCSI generic and CD support are needed to actually talk to that device ones SCSI-emulation is working.
You should be able to enable SCSI generic / CD support under the SCSI section of make menuconfig.
Anyways, it seems your scsi emulation module is not loaded. Did you compile it as a module or statically into the kernel when you recompiled your kernel?
-NSKL
 
Old 11-02-2002, 03:21 PM   #6
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Original Poster
Rep: Reputation: 0
Hey, I really should've found these forums earlier; I've never had such fast replies...

About the SCSI support: when I have a look at my kernel config (with make menuconfig), "SCSI disk support" and "SCSI generic support" are checked (built-in, not as a module).

Thx,
Tom
 
Old 11-02-2002, 03:33 PM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
And you also have compiled in SCSI emulation support in /ide/ata/atapi block devices section of menuconfig?
If so then you should be pretty much set.
Add append="hdd=ide-scsi"
at the end of your kernel stanza in /etc/lilo.conf (NOTE, for you should be hdc=ide-scsi)
Then save the file, and run lilo so the new changes take effect.
Now restart and try to mount your CD with mount /dev/sr0 /mnt or mount /dev/scd0 /mnt and it SHOULD work.

I'm basically telling you all that you already know ain't i? But sometimes it's better to do something again if you are not sure, just in case that you maybe forgot something the first time.
So try it again, and if it STILL doesn't work post any messages mount gives you, look through dmesg, and in /var/log/messages and /var/log/syslog
HTH
-NSKL
 
Old 11-02-2002, 04:24 PM   #8
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
post the output of:

ls /proc/scsi
 
Old 11-02-2002, 05:28 PM   #9
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
And you also have compiled in SCSI emulation support in /ide/ata/atapi block devices section of menuconfig?
Yes.

Quote:
I'm basically telling you all that you already know ain't i?
Yes , but that's okay.

Quote:
So try it again, and if it STILL doesn't work post any messages mount gives you, look through dmesg, and in /var/log/messages and /var/log/syslog
Right. First off, I should perhaps mention that I had a line in my /etc/fstab for automounting my cd-drive, back when it was still a regular IDE-drive. I removed that line, and rebooted. Here goes.

josmansbos:/home/tom# mount -t iso9660 /dev/scd0 /cdrom
mount: /dev/scd0 is not a valid block device
josmansbos:/home/tom#


Same goes for /dev/sr0 and /dev/sg0...

In dmesg, I find the error I already posted in my original question, though I'm not sure if it isn't *still* the error from when I tried ripping the CD, this morning.

[Iide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:00 (hdc), sector 0
isofs_read_super: bread failed, dev=16:00, iso_blknum=16, block=3260[/I]

/var/log/messages reports the exact same thing, without the first line. Same goes for /var/log/syslog, which also reads "modprobe: modprobe: Can't locate module block-major-11", but I'm not sure what that's supposed to mean, or if it is relevant here (I didn't do something involving modprobe).

And @moses:

josmansbos:/home/tom# ls /proc/scsi
ide-scsi scsi sg
josmansbos:/home/tom# cd /proc/scsi/ide-scsi/
josmansbos:/proc/scsi/ide-scsi# ls -a
. .. 0
josmansbos:/proc/scsi/ide-scsi# file 0
0: empty
josmansbos:/proc/scsi/ide-scsi# cd ..
josmansbos:/proc/scsi# file scsi
scsi: empty


I'd like to thank you guys once again. I'm really desperate. If I can't get my cd-rw to work, I'm afraid I'll have to go back to Win**ws, which is *absolutely* not what I want...

Tom
 
Old 11-02-2002, 05:40 PM   #10
lopezjo49
Member
 
Registered: Jun 2002
Location: NJ
Distribution: Mainly Kubuntu 8.10
Posts: 44

Rep: Reputation: 15
just out of curiousity, this may sound dumb..

have you tried mounting a different CD, preferably one that's not blank.
 
Old 11-02-2002, 06:46 PM   #11
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Ok, your ide-scsi support is in the kernel. (/proc/scsi/ide-scsi will only
show up if it's supported by the kernel). So, now we have to find that
device.
post the output from:

cat /proc/scsi/scsi
cat /proc/scsi/ide-scsi/0
 
Old 11-03-2002, 02:09 AM   #12
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Original Poster
Rep: Reputation: 0
@lopezjo49: Alas, I *did* try different CD's, with no luck.

@moses:

tom@josmansbos:~$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LITE-ON Model: LTR-40125W Rev: WS05
Type: CD-ROM ANSI SCSI revision: 02
tom@josmansbos:~$ cat /proc/scsi/ide-scsi/0
SCSI host adapter emulation for IDE ATAPI devices
tom@josmansbos:~$


Thx a lot,
Tom
 
Old 11-03-2002, 02:21 AM   #13
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Ok, so the device exists. Do you happen to know if you run devfs?

It's pretty easy to tell:

ls /dev/scsi

If there is an error, you're not running devfs, if you see something like:
host0
you have devfs, and it's really simple to find your CD, just follow the
directory tree down to:
/dev/scsi/host0/bus0/target0/lun0/cd
this is your CD, and you can mount with the command:
mount /dev/scsi/. . ./cd /mnt

However, I get the feeling you aren't running devfs, so it's going to take
a little more detective work to find your drive. . .

run:
dmesg | grep -i scsi
post that

Another thing you can try (assuming you are running LILO), is adding
change your /etc/lilo.conf "append=hdX=ide-scsi" line:

append="hdX=ide-scsi ide=nodma"

If your harddrive needs DMA, you can use your startup scripts to turn
it back on using hdparm (man hdparm).
 
Old 11-03-2002, 02:40 AM   #14
*Evangel*
LQ Newbie
 
Registered: Nov 2002
Location: Belgium (Leuven)
Distribution: Debian 3.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:

ls /dev/scsi

If there is an error, you're not running devfs, if you see something like:
host0
you have devfs, and it's really simple to find your CD, just follow the
directory tree down to:
/dev/scsi/host0/bus0/target0/lun0/cd
this is your CD, and you can mount with the command:
mount /dev/scsi/. . ./cd /mnt
Hm. I've never seen this approach before, but alas, it seems I'm not running devfs.

Quote:
dmesg | grep -i scsi
... gives me this:

tom@josmansbos:~$ dmesg | grep -i scsi
Kernel command line: BOOT_IMAGE=Linux ro root=301 hdc=ide-scsi
ide_setup: hdc=ide-scsi
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Type: CD-ROM ANSI SCSI revision: 02
ide-scsi: hdc: unsupported command in request queue (0)
ide-scsi: hdc: unsupported command in request queue (0)
ide-scsi: hdc: unsupported command in request queue (0)
ide-scsi: hdc: unsupported command in request queue (0)
ide-scsi: hdc: unsupported command in request queue (0)
ide-scsi: hdc: unsupported command in request queue (0)


...those lines being part of the error I mentioned in a previous post. But again, I don't know when these errors occured.


Thx a lot again,
Tom
 
Old 11-03-2002, 03:11 AM   #15
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I've never seen this error, but you may have to disable (or enable) DMA.

What kernel (version numbers) are you running?
 
  


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
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
cisco 350 wireless problems and suse x-server problems incognito9 Linux - Wireless Networking 5 10-14-2004 07:53 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

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

All times are GMT -5. The time now is 05:24 PM.

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