Unix Technical Forum

cdrom drive device name

This is a discussion on cdrom drive device name within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> on my slack12.0 box all links that node to the CD/DVD drive are ending with "1". $ls /dev/cd* /dev/cdr1 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:47 AM
heavytull
 
Posts: n/a
Default cdrom drive device name

on my slack12.0 box all links that node to the CD/DVD drive are ending
with "1".

$ls /dev/cd*
/dev/cdr1 /dev/cdrom1 /dev/cdrw1 /dev/cdwriter1

$ls /dev/dvd*
/dev/dvd1 /dev/dvdrw1 /dev/dvdwriter1

I don't know why they're all ending with "1"!
there is some time ago i symlinked all these nodes with name without that
"1" but at the next boot they all won't stay.

i don't want to add a script to symlink at boot.
i want to know why things have gone this way.

it's quite annoying because when i want to watch a dvd or any video cd i'm
forced to specify the device name to mplayer otherwise mplayer won't find
the device.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:47 AM
Helmut Hullen
 
Posts: n/a
Default Re: cdrom drive device name

Hallo, heavytull,

Du meintest am 10.02.08:

> on my slack12.0 box all links that node to the CD/DVD drive are
> ending with "1".


> $ls /dev/cd*
> /dev/cdr1 /dev/cdrom1 /dev/cdrw1 /dev/cdwriter1


> i don't want to add a script to symlink at boot.
> i want to know why things have gone this way.


If you use "udev" then define these devices in "/lib/udev/devices". When
"udev" starts working it first copies these entries to "/dev".

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:47 AM
ljb
 
Posts: n/a
Default Re: cdrom drive device name

heavytull@hotmail.com wrote:
> on my slack12.0 box all links that node to the CD/DVD drive are ending
> with "1".
>
> $ls /dev/cd*
> /dev/cdr1 /dev/cdrom1 /dev/cdrw1 /dev/cdwriter1
>
> $ls /dev/dvd*
> /dev/dvd1 /dev/dvdrw1 /dev/dvdwriter1
>
> I don't know why they're all ending with "1"!
> there is some time ago i symlinked all these nodes with name without that
> "1" but at the next boot they all won't stay.
>
> i don't want to add a script to symlink at boot.
> i want to know why things have gone this way.
>
> it's quite annoying because when i want to watch a dvd or any video cd i'm
> forced to specify the device name to mplayer otherwise mplayer won't find
> the device.


You might have to remove /etc/udev/rules.d/75-optical-device.rules and
reboot. That file remembers CD drives (even if they are gone), and new
devices get the next number. (For example, I removed an IDE CD and
installed a SATA CD and it became /dev/cdrom1 even though cdrom and cdrom0
were gone.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com