LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2006, 03:59 PM   #1
8-bitDesigner
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
Gentoo: Question about /dev/ directory layout


Okay, so I'm pretty new to Linux, and using Gentoo because I got fed up with the lack of PPC binaries, and decided that Portage was a pretty cool solution.

Anyways, I've used Ubuntu and RHEL previously and before, the /dev/ directory has usually been pretty tidy; consisting of a handful of devices. My /dev/ directory on a fresh install of Gentoo 2005.1 has some 100 directories by the look of it, many for devices I don't have and haven't compiled support for (ie: radio1, radio3, radioab, radioetc...) and a few dozen PTYs.

Any idea why this is happening? I'm assuming it has something to do with udev, although I'll admit that I know bugger-all about udev or devfs or what they even do.

Any help is well appreciated.
Cheers
 
Old 01-17-2006, 05:33 PM   #2
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: 78
I wouldn't worry too much. None of these devices take up any disk space, and it is generally nicer to have the device there if you need it rather than sorting out how to create it if it isn't there. BTW udev and devfs cannot be used together. So which are you using? If it is a new install then probably udev, as devfs is deprecated.

If you are still concerned then I suggest you have a gander at the gentoo udev guide (in the documentation listing page) or read about udev on the wiki. Especially pay attention on using a strait udev system rather than using the device tarball (which sort of negates the purpose of udev...)

Last edited by bulliver; 01-17-2006 at 05:34 PM.
 
Old 01-17-2006, 07:29 PM   #3
8-bitDesigner
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Aye, I'm on udev (new install, plus specifying "nodevfs udev" as kernel arguments), and while I'm not worried about disk space, I did like that Ubuntu and RHEL made it easy to see if a device was connected through a quick glance at /dev/, but while trying to truobleshoot a SATA drive (whole other issue there), /dev/ is reporting four serial devices, but only one of them is a block and the other three are... console devices? Bit of a pain.

I've skimmed the udev guide at lunch, but once I get off work I'm going to give it a thorough reading. If Gentoo hasn't taught me anything else, it's to read the bloody manual. Twice.

Thanks for the help though!

Last edited by 8-bitDesigner; 01-17-2006 at 09:24 PM.
 
Old 01-17-2006, 10:13 PM   #4
8-bitDesigner
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Ah perfect! The RC_TARBALL option was exactly what I was looking for. I'd missed that the first time through. Now, I'm recompiling the kernel to limit PTY devices to 16 (do I actually need these?) and seeing if I can similarly limit TTY devices.

Cheers
 
Old 01-18-2006, 07:07 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: 78
Quote:
Now, I'm recompiling the kernel to limit PTY devices to 16 (do I actually need these?)
PTY's are virtual consoles. IE: you have X started up, and you open a session in Eterm, Aterm or Konsole. Each one of those sessions requires a pty.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/mouse Gone after Keyboard layout change in Gentoo worldgnat Linux - Hardware 5 01-20-2006 03:46 PM
Please help. Gentoo: Emerge gentoo-dev-sources fails sendas4 Linux - Newbie 3 07-19-2004 11:44 AM
Apache directory index layout lupus9537 Linux - Software 1 04-26-2004 03:23 PM
Directory/Folder Layout TJandE Linux - Newbie 4 03-30-2004 10:02 PM
gentoo install, change keyboard layout mvbv-linux Linux - Distributions 2 12-11-2003 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration