LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2003, 07:24 AM   #1
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Rep: Reputation: 30
/etc/fstab drives


This is my /etc/fstab

/dev/hda6 / reiserfs defaults 1 1
/dev/hda5 /boot ext2 defaults 1 2
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/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
/dev/fd0 /media/floppy auto noauto,user,sync 0 0

No idea what all that means, but.......

My question is i have a dvd-rom drive which i expect is the /dev/dvd
and i have a dvd-writer drive which again, i expect is the /dev/cdrecorder

But my question is what the hell is the /dev/cdrom ?
I dont have three drives ?

Can anyone explain

tia
 
Old 10-29-2003, 07:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
have a look.....

ls -l /dev/dvd /dev/cdrom /dev/cdrecorder

one will no doubt be a link to another, but it does seem a bit odd to have different mountpoints for it...
 
Old 10-29-2003, 07:31 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Do 'ls -l /dev/cdrom' and so on - all of those should be symlinks and say where they point to. Do 'dmesg | grep -i cd' and 'dvd' and 'hd' and you should turn up what your devices are, as far as /dev/hdc or /dev/sr1 or what have you. (Probably a better way for that last, but I don't know it.) Then just clean it up how you like it.

-- Oops. Slow again.

Last edited by slakmagik; 10-29-2003 at 07:33 AM.
 
Old 10-29-2003, 07:33 AM   #4
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Original Poster
Rep: Reputation: 30
XXXX@linux:~> ls -l /dev/cdrecorder
lrwxrwxrwx 1 root root 3 2003-08-30 22:38 /dev/cdrecorder -> sr0
XXXX@linux:~> ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 2003-08-30 22:38 /dev/dvd -> hdc
XXXX@linux:~> ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 2003-08-30 22:38 /dev/cdrom -> hdc


This is the output, does this me there all links ??
Does this seem correct ?
 
Old 10-29-2003, 07:51 AM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
/dev/dvd & /dev/cdrom are the same thing, they both point to /dev/hdc, the Secondary Master IDE Device. /dev/cdrecorder points to /dev/sr0, a scsi device. It's probably using scsi emulation, which makes ide devices look like scsi devices.
 
Old 10-29-2003, 07:58 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
That's actually okay in that stuff like mplayer might look to /dev/dvd automatically and stuff like xmms might look to /dev/cdrom or whatever. That way you don't have to worry about it. It's just your 'drive to play/read disks in' and sr0 is set to burn, like aaa said. You could do it different ways, but that's probably fine.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.1 fstab + 2 disc drives securitybreach Slackware 6 04-27-2005 04:17 PM
adding drives to fstab kurrupt Debian 1 08-09-2004 01:17 AM
tryign to set up fstab with 2 cd drives Tyir Slackware 8 12-07-2003 08:00 PM
Automatically mounting drives with FSTAB caesius_01 Linux - Newbie 6 10-21-2003 12:10 PM
Mounting fat drives in fstab.. subnet Linux - Newbie 3 10-10-2003 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration