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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-29-2003, 08:11 AM
|
#1
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Rep:
|
CDRW Help
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?
|
|
|
04-29-2003, 08:41 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
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.
|
|
|
04-29-2003, 08:55 AM
|
#3
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
I just tried modprobe ide-scsi and modprobe sg again, and no it's not working anymore.
|
|
|
04-29-2003, 09:04 AM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
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.
|
|
|
04-29-2003, 09:10 AM
|
#5
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
I have this line in my lilo.conf:
append="hdc=ide-scsi"
Does it have to be in any particular place? Also, I believe I did rerun lilo . . . just typed /sbin/lilo . . . then I rebooted
|
|
|
04-29-2003, 09:29 AM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
the append line goes
after the image=
line and
before the next one
and it is only valid for that entry
|
|
|
04-29-2003, 09:43 AM
|
#7
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
I think I have it in the right place now . . . I reran /sbin/lilo and rebooted, but still not working.
OK - so my lio.conf looks like this:
...
image=/boot/vmlinuz-2.4.18-k6
append="hdc=ide-scsi"
initrd=/initrd.img
label=Linux2.4
read-only
...
and when I type dmesg I get this:
...
Kernel command line: BOOT_IMAGE=Linux2.4 ro root=341 hdc=ide-scsi
...
hdb: FUJITSU MPF3204AT, ATA DISK drive
hdc: 4X4X32, ATAPI CD/DVD-ROM drive
hdd: TOSHIBA CD-ROM XM-6602B, ATAPI CD/DVD-ROM drive
...
SCSI subsystem driver Revision: 1.00
hdc: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X CD-ROM drive, 128kB Cache
VFS: Disk change detected on device ide1(22,0)
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
There is no other mention of hdc, sr0, or scsi . . .
|
|
|
04-29-2003, 09:51 AM
|
#8
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
then run
modprobe ide-scsi
modprobe sg
cdrecord -scanbus
did you build this kernel yourself?
you should get an error on the modprobe
is you don't have that module.
|
|
|
04-29-2003, 09:56 AM
|
#9
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
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?
|
|
|
04-29-2003, 10:03 AM
|
#10
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
modprobe sr_mod
maybe
|
|
|
04-29-2003, 10:10 AM
|
#11
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
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 . . .
|
|
|
04-29-2003, 10:17 AM
|
#12
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
maybe in /var/log/boot.log or something similar
you can see which modules are loaded with lsmod.
i'll be gone for a while now. maybe you'll get somebody
better.
|
|
|
04-29-2003, 10:39 AM
|
#13
|
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 18
Original Poster
Rep:
|
you've been helpful so far.  Thanx.
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?
|
|
|
04-29-2003, 09:54 PM
|
#14
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
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
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|