LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-17-2006, 12:10 AM   #1
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
Default FC5 /dev entries for dvd devices?


Hi,

Just completed an install of FC5 using the instructions at http://stanton-finley.net/fedora_cor...ion_notes.html .

Somehow in trying to enable interchangeable use of my two DVD drives in this box I think I screwed up in creating a symlink for the devices in /dev.

I would appreciate it if someone with a two DVD drive configuration could supply the output of the following command on their machine:

Code:
ls -l /dev/*dvd*
my suspect entry is:

Code:
lrwxrwxrwx 1 root root 14 Apr 16 20:43 /dev/dvd -> /dev/dvdwriter
I think I created the symbolic link backwards...

All the other entries look OK, as do the ones for the cd drive:

Code:
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvd-hda -> hda
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvd-hdb -> hdb
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvdrw -> hda
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvdrw-hda -> hda
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvdwriter -> hda
lrwxrwxrwx 1 root root  3 Apr 16 19:13 /dev/dvdwriter-hda -> hda

lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdrom -> hdb
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdrom-hda -> hda
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdrom-hdb -> hdb
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdrw -> hda
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdrw-hda -> hda
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdwriter -> hda
lrwxrwxrwx 1 root root 3 Apr 16 19:13 /dev/cdwriter-hda -> hda
Thanks!
 
Old 04-17-2006, 02:36 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Hi

Your DVD devices are usually symlinked to hdc, hdd, etc. If you are using SATA hard drives, then they will be hda and hdb.

That is the output on my box with two DVD drives.

Hope that helps
 
Old 04-17-2006, 02:42 PM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
In re-reading what you have posted, it looks normal. Have a look at your /etc/fstab files and it will show you what symlinks are listed for your drives. On one of my boxes it looks like this:

Quote:
0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
Note that FC uses /media/ to link dvd and cdrom devices.

Bob
 
Old 04-18-2006, 12:20 AM   #4
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the replies.

OK, I see *nothing* like that in my fstab, I hope I'm using the right command here...
Code:
more /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=SWAP-hde6         swap                    swap    defaults        0 0
Oh, and BTW, I guess I needn't have been worried about my original linking mistake, as apparently all the entries in /dev are rebuilt upon reboot - the 'backwards' symbolic link I'd created is no longer there now, and the correct entry is (without any help from me other than pressing a power button) .

What I think I've discovered since is that many of the sound and video applications are coded around the idea of a single drive being in the config. Some default to the first drive, others the second... now that I can tell this, I think I'm just going to focus on particular apps and match the drive used to the app it likes.
 
Old 04-18-2006, 02:15 AM   #5
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 51
Quote:
Originally Posted by BobNutfield
Hi

If you are using SATA hard drives, then they will be hda and hdb.
Correction, i think its sda and sdb for SATA drives
 
Old 04-18-2006, 01:39 PM   #6
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Quote:
Correction, i think its sda and sdb for SATA drives

Please note, sda and sdb will refer only to SATA hardrives, not to media drives. These will still be hd--. Note my own fstab file above. I use two SATA drives.

Bob
 
Old 04-19-2006, 06:48 AM   #7
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 51
Quote:
Originally Posted by BobNutfield
Please note, sda and sdb will refer only to SATA hardrives, not to media drives. These will still be hd--. Note my own fstab file above. I use two SATA drives.

Bob
CHECK THIS OUT
Code:
LABEL=/                 /                       ext3    defaults        1 1
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=SWAP-sdb10        swap                    swap    defaults        0 0
/dev/sda1		/media/XP_System	vfat	auto,quiet,noexec,rw,umask=0000	0 0
/dev/sdb6		/media/MAX_Backup	vfat	auto,quiet,noexec,rw,umask=0000	0 0
/dev/sdb1		/media/CATIA		vfat	auto,quiet,noexec,rw,umask=0000	0 0
/dev/sdb5		/media/APPS		vfat	auto,quiet,noexec,rw,umask=0000	0 0
/dev/sdb7		/media/DOWNLOADS	vfat	auto,quiet,noexec,rw,umask=0000	0 0
 
Old 04-19-2006, 07:06 AM   #8
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Those devices with "sd--" are still drive devices. What does your cd/dvd rom show in fstab? If they are not "hd--" then I have learned something.

Bob
 
Old 04-19-2006, 09:23 AM   #9
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
donv2 - you're right, /dev is a dynamic filesystem that's managed by udev. Every time a device changes (added, removed, or the system boots etc), udev runs through a set of rules to determine how the entries in /dev should be updated.

You said that you saw no DVD entries in your fstab - you will only see entries in your fstab if you have DVDs in and mounted.

Regards
David
 
  


Reply

Tags
device, drive, dvd, fc5, fstab, udev


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
FC5 development release and FC5 official release- where is the DVD iso? smiley_lauf Fedora 11 03-13-2006 02:38 PM
/dev entries lord-fu *BSD 2 05-27-2005 09:52 AM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 09:36 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 09:20 PM
/dev entries NSKL Linux - Hardware 7 01-08-2003 04:48 PM


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