LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-17-2004, 10:52 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
howto get the cdroms working in linux


I looked up a few guides on google for getting the cdrom to work and followed them, but they did not seem to work.

I have a cdrw and a dvd rom. I am not sure how to get them working under debian.
What do I have to change to get it to make the cdrw and the dvd work? I have no idea what I was commenting out or anything so all suggestions are welcome.

Here is my fstab:


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdc2 none swap sw 0 0
/dev/hdc1 /boot ext3 defaults 0 2
/dev/hdc5 / ext3 defaults,errors=remount-ro 0 1
#/dev/hdb /media/cdrom iso9660 ro,user,noauto 0 0
#/dev/hdb /media/cdrom0 iso9660 ro,user,noauto 0 0
#/dev/hda /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy auto rw,user,noauto 0 0
#/dev/hdb /cdrom iso9660 ro,user,noauto 0 0

/dev/cdrw /cdrw iso9660 defaults,ro,user,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noauto 0 0


Thanks
 
Old 05-18-2004, 12:20 AM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Did you create the directories
/cdrw and
/dvd
for mount to mount them to?

Also, are they really called /dev/cdrw and /dev/dvd?
My cdrw is called
/dev/sr0

I find it strange, or amazing, if it does, that debian uses plain names for it's devices like /dev/cdrw, etc. How did you get the names? Do they show up in your hardware config. (I have never used debian, but assume that there is some kind of graphical hardware browser?)

Anyway, what happens when you put a data cd in, say, your cdrw and you
mount /cdrw

How about
cdrecord --scanbus

RO
 
Old 05-18-2004, 04:15 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
that's the way i put it on my /etc/fstab and it works but of course u have to erase the # comment marks at the start of any line u need ;-)


/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
 
Old 05-18-2004, 11:58 AM   #4
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
RolledOat, he probably has a symbolic link from dvd to the actual drive in /dev. That is what I have.

From /etc/fstab:
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0

The file in /dev
ls -al /dev/cdrom
lrwxrwxrwx 1 root root 8 Nov 5 2002 /dev/cdrom -> /dev/hdc

R3dhatter, can you mount the drives manually? If you cant mount manually, then fstab probably wont work either

As Root,
mount /dev/cdrw /cdrw
 
Old 05-18-2004, 05:10 PM   #5
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
when I do :
mount /dev/cdrw /cdrw

I get:
mount: you must specify the filesystem type

I followed this guide :
"Linux sees your first CD-ROM drive as /dev/hdc and second as /dev/hdd device. As root create the directories and the symbolic links like below

# mkdir /cdrom
# mkdir /cdrw
# ln -s /dev/hdc /dev/cdrom
# ln -s /dev/hdd /dev/cdrw

and next try to put the following lines in your /etc/fstab file:

/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
/dev/cdrw /cdrw iso9660 defaults,ro,user,noauto 0 0"

I think the name of my cdrw was actually something like scd0 and scd1...

Last edited by r3dhatter; 05-18-2004 at 05:17 PM.
 
Old 05-18-2004, 06:20 PM   #6
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
What do you get when you do "ls -al /dev/cdrw" ?

It looks like you are telling me conflicting things here. Do you have a SCSI system or IDE? The guide you mentioned, is telling you to make the sym links to IDE drives (/dev/hdc) but you say that your "cdrw was actually something like scd0 and scd1..." scd0 and scd1 are referring to SCSI devices 0 and 1.
 
Old 05-22-2004, 12:55 PM   #7
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
I got:

lrwxrwxrwx 1 root root 8 May 15 22:20 /dev/cdrw -> /dev/hdc


not sure what that means though...
 
Old 05-22-2004, 08:43 PM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Originally posted by shubb
It looks like you are telling me conflicting things here. Do you have a SCSI system or IDE? The guide you mentioned, is telling you to make the sym links to IDE drives (/dev/hdc) but you say that your "cdrw was actually something like scd0 and scd1..." scd0 and scd1 are referring to SCSI devices 0 and 1.
An IDE CD-RW has to use the kernel's SCSI emulation in order to be writeable (otherwise, it's only readable). That's why they're symlinked to (pseudo-)SCSI device nodes. However, SCSI emulation also needs to be enabled in the bootloader in order to work. This is usually accomplished by adding an ide-scsi option for the relevant drive (if the kernel is 2.4 series), or an ide-cd option (if the kernel is 2.6 series).

Depending on the version of Debian in question, the kernel may need to be recompiled, or the bootloader configuration may need to be adjusted --or both-- in order for the drive to be recognized as writeable.
 
Old 05-23-2004, 08:18 AM   #9
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Are there any tutorials or anything on this? I am not sure what to put.

like this? oh and how do I find out where my cdrw was mounted on originally?
ln -s -ide-cd /dev/scd0 /dev/cdrw
 
Old 05-23-2004, 09:29 AM   #10
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Depending on your kernel (check this by typing uname -r in a terminal), here are some tutorials:

2.4 series kernels:

CD-Writer Configuration under Linux

Add A CDR Drive

Linuxguru.net : IDE CD Writers, Updated

2.6 series kernels:

SCSI emulation support is compiled into the kernel already, so you don't have to do anything to get it. The ide-cd module should load by default, though you might have to tell cdrecord which drive is using it.

Hope this helps.
 
Old 05-24-2004, 08:17 AM   #11
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
I am using 2.6.5 kernel. How do I set the links I made to default then? I don't think it found it because it could not read the cds I put in.
 
Old 05-24-2004, 10:45 AM   #12
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Did you mount the CD-ROM drive before trying to read it? I assume that your nick indicates that you're using RedHat, and I don't think RH automounts or supermounts CD-ROM drives.

Do you know how your system is cabled? The reason that the guide said that the CD-ROM is seen by Linux as /dev/hdc is because the most common location for the CD-ROM drive is the master device on the secondary IDE channel (which device is always seen by Linux as /dev/hdc). But if your drive is the slave device on the primary IDE channel, it's /dev/hdb. If it's the slave device on the secondary IDE channel, it's /dev/hdd. So the guide is kind of misleading.

But it's easily fixed if you reboot and check your BIOS for the detected devices, so that we know which device is which.
 
Old 06-16-2004, 08:35 AM   #13
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
[QUOTE]Originally posted by motub
This is usually accomplished by adding an ide-scsi option for the relevant drive (if the kernel is 2.4 series), or an ide-cd option (if the kernel is 2.6 series).

Interesting that I was using 2.6.0 for some time with the hdc=ide-scsi on lilo instead of ide-cd without any problems.. But now that i've upgraded to 2.6.6 i've been having problems with that since the kernel identifies my cdrw as hdc... maybe putting ide-cd will fix it, but why would it be working before w/ ide-scsi then?
 
Old 06-16-2004, 02:43 PM   #14
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Because the early 2.6 kernels allowed that, but the later ones (about post 2.6.5 or so) don't, as ide-cd is now working fully.

Same thing happened to me (I was able to use ide-scsi for 2.6.3, but had to take it out for 2.6.5).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto get USB working on FC4 lucky_luuk Fedora 17 12-01-2005 11:36 PM
mandrake 10.0 cdroms stopped working lasoniss Mandriva 0 12-22-2004 04:29 AM
problem getting linux kernel to recognize cdroms on promise 20276 behmjose Linux - Hardware 0 03-25-2004 03:49 PM
howto get temperature sensors working apberzerk Linux - General 2 03-06-2004 11:23 PM
get Linux to read from Mixed Mode CDROMs tarheel92x Linux - Software 4 10-22-2003 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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