Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I don't want to use devfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
AdNauseam
n00b
n00b


Joined: 27 Feb 2004
Posts: 3

PostPosted: Fri Feb 27, 2004 5:11 am    Post subject: I don't want to use devfs Reply with quote

I just installed gentoo with the 2.6.3 kernel. I intenionally disabled devfs support however. When the system booted I got the message saying I needed to enable devfs. The system seems to work fine.

I don't want to run devfs or udev. I'd basically like to know what I have to remove/change to do this.

This has probably been asked before, but I couldn't find it when I searched the forums.
Back to top
View user's profile Send private message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Fri Feb 27, 2004 5:49 am    Post subject: Reply with quote

if you dont want to run devfs or udev, what are you going to use? :)

my advice is to use devfs: it saves a lot of clutter and is reasonably easy to understand, maintaining old symlinks (like /dev/hdc -> /dev/cdroms/cdrom0) to be the old dev filesystem compatible.
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Feb 27, 2004 10:34 am    Post subject: Reply with quote

Why not use udev? Udev is good.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Fri Feb 27, 2004 12:12 pm    Post subject: Reply with quote

Gentoo can work with a static /dev. You have to run mkdevices script when installing gentoo. But i recomend compiling devfs in and passing "devfs=nomount" to the kernel. So when you need devfs you can remove this from the kernel options and you dont have to recompile your kernel.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
AdNauseam
n00b
n00b


Joined: 27 Feb 2004
Posts: 3

PostPosted: Fri Feb 27, 2004 5:22 pm    Post subject: Reply with quote

I'm running a static /dev currently, and it seems to be working fine, but during boot gentoo pauses to tell me that I need devfs support.

I want to remove this warning. I'm assuming there is a reason why it's there so I don't want to just edit the init scripts.
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Fri Feb 27, 2004 7:09 pm    Post subject: Reply with quote

I have this option in my /etc/conf.d/rc:
Code:
RC_DEVFSD_STARTUP="yes"

Try changing it to "no".
_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
CMI
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 205

PostPosted: Fri Feb 27, 2004 7:48 pm    Post subject: Reply with quote

I'm running with a static /dev

I belive I used cp -Rp on my dynamic dev to create a static dev tree, then cleaned it up. (I keep a seperate static dev in /sdev, as if Gentoo decides to run DevFSD it might fudge something up)

Then I edited /sbin/rc to never run DevFSD, and made sure the kernel did not automount it. I don't recall what else I did.
_________________
SECOMGroup - Lineman.net
LightPHPCMS - PhotoGallery
Back to top
View user's profile Send private message
AdNauseam
n00b
n00b


Joined: 27 Feb 2004
Posts: 3

PostPosted: Sat Feb 28, 2004 12:40 am    Post subject: Reply with quote

Thanks for the help. Devfs seems to be totally gone and my system is still stable.

I edited both /etc/conf.d/rc and /sbin/rc so that devfs would not be used. I also unmerged devfsd. I may have edited some other files, but I don't think so.

Now to figure fix framebuffers so I don't have a blank screen when they are used. :P
Back to top
View user's profile Send private message
termee
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2004
Posts: 76

PostPosted: Sat Feb 28, 2004 3:05 pm    Post subject: Reply with quote

Is there any advantage to not using devfs?
Back to top
View user's profile Send private message
CMI
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 205

PostPosted: Sat Feb 28, 2004 7:07 pm    Post subject: Reply with quote

termee wrote:
Is there any advantage to not using devfs?

Devfsd would occationaly "forget" the user and group settings I put oon my devices. I saw no advantage to having it, so I axed it.
_________________
SECOMGroup - Lineman.net
LightPHPCMS - PhotoGallery
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sat Feb 28, 2004 10:30 pm    Post subject: Reply with quote

Okay, but udev fixes that. Why not use udev? If you're upset with devfs I would highly reccomend trying it, I love it.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
CMI
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 205

PostPosted: Sun Feb 29, 2004 2:54 am    Post subject: Reply with quote

floam wrote:
Okay, but udev fixes that. Why not use udev? If you're upset with devfs I would highly reccomend trying it, I love it.


I don't need a dynamic device tree, so why implement sonething that, despite the fact that most people seem to like it, has more complication than I need? Its just another possible point of failure I get no benifit from implementing.

There is nothing more simple than a static /dev.
_________________
SECOMGroup - Lineman.net
LightPHPCMS - PhotoGallery
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 29, 2004 4:48 am    Post subject: Reply with quote

It's not simple to add to. Say you get a new Camera or printer, with udev you'd just plug it in, and within seconds hotplug would recognize it, load a module, and a udev /dev/ node will be made, with your static one, it'd be much more work, and much less simple.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
CMI
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 205

PostPosted: Sun Feb 29, 2004 5:18 am    Post subject: Reply with quote

floam wrote:
It's not simple to add to. Say you get a new Camera or printer, with udev you'd just plug it in, and within seconds hotplug would recognize it, load a module, and a udev /dev/ node will be made, with your static one, it'd be much more work, and much less simple.


Perhaps, but I don't add new hardware often, and don't plan to any time soon. So still, the possible cons outweigh the possible pros. Its really not difficult to to grep /usr/src/linux/Documentation/devices.txt and do a quick mknod.

Plus I hate modules. They suck. I don't use em. Same reason.
_________________
SECOMGroup - Lineman.net
LightPHPCMS - PhotoGallery
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 29, 2004 8:34 am    Post subject: Reply with quote

Wowa, modules don't suck. Monolithic kernels are gross. There are many things that do not belong in a kernel image.
_________________
Think about your breathing.
http://floam.sh.nu
Back to top
View user's profile Send private message
termee
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2004
Posts: 76

PostPosted: Sun Feb 29, 2004 2:57 pm    Post subject: Reply with quote

Does it make sense to have devfs on a router with a monolithic kernel?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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