Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
devfsd.conf
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
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Fri Apr 26, 2002 3:25 pm    Post subject: devfsd.conf Reply with quote

Altering my /etc/devfsd.conf does not work! After rebooting there are no /dev/dvd, /dev/cdrom or /dev/cdrw devices though I uncommented the following lines:

Code:

# Create /dev/cdrom for the first cdrom drive
LOOKUP      ^cdrom$          CFUNCTION GLOBAL mksymlink cdroms/cdrom1 cdrom
REGISTER    ^cdrom/cdrom1$   CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER  ^cdrom/cdrom1$   CFUNCTION GLOBAL unlink cdrom


# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom1' to suite your setup)
LOOKUP      ^dvd$           CFUNCTION GLOBAL mksymlink cdroms/cdrom0 dvd
REGISTER    ^cdrom/cdrom0$  CFUNCTION GLOBAL mksymlink $devname dvd
UNREGISTER  ^cdrom/cdrom0$  CFUNCTION GLOBAL unlink dvd

# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP      ^cdrw$          CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER    ^sr0$           CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER  ^sr0$           CFUNCTION GLOBAL unlink cdrw


It's not that tragically because I can mount my drives through /dev/cdroms/cdrom[0,1] but It would be nice to have these links.
Back to top
View user's profile Send private message
stevil
n00b
n00b


Joined: 22 Apr 2002
Posts: 12
Location: Minneapolis, MN

PostPosted: Fri Apr 26, 2002 3:59 pm    Post subject: Reply with quote

It looks like you just uncommented the various example lines, unless you have 1 cdrom drive, 1 DVD drive and a SCSI cd burner :).

I only have one device (cd/dvd/cdr combo) on /dev/hdc and here's what mine looks like.

# Create /dev/cdrom for the first cdrom drive
LOOKUP ^cdrom$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
REGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL unlink cdrom


# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom1' to suite your setup)
LOOKUP ^dvd$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 dvd
REGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL mksymlink $devname dvd
UNREGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL unlink dvd

# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
#LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink sr0 cdrw
#REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrw
#UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrw
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Fri Apr 26, 2002 4:24 pm    Post subject: Reply with quote

Actually I have an IDE burner and an IDE DVD ... I'm not that stupid ... ;)
I use SCSI emulation for the burner so /dev/sr0 is correct but I also use /dev/cdroms/cdrom1 to mount CDs with my burner ...
Back to top
View user's profile Send private message
celtic_hack
n00b
n00b


Joined: 19 Apr 2002
Posts: 20
Location: Liberty, MO

PostPosted: Sat Apr 27, 2002 8:43 pm    Post subject: Re: devfsd.conf Reply with quote

sven wrote:
Altering my /etc/devfsd.conf does not work! After rebooting there are no /dev/dvd, /dev/cdrom or /dev/cdrw devices though I uncommented the following lines:

Code:

...
# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP      ^cdrw$          CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER    ^sr0$           CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER  ^sr0$           CFUNCTION GLOBAL unlink cdrw



On my system my cdrw is on sg0 not sr0. I have an IDE interface CDRW though, so don't know if this helps.
_________________
Celt

One OS to rule them all ...
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Sat Apr 27, 2002 8:47 pm    Post subject: Re: devfsd.conf Reply with quote

sven wrote:
Altering my /etc/devfsd.conf does not work! After rebooting there are no /dev/dvd, /dev/cdrom or /dev/cdrw devices though I uncommented the following lines...


You don't have to reboot to make devfsd re-read the its config file. Simply run:
Code:
killall -HUP devfsd


That should make testing your new config file a little quicker. :)
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Sat Apr 27, 2002 9:27 pm    Post subject: Reply with quote

Thank you. Just found out about this one, too ;)
Btw, now there are /dev/cdrw and /dev/dvd ... Maybe I was just too blind to see them? :oops:
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