Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/dvd missing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 88

PostPosted: Mon Feb 16, 2015 8:36 pm    Post subject: /dev/dvd missing Reply with quote

I found a simmilar thread on this issue but and I corected a mistake I made in my kernel's config but my dvd drive is still not showing up as /dev/dvd.
The config is located at: http://dpaste.com/3PENA37
lspci output is located here: http://dpaste.com/25Z2TJ9
Thanks
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Feb 16, 2015 8:40 pm    Post subject: Reply with quote

udev creates the /dev/dvd symlink. Do you have it running correctly?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Feb 17, 2015 5:09 am    Post subject: Reply with quote

Ant P. wrote:
udev creates the /dev/dvd symlink. Do you have it running correctly?


...actually, udev has stopped doing that quite awhile ago.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 88

PostPosted: Wed Feb 18, 2015 11:54 pm    Post subject: Reply with quote

I'm using eudev version 1.10-r2
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Feb 18, 2015 11:58 pm    Post subject: Reply with quote

There is a number of ways to create it for you automatically, but do you really need it?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 88

PostPosted: Mon Feb 23, 2015 12:02 am    Post subject: Reply with quote

Jaglover wrote:
There is a number of ways to create it for you automatically, but do you really need it?

I think so.
How do I create it, just symlink?
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Wed Feb 25, 2015 10:40 am    Post subject: Reply with quote

Here how I do :
Code:

$ cat /etc/udev/rules.d/99-cdrom_id.rules

# udevadm info --query=property --name=/dev/sr0
# udevadm control --reload-rules

# Optiarc_DVD_RW_AD-5200A
KERNEL=="sr0", ENV{ID_MODEL}=="Optiarc_DVD_RW_AD-5200A", SYMLINK+="cdrom2 cdrw2 dvd2 dvdrw2 dvd_noir"

You run first udevadm command to get the correct ID_MODEL value.
Second command to reload rules, and probably create the symlinks.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Wed Feb 25, 2015 9:32 pm    Post subject: Reply with quote

Due to this thread I looked into my /etc/udev/rules.dir and into /dev. I found only ONE symlink (cdrom). The content of my "70-persistent-cd.rules" is:

# This file was automatically generated by the /lib64/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.

# DVD-ROM_GDR8164B (pci-0000:03:00.1-scsi-0:0:0:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
# DVDRAM_GSA-H10N (pci-0000:03:00.1-scsi-0:0:1:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:1:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:1:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:1:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:1:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"


So, for me it looks like udev reads only the first line ... is it a bug or a feauture ... ?


(I have no eudev; my udev version is 216 (stable tree))
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Thu Feb 26, 2015 3:09 pm    Post subject: Reply with quote

pietinger wrote:

I found only ONE symlink (cdrom)

So, for me it looks like udev reads only the first line ... is it a bug or a feauture ... ?

Your file seems really old, I think you could remove it since these rules are ignored.
The /dev/cdrom symlink you found is created by an udev rule into /lib/udev/rules.d/60-cdrom_id.rules.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Thu Feb 26, 2015 8:28 pm    Post subject: Reply with quote

Thanks a lot.

netfab wrote:
Your file seems really old, I think you could remove it since these rules are ignored.
The /dev/cdrom symlink you found is created by an udev rule into /lib/udev/rules.d/60-cdrom_id.rules.


Your guess was right - but I have no 60-x-file (first installation of this pc was 2006). I have only these:

-rw-r--r-- 1 root root 972 10. Nov 2009 70-persistent-cd.rules
-rw-r--r-- 1 root root 421 8. Dez 2012 70-persistent-net.rules
-rw-r--r-- 1 root root 1820 8. Feb 2013 80-net-name-slot.rules
-rw-r--r-- 1 root root 1820 10. Sep 12:47 80-net-setup-link.rules

I will make no change - the system is running stable.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum