Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Rep:
Testing fstab without restart?
I need to do some changes to fstab,so i wondering is it possible to test it does it work without restating?Because if add something wrong then linux wont start ssh and i wont be able to access server remotely.What i want to do,is to mount /dev/shm with noexec,nosuid instead none.
You can try to mount, if there is any typo error or wrong directory, it will give you message at standard out.
mount -a
mount: mount point /boots does not exist
mount: mount point swap does not exist
My advice, don't do a mount -a unless you just have to, that's just bad practice if it's just one mount point you need to deal with. Read the man page to learn what the -a does and why you think it might not be a good idea to run on an existing running system.
If you want to test new mount options, don't even edit fstab until you know they work properly.
Just do something like:
mount -o rw,nosuid,noexec,remount /dev/shm
Test, if all seems good, then proceed with editing your fstab and go from that point on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.