LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-16-2005, 08:45 PM   #1
hatha
LQ Newbie
 
Registered: Apr 2005
Location: CA, USA
Distribution: Arch Noodle, Ubuntu Breezy, SuSE 9, Mandrake 2006
Posts: 10

Rep: Reputation: 0
CD R/RW: reads or writes but not both


Hi, I'm newbie-ish, so please have pathience...

I recently replaced a broken CD-ROM with a CD R/RW. I'm using Mandrake 7.2 (old version), and when I booted, kudzu detected the new hardware and presumably configured it.

At first it functioned OK as a CD-ROM, but if I tried cdrecord -scanbus (as root) I got an error that it couldn't find an SCSI driver. Also, I was getting odd error messages about the CD R/RW when booting. I at least figured out that this was because I needed to load the ide-scsi module.

So I added hdc=ide-scsi to the end of the linux command line in /boot/grub/menu.lst and also put append="hdc=ide-scsi" in /etc/lilo.conf even though I don't use it. This caused boot-time messages to go away but cdrecord -scanbus still failed.

Then I added the line "ide-scsi" to /etc/modules and when I rebooted, kudzu came up again and reconfigured my CD R/RW, and cdrecord -scanbus appeared to work! I thought I had fixed everything but in actuallity, I can't even read from my CD anymore! Saying "ls /mnt/cdrom" gives me: "Input/Output error". Just clicking on the CD-ROM icon gives me a message box "You do not have access rights to this location".

Here's the output of cdrecord -scanbus
Cdrecord 1.9 (i586-mandrake-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Linux sg driver version: 2.1.39
Using libscg version 'schily-0.1'
scsibus0:
0,0,0 0) 'CDWRITER' 'IDE5232 ' 'A030' Removable CD-ROM
0,1,0 1) *
...
0,7,0 7) *

Here are *two* entries in /etc/sysconfig/hwconf (kudzu's database):
-
class: CDROM
bus: IDE
detached: 0
device: hdc
driver: ignore
desc: "CD-RW IDE5232"
-
class: CDROM
bus: SCSI
detached: 0
device: scd0
driver: ignore
desc: "Cdwriter IDE5232"
host: 0
id: 0
channel: 0
lun: 0
-

Please help -- my head is starting to hurt badly
 
Old 04-16-2005, 08:59 PM   #2
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
make sure /dev/hdc is read/write for all users. run:
Code:
chmod a+wr /dev/hdc
(i think).

then look in fstab and make sure that the mount options are correct for /dev/hdc.
post your fstab if you have any questions about it.
 
Old 04-16-2005, 09:27 PM   #3
hatha
LQ Newbie
 
Registered: Apr 2005
Location: CA, USA
Distribution: Arch Noodle, Ubuntu Breezy, SuSE 9, Mandrake 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for replying.

$ ls -l /dev/hdc
brw------- 1 daniel cdrom 22, 0 Sep 27 2000 /dev/hdc

Which should be good enough for me (daniel) but I tried

$ chmod a+rw /dev/hdc
$ ls -l /dev/hdc
brw-rw-rw- 1 daniel cdrom 22, 0 Sep 27 2000 /dev/hdc

anyways, and it still doesn't work. I get the same errors. Here is the relevant lines of /etc/fstab:
Code:
/mnt/cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom 0 0
[edit]
/dev/cdrom is indeed a link to /dev/hdc, BTW
[/edit]

Last edited by hatha; 04-16-2005 at 09:32 PM.
 
Old 04-16-2005, 10:24 PM   #4
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
with ide-scsi module hdc changes device name.
look at output of:

Code:
sg_scan
and
Code:
sg_map
to determine your device's new name.
likely it will be /dev/sr0 or /dev/scd0
 
Old 04-16-2005, 11:25 PM   #5
hatha
LQ Newbie
 
Registered: Apr 2005
Location: CA, USA
Distribution: Arch Noodle, Ubuntu Breezy, SuSE 9, Mandrake 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I don't seem to have either of the programs/files sg_scan or sg_map. However, running on pure desperation, I removed /dev/cdrom and then linked it to /dev/scd0 like this:
Code:
# rm /dev/cdrom
# ln -s /dev/scd0 /dev/cdrom
stuck a CD in the tray and ls /mnt/cdrom worked! So, I guess thanks very much for the idea!

Now, is this really the right way to go about things? I haven't tried burning anything yet. If anyone can give me a reason why this is or isn't the correct way to fix the problem, I would still appreciate a few more replies.

Thanks a million, though!
 
Old 04-17-2005, 02:07 PM   #6
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
I'm not familiar with Mandrake or Suse or auto/supermount.
Just wanted to say that first

If you're using a 2.4.xx kernel, AND loading the ide-scsi module AND passing the /dev/hdc=ide-scsi parameter at boot, then yes, mapping /dev/hdc to /dev/sr0(or scd0) is the right way.

Your distro may have a different way of doing things.
 
Old 04-17-2005, 07:12 PM   #7
hatha
LQ Newbie
 
Registered: Apr 2005
Location: CA, USA
Distribution: Arch Noodle, Ubuntu Breezy, SuSE 9, Mandrake 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Well, just FYI, Mandrake 7.2 has a 2.2 kernel. I'm planning to upgrade but would kinda like to backup my home directory first which is why I am bothering with getting my CD burner to work.

Thanks again for the help!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shouldn't disk writes be slower than reads jwstric2 General 0 08-28-2004 11:01 PM
> writes a new file, how to append? luwigie Linux - General 1 08-26-2004 08:42 PM
editor that reads & writes msword doc files leobing Linux - General 3 04-08-2004 11:35 AM
anaconda writes grub? shanenin Linux - Software 1 09-04-2003 03:25 PM
cdburner reads not writes NGraphiX Linux - Hardware 1 02-28-2003 04:29 AM


All times are GMT -5. The time now is 02:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration