LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Default FC5 /dev entries for dvd devices? (https://www.linuxquestions.org/questions/fedora-35/default-fc5-dev-entries-for-dvd-devices-435832/)

donv2 04-16-2006 11:10 PM

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!

BobNutfield 04-17-2006 01:36 PM

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

BobNutfield 04-17-2006 01:42 PM

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

donv2 04-17-2006 11:20 PM

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.

Hitboxx 04-18-2006 01:15 AM

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

BobNutfield 04-18-2006 12:39 PM

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

Hitboxx 04-19-2006 05:48 AM

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


BobNutfield 04-19-2006 06:06 AM

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

cdhgee 04-19-2006 08:23 AM

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


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