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.
OK - so I've read through most of the CDRW posts, and while I had it working for a day, as soon as I rebooted, it has stopped.
I'm running Debian 3.0r1 on a K6-2 500MHz. I have 2 HDs, a CDRW, and a regular CD-ROM. The CDRW is hdc, and the CD-ROM is hdd. If I do a cdrecord -scanbus, I get
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
If I do a cat /proc/scsi/scsi, I get
Attached devices: none
I have run modprobe ide-scsi, and modprobe sg, and this is what had it working the first time, but not after reboot.
I'm thinking scsi emulation isn't fully installed yet, but I don't know what else to do. Any suggestions?
if you reboot and run modprobe ide-scsi, and modprobe sg and then it works then to get it to work *ALL* the time is tell the system to load the modules at boot time. This is done through your init scripts which reside in /etc/rc.d.
I'm not familiar with Debian but if it uses sys V init then there should be a 'local' script in /etc/rc.d/init.d that will allow you to specify the modprobe commands.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
generally, it just takes the "hdc=ide-scsi" in the boot line.
and the modprobe ide-scsi and modprobe sg
it sure sounds like if you rebooted and it quit working,
that you had the modules loaded, and rebooted, and
didn't reload them, but
if you messed with your boot loader, you maybe have
removed the hdc=ide-scsi line when you were tinkering.
lilo has to be rerun for changes to take effect.
if you can
mount /dev/hdc /mnt/cdrom
assuming the /mnt/cdrom directory exists, then
the hdc=ide-scsi hasn't been taken care of.
I ran:
modprobe ide-scsi
modprobe sg
cdrecord -scanbus
. . . but I get the same error as mentioned at the start of this thread. I had help installing a new kernel, but I think it's the default install, not a recompile. Any other files and/or messages can post to help debug this?
nope - didn't seem to work . . . same error message . . .
Is there another way besides dmesg to see the output from bootup. I thought I saw a message that said something like couldn't find modules, but it went by too fast . . .
I ran lsmod, and saw that ide-scsi wasn't running, so I started it and now stuff works fine again. Can anyone out there tell me exactly how to make sure these modules are loaded at boot?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i don't know if debian has a proper way to do that or not.
i have stuff like that loaded in /etc/rc.d/rc.local
i bet you just need them loaded in the right order.
maybe sr_mod then ide-scsi then sg maybe
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.