LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-07-2003, 01:12 PM   #1
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Rep: Reputation: 30
CD-Burner Problems


Plextor 52x CD-R, Debian Woody 2.4.22

This is going to be hard to get straight because I have been through so much in the past few days but I will do my best.

I wanted to use K3B to burn CD's. My cd-burner was detected and I could mount filesystems from it. It told me that I needed SCSI emulation. I couldnt find it in my kernel configuration so I ended up making alot of changes. For a while I had links from '/dev/cdrom -> /dev/scd0' and append="hdc=ide-scsi" in my lilo.conf. cdrecord -scanbus was still unable to access scsi devices. I then read a how to that had me 'rm /dev/cdrom' and then 'ln -s /dev/cdrom /dev/scd0' which still didnt work right. I ended up doing a './MAKEDEV' to re-create all scsi devices and hdc which I had messed up pretty bad with the magical 'rm' command. A friend had me remove IDE support from my kernel and just use scsi, still doesnt work. So I recompiled another version of my kernel with ide-cdrom support and now the burner is not even being detected. Currently I have my kernel compiled with these features:

scsi cdrom support -module

scsi generic support -module

probe all LUN's on each scsi device -compiled

Include IDE/ATAPI CDROM support -compiled

scsi emulation support -module

*I have re-added the [append="hdc=ide-scsi"] to lilo.conf

*I have made /dev/cdrom an alias for /dev/scd0


lsmod shows:

sr_mod 14264 0 (unused)
ide-scsi 10320 0
scsi_mod 56852 2 [sr_mod ide-scsi]

cd-record -scanbus shows:

cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
cdrecord.mmap: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord.mmap: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord.mmap: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord.mmap: Also make sure that you have loaded the sg driver and the driver for
cdrecord.mmap: SCSI hardware, eg. ide-scsi if you run IDE/ATAPI drives over
cdrecord.mmap: ide-scsi emulation. Read /usr/share/doc/cdrecord/README.ATAPI.setup!

and finally:

mount /cdrom
mount: /dev/hdc is not a valid block device

What commands do I need to run to see where I sit? From what I understand at this point everything should work fine but I must have messed something up along the way. Your help is greatly appreciated!
 
Old 11-07-2003, 02:47 PM   #2
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
The /dev/hdc error and the 3 modules loaded seems normal, if you wanna use it as a reader you can try using /dev/sr0 in your fstab.
The only thing I can see is module "sg" is missing, but this one gets loaded automatically when cdrecord requires it, ...on my system at least. You could try inserting it first.
modprobe -v sg
and run cdrecord -scanbus again.
 
Old 11-07-2003, 03:09 PM   #3
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
I did that and got the same error.
 
Old 11-07-2003, 09:39 PM   #4
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
I diabled a hard drive that was having problems. When it got to detecting hdc an error kept looping (some scsi problem, to the effect of "losing" the IRQ). Anyway it looped for 15 minutes and I had to manually power down my system. I cant find record of it anywhere in any logs. Where should I look so that I can post the actualy error that it is reporting?
 
Old 11-07-2003, 11:01 PM   #5
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
I got the errors message. I had to write it down. The first line is not accurate because it went by too fast.

SCSI sending too much information should be "x" and is "x"


ide-scsi: CoD ! = 0 in

idescsi_pc_intr

hdc: ATAPI Reset Complete

hdc: Lost Interrupt

After some googling I found tidbits about a possible kernel bug or a bad drive (which is not possible because I just tested it in win2k) I know my basics but kernel patches are beyond me, what should I do next, this is very discerning.

Last edited by nrunge; 11-07-2003 at 11:11 PM.
 
Old 11-09-2003, 10:43 AM   #6
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Sorry nrunge, but I have the same problem.
K3b tells:
"No support for ATAPI
Enable ide-scsi (scsi emulation) and that will solve all your problems!"

No idea what's up.
 
Old 11-09-2003, 04:05 PM   #7
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
linuxfond, I think you need to set "hdc=ide-scsi" in the append line of your boot configuration (see /etc/lilo.conf).
 
Old 11-10-2003, 06:18 AM   #8
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Vasudevadas, thanks , I've done it but it doesn't help.
It is really strange that before upgrading to mdk9.2 from 9.1 it stopped working. That's the main problem so far (printing works really as good as in Windows, which I can't tell about 9.1 at least with my HP & Epson).

Furthermore, k3b tells that cdrdao is not found, cdrecord either although I am sure they are installed.
 
Old 11-10-2003, 07:10 AM   #9
usergthesecond
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
are u guys running all this as the root user?
if scsi emulation was not compiled u will have to enable and recompile the kernel.
when using k3b for the first time run k3bsetup and make sure that u tell k3b that your device is a writer and add at least one new user. and have at least this stuff installed:
cdrdao, cdrecord, mkisofs,normalize,readcd.
it's far more easy to pick mandrake and redhat or suse or connectiva or knoppix or gentoo ... it's not that i don't like slackware, debian, freeBSD. it's just that for new linux user's u get everything done at setup time, then all that u have to do is read the setup files and learn how it was done. get familiar with the surroundings first and then go for the killer stuff that is freeBSD debian and slackware (don't forget that if u intend to setup freeBSD on a laptop with the touch pad type mouse u will need to patch the kernel and the nVidia drivers have to be compiled not like just to run the shell script for the other distros. yes u can use a usb mouse or any other mouse no prob) freeBSD is my favorite. to just try linux KNOPPIX it's the way of the future. if u like it and u will, then reboot and at the boot prompt type:
knoppix dma noscsi (for lapbox, like my toshiba) lang=us 2 (2 is for no X, will drop u to a shell saving memory for the hard disk install yeahhhh) if all well cd to /usr/local/bin and type sh knx-hdinstall or ./knx-hdinstall. and pick up linux format LXF45 october issue has some good tips on speeding up linux
make sure that all hardware and pc cards and printer and scanners are connected before u run setup. i wont' hurt.
my advice (if u all care, of course):
save your stuff
get a copy of either redhat 9 or mandrake 9up or suse 9 http://www.linuxiso.org
http://www.gentoolinux.com/ or gentoo.org he he he.
boot from the cd and replace your current distro
use the KDE desktop and k3b burner
good luck
oh ... i think that one of the likns is no good ... :0)

Last edited by usergthesecond; 11-10-2003 at 07:33 AM.
 
Old 11-10-2003, 07:27 AM   #10
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Quote:
Originally posted by usergthesecond
it's far more easy to pick mandrake and redhat or suse or connectiva or knoppix or gentoo ... it's not that i don't like slackware, debian, freeBSD. it's just that for new linux user's u get everything done at setup time...
Sorry, I am not really sure. I have just upgraded to MDK 9.2 and k3b stopped working. Kernel is not provided with it, and recompilation of it is beyond newbies' capabilities (including myself, though I am a happy Linux user since 1 1/2 years). Now I am following up closely what you are writing here and trying to solve that same problem. If I can't, I just downgrade back to mdk9.1 (but printing is not up to the specs of my great printers in mdk 9.1). Well, now go back to work, and looking forward to having that special kind of geek-fun this night to play with cdrdaos etc
 
Old 11-10-2003, 01:51 PM   #11
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
K3B is fine, it sees my cd-burner. My problem is when I make the appropriate changes to lilo.conf (the append=) and load scsi-emulation. When the system is booting it tried to load scsi emulation and gives me the errors that I mentioned above in a loop until I am forced to manually turn off my box. Aain those errors are:

ide-scsi: CoD ! = 0 in

idescsi_pc_intr

hdc: ATAPI Reset Complete

hdc: Lost Interrupt

There is a bit more but it never gets logged by bootlogger because it never gets a chance to write to the file.
 
Old 11-10-2003, 03:20 PM   #12
usergthesecond
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
did u try to remove the lines from lilo to so then u can boot the computer. then see if u can get the config file for the kernel u r running, tell the kernel to use this config and use menu config to make sure scsci emulation is there. to recompile then will be just a matter of waiting for it to finish
 
Old 11-10-2003, 04:22 PM   #13
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
nrunge,
IMHO this really sounds like a H/W problem.

You said you pulled a faulty drive from the 2nd IDE channel.
Did you double check that drive in another box?
Couldn't it be a bad 2nd IDE channel that caused both problems? ...or IRQ conflict affecting the 2nd IDE.

Have you tried hooking up your burner to primary slave and boot with hdb=ide-scsi?
 
Old 11-10-2003, 05:09 PM   #14
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by UnTamed
nrunge,
IMHO this really sounds like a H/W problem.

You said you pulled a faulty drive from the 2nd IDE channel.
Did you double check that drive in another box?
Couldn't it be a bad 2nd IDE channel that caused both problems? ...or IRQ conflict affecting the 2nd IDE.

Have you tried hooking up your burner to primary slave and boot with hdb=ide-scsi?
Yes I removed a "bad" HD from the second IDE channel. I am going to switch the CD-R over to the primary slave no matter what but if it was a bad secondary IDE controller then why does the it work just fine as a cd-rom? I can mount the drive just fine and do anything with it. My problem occurs when I try to use scsi emulation, during boot the drive is detected and everything is fine until the ide-scsi part is trying to load, it is then when I get errors. For a while I thought maybe there was some sort of problem with the support for my IDE chipset, but I also tried loading just generic pci-ide support and the same thing happened.
 
Old 11-10-2003, 05:12 PM   #15
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by usergthesecond
did u try to remove the lines from lilo to so then u can boot the computer. then see if u can get the config file for the kernel u r running, tell the kernel to use this config and use menu config to make sure scsci emulation is there. to recompile then will be just a matter of waiting for it to finish
Yes I have several kernels compiled so I can boot my system. I have one without any scsi. The computer boots fine and the CD-ROM works like a charm. I also have one with scsi compiled as modules and another with the scsi stuff compiled into my kernel, both fail during boot when ide-scsi attempts to load. Then I also have a compiled version of the 2.6 kernel but that has its own problems past scsi-emulation, and I hate having to change my fstab for devfs.


Here is another part of the error message at boot:

The scsi wants to send us more data than
expected - discarding data


I have googled forever, I see some problems that other people have had that are somewhat similair to mine but nobody ever has a solution. Very dissapointing.

Last edited by nrunge; 11-10-2003 at 06:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel 2.6.7 Burner Problems now matt3333 Slackware 4 11-16-2004 04:32 PM
cd burner configuration problems. The_Messiah Slackware 15 08-26-2004 01:50 AM
cdr/burner problems Lagg Slackware 7 09-02-2003 04:41 PM
Burner problems Trag Linux - Hardware 24 08-11-2003 11:23 AM
partion problems with my cd burner jclark00001 Linux - General 3 03-16-2003 03:34 AM

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

All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration