LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-12-2003, 08:50 AM   #1
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Rep: Reputation: 15
To devfs, or not devfs - advice please


I'd be really grateful for enlightenment on the pros and cons of compiling devfs support into the kernel. I have a one box slackware 9.0 set up with no more than the average number of devices. Being something of a control-freak I'd quite like to be responsible my own /dev directory rather than having it done by a process. Or am I missing the point?

cheers,

James
 
Old 08-12-2003, 09:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
well you do have the same level of control really, youjust go at it from a different angle.... your changes and symlinks are done as entries in /etc/devfsd.conf which you are free to personalise as you wish.

obviously it does add an extra layer of complexity to rely upon , but it is reliable and stable i've found, so i wouldn't worry about that really.

and of course it's an awful lot cleaner, a flat structure typically tries to include all known devices, which is a pretty horrendous place to be... it's nice to only have /dev/hdXY entries for partitions that actually exist...
 
Old 08-12-2003, 09:23 AM   #3
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
OK, makes sense.

cheers
 
Old 08-12-2003, 04:19 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm really interested in this myself - the /dev directory drives me almost as nuts as SysV /etc/rc.whoozits. But I'm really not knowledgeable about the subject. One thing I worry about is that if I add new hardware or, say cdrecord wants to pretend I have a /dev/sr0, that's simplified by the complicated /dev directory because those nodes already exist, or not? I mean, with devfs, I'd have to know what devices to add to /etc/devfsd.conf or my devices wouldn't work?

I read some devfs docs in the kernel source docs when I was compiling a kernel but I didn't really get it. So I've always played it safe and stuck with what I (sort of barely) knew rather than experimenting with what I suspect I'd prefer.
 
Old 08-13-2003, 05:38 AM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
My distro uses devfs by default, so I just got used to it. It isn't really that more difficult to maintain, but I would imagine setting it up on an existing install would be more of a challenge. You would need to:
1. add support for devfs in kernel
2. install devfsd and set it up to run as a daemon
3. rewrite fstab with the new naming conventions
4. have yet another /etc/*.conf file to maintain, this one with especially cryptic syntax

To tell the truth I have noticed neither advantages nor disadvantages, so I would say stick to the status quo unless you have a real itch to try it.

My $0.02

Last edited by bulliver; 08-13-2003 at 05:44 AM.
 
Old 08-13-2003, 05:48 AM   #6
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
thanks for the input everybody. I think I must have accidently compiled devfs into my kernel!? but am going to leave it in now and see how it goes. Seems that my fears of losing control of the system configuration were unfounded

cheers

james.
 
Old 08-13-2003, 05:51 AM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Well, what i'm saying is just having kernel support isn't going to do anything. You need to install the program itself to use devfs.
 
Old 08-13-2003, 05:59 AM   #8
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
Now I get you, & you're right - I thought you just had to compile into the kernel. Doh!

Maybe I will let sleeping dogs lie after all !!!

cheers for that,

james.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know if I'm using devfs or not? brynjarh Linux - General 1 12-11-2004 06:43 PM
What is devfs? actteoh Linux - Hardware 1 05-06-2004 10:45 PM
Do you use DevFS? jspenguin Linux - General 11 11-27-2003 01:23 PM
devfs(d) lackluster Slackware 4 06-04-2002 12:38 PM
what is devfs? doublefailure Linux - General 6 03-28-2002 05:10 PM


All times are GMT -5. The time now is 09:39 AM.

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