Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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!
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.
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?
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.
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.
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.
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
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.
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
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.