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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-09-2014, 08:59 AM
|
#1
|
Member
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 103
Rep:
|
fstab entries with none
Hi, I have /etc/fstab:
/dev/ram0 / ext2 defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts defaults 0 0
What means none ? I expected to be the device name, why is none ?
|
|
|
01-09-2014, 09:21 AM
|
#2
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
they're all directories containing a virtual(pseudo)-filesystem, they don't use disk space and use a little bit of ram, so, they don't need to have a device associated, another way is 'proc /proc proc defaults 0 0' but it's the same
Last edited by gengisdave; 01-09-2014 at 09:32 AM.
|
|
1 members found this post helpful.
|
01-09-2014, 10:48 AM
|
#3
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
The "none" is just a place holder required for the syntax of the fstab file.
For filesystems that don't use a device, you can actually put anything in there you want. "none" satisfies the syntax, and if at some time in the future change the fstab file such that a real device is needed, it will immediately report the error, and identify that "device doesn't exist". Putting anything else in there could just cause confusion.
|
|
1 members found this post helpful.
|
01-09-2014, 11:35 AM
|
#4
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,797
|
Quote:
Originally Posted by jpollard
Putting anything else in there could just cause confusion.
|
It is frequently recommended to put something meaningful to humans in that field, lest you one day get some message referring to "none".
|
|
|
01-09-2014, 12:45 PM
|
#5
|
Member
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 103
Original Poster
Rep:
|
This means that when no real device name is declared than the "device" would be considered the RAM ?
|
|
|
01-09-2014, 01:55 PM
|
#6
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Quote:
Originally Posted by adrhc
This means that when no real device name is declared than the "device" would be considered the RAM ?
|
Not exactly... it is both yes and no. The filesystem used MAY be ram based... Now system tables are represented as a filesystem (like the /proc, /sys filesystems), and that is in memory, but is not anything like a device or even ramdisk. But like some FUSE filesystems, it just means there is no dedicated device. FUSE interprets file access (via the fstab) into whatever the user definition is. If there is a device assocated with it, it would be specified as configuration to the FUSE implementation, and that can be a database system (MySQLfs is one) or some other representation.
|
|
|
01-10-2014, 05:59 AM
|
#7
|
Member
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 103
Original Poster
Rep:
|
I read about /proc from http://www.tldp.org/LDP/Linux-Filesy...tml/index.html and now for /proc things make sense: it's just the configurable path for the OS where "proc" information should be put.
Modern Linux distributions include a /sys directory as a virtual filesystem (sysfs, comparable to /proc, which is a procfs), which stores and allows modification of the devices connected to the system, whereas many traditional UNIX and Unix-like operating systems use /sys as a symbolic link to the kernel source tree. -> now I understand /sys
/dev/pts -> http://man7.org/linux/man-pages/man4/ptmx.4.html
The summary is that (for a begginer only):
the paths /proc, /sys, /dev/pts are not mount points for something existing on a HDD but locations where the OS is putting runtime information. That's why they have none - because is the OS's job to know who is the "device" where to store these runtime information.
Last edited by adrhc; 01-10-2014 at 06:02 AM.
|
|
|
All times are GMT -5. The time now is 01:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|