Using "none" in /etc/fstab
We can use "none" for mount point (2-nd) field when
we define swap mounting in /etc/stab. Just wondering what use cases are applicable to using "none" on the first field in /etc/fstab. Typically, the first field is for devices, e.g. /dev/vdb1. |
The device won't mount because device "/dev/none" doesn't exist.
The first field must point to a device that the computer believes exists. If you want to mount that device to /etc/media/none, that's fine, in that /etc/media/none is a mountpoint, it's not a nothing (i. e., it's not a none, it's a thing that happens to be named "none"). You could also call it /etc/media/fred or /etc/media/ralph, for all fstab cares. |
Quote:
Swap does not mount to anything. |
Quote:
Quote:
There are no normal use cases for none in the first field. "none" in the first field is not legal (unless of course you have an actual block device recognized by that name). |
Quote:
|
Some fstab documentation pages are out of date.
Mine has Code:
The first field (fs_spec). |
Quote:
How do we use tmpfs? Thank you. |
Quote:
you're welcome. |
Quote:
But how is it being used? How to do processes use it or make them aware of tmpfs so as to use it? |
tmpfs is using main memory as a filesystem for temporary use.
it is also used for holding the management information for shared memory. Some distributions (fedora for one) use it to hold user credentials, temporary/dynamic mounts for portable media (CD/DVD/memory/USB memory sticks). Most of the time "aware of tmpfs so as to use it" is transparent. For other uses, that depends on the user. GUI users with the usual file display will get an added entry for the mount - and again is transparent. Otherwise, it is up to the administrator. |
Quote:
Code:
$ df /tmp |
Thank you all.
|
All times are GMT -5. The time now is 03:30 PM. |