I understand that mount -a achieves the same result as auto, but what remains unclear is when is mount -a used? As far as I know, auto is generally specified in the /etc/fstab file.
|
|
||||
|
|
|
It doesn't "achieve the same result as" |
|||||||||||
|
|
The discussion seems a little confusing to me, and I'm not sure why, unless there's something I'm missing. I've always used "mount -a" to test-run changes to my fstab file to make sure it works correctly without the need to keep rebooting. A handy feature for testing. I'm pretty sure it does the same thing that is done at startup. The "auto/noauto" option has nothing to do with "mount -a" directly. I think auto is the default, so it doesn't even need to be used. But it simply means that the device will be mounted at startup (and, when you type "mount -a", since it's equivalent). I personally have never needed to use the "noauto" option, but I believe it's used when you want to specify mount options for a device, but you don't want to actually mount it, unless it's done explicitly by the user with the mount command. |
|||||||
|