LinuxQuestions.org
Help answer threads with 0 replies.
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 12-31-2014, 06:21 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Rep: Reputation: 9
/dev file system


Hi,

I was reading a note that says:

Quote:
The 2.4.x and newer kernels include support for a dedicated
/dev filesystem, which obviates the need for files in a disk-based
/dev directory; so, in some sense, /dev can reside on a separate
filesystem, although not a separate partition.
what are the advantages of having /dev as a separate filesystem over having it as a disk-based partition/directory?

Last edited by sryzdn; 12-31-2014 at 06:25 AM.
 
Old 12-31-2014, 06:59 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
With linux 2.6.x and newer disk based dev is recommended. It is managed by udev or devtmpfs + some. In 2.4 devfs was introduced but it has been deprecated since then. With newer kernels udev or devtmpfs with mdev/hotplug is used.
 
Old 12-31-2014, 07:35 AM   #3
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by veerain View Post
With linux 2.6.x and newer disk based dev is recommended. It is managed by udev or devtmpfs + some. In 2.4 devfs was introduced but it has been deprecated since then. With newer kernels udev or devtmpfs with mdev/hotplug is used.
You want to say that having udev utility has changed the trend and now having /dev as a disk directory is popular?
What is the reason of going and coming with disk-base directory and filesystem?
 
Old 12-31-2014, 05:29 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
A fairly general explanation is at:

http://unix.stackexchange.com/questi...vtmpfs-for-dev

The main use without udev would be for system with a relatively stable set of disks (where nothing really changes). The dev directory tree is supported in memory by the kernel identifying the devices attached. It does not deal with access permissions other than the defaults built in, and that is where udev can enter the picture as a notification agent to other userspace tools.

For an embedded use, /dev is fairly finished as soon as the kernel is running.
 
  


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
Unable to make a file system on /dev/sda praveen.amboji Linux - Newbie 3 12-12-2013 12:02 AM
/dev/vda1 contacins a file system with errors bernhardFlokstra Linux - Server 1 04-09-2013 09:59 AM
/dev/root file system has been corrupted salwox Linux - Server 1 12-08-2009 01:41 PM
mount :could not find file system '/dev/root' AjayCelst Linux - Embedded & Single-board computer 2 07-13-2009 12:34 AM
How to enable ACL in /dev (udev) file system aldo_mozzi Linux - Newbie 1 03-11-2008 10:22 PM

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

All times are GMT -5. The time now is 10:32 AM.

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