LinuxQuestions.org
Help answer threads with 0 replies.
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 04-29-2003, 08:11 AM   #1
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Rep: Reputation: 0
Question 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?
 
Old 04-29-2003, 08:41 AM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
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.
 
Old 04-29-2003, 08:55 AM   #3
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
I just tried modprobe ide-scsi and modprobe sg again, and no it's not working anymore.
 
Old 04-29-2003, 09:04 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 04-29-2003, 09:10 AM   #5
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 04-29-2003, 09:29 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the append line goes
after the image=
line and
before the next one
and it is only valid for that entry
 
Old 04-29-2003, 09:43 AM   #7
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
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 . . .
 
Old 04-29-2003, 09:51 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 04-29-2003, 09:56 AM   #9
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
Old 04-29-2003, 10:03 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
modprobe sr_mod
maybe
 
Old 04-29-2003, 10:10 AM   #11
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
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 . . .
 
Old 04-29-2003, 10:17 AM   #12
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 04-29-2003, 10:39 AM   #13
shaun_bakker
LQ Newbie
 
Registered: Feb 2003
Distribution: Debian
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
Old 04-29-2003, 09:54 PM   #14
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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
 
  


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
Cdrw Risetaker2003 Linux - Hardware 1 10-08-2003 05:22 PM
Liteon 52x cdrw - K3b doesn't see it as cdrw LooseCanon Linux - Hardware 20 08-29-2003 10:21 PM
CDrw, some help? Elijah Linux - Hardware 2 04-21-2003 08:40 AM
CDRW How to LinWinUser Linux - Newbie 4 06-07-2002 01:23 AM
Cdrw Painmaster Linux - Hardware 2 03-18-2002 04:20 PM

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

All times are GMT -5. The time now is 11:42 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