View previous topic :: View next topic |
Author |
Message |
AdNauseam n00b
Joined: 27 Feb 2004 Posts: 3
|
Posted: Fri Feb 27, 2004 5:11 am Post subject: I don't want to use devfs |
|
|
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 |
|
|
Catach Apprentice
Joined: 06 Nov 2003 Posts: 268 Location: Australia
|
Posted: Fri Feb 27, 2004 5:49 am Post subject: |
|
|
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 |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Fri Feb 27, 2004 10:34 am Post subject: |
|
|
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 |
|
|
infirit l33t
Joined: 11 Jan 2003 Posts: 778 Location: Hoofddorp / The Netherlands
|
Posted: Fri Feb 27, 2004 12:12 pm Post subject: |
|
|
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 |
|
|
AdNauseam n00b
Joined: 27 Feb 2004 Posts: 3
|
Posted: Fri Feb 27, 2004 5:22 pm Post subject: |
|
|
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 |
|
|
Useful Idiot Guru
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Fri Feb 27, 2004 7:09 pm Post subject: |
|
|
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 |
|
|
CMI Apprentice
Joined: 19 Aug 2003 Posts: 205
|
Posted: Fri Feb 27, 2004 7:48 pm Post subject: |
|
|
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 |
|
|
AdNauseam n00b
Joined: 27 Feb 2004 Posts: 3
|
Posted: Sat Feb 28, 2004 12:40 am Post subject: |
|
|
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. |
|
Back to top |
|
|
termee Tux's lil' helper
Joined: 25 Jan 2004 Posts: 76
|
Posted: Sat Feb 28, 2004 3:05 pm Post subject: |
|
|
Is there any advantage to not using devfs? |
|
Back to top |
|
|
CMI Apprentice
Joined: 19 Aug 2003 Posts: 205
|
Posted: Sat Feb 28, 2004 7:07 pm Post subject: |
|
|
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 |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Sat Feb 28, 2004 10:30 pm Post subject: |
|
|
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 |
|
|
CMI Apprentice
Joined: 19 Aug 2003 Posts: 205
|
Posted: Sun Feb 29, 2004 2:54 am Post subject: |
|
|
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 |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Sun Feb 29, 2004 4:48 am Post subject: |
|
|
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 |
|
|
CMI Apprentice
Joined: 19 Aug 2003 Posts: 205
|
Posted: Sun Feb 29, 2004 5:18 am Post subject: |
|
|
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 |
|
|
floam Veteran
Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Sun Feb 29, 2004 8:34 am Post subject: |
|
|
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 |
|
|
termee Tux's lil' helper
Joined: 25 Jan 2004 Posts: 76
|
Posted: Sun Feb 29, 2004 2:57 pm Post subject: |
|
|
Does it make sense to have devfs on a router with a monolithic kernel? |
|
Back to top |
|
|
|