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.
The different install routines have been designed to use different options in the "mount options" sections of the file.
This link may help some: http://www.linuxstall.com/fstab/ (My favorite fstab reference link at Tuxfiles.org seems to be off-line at the moment.)
The Debian excerpt ("errors=remount-ro"), if I understand it correctly, is saying that, if there are errors on remounting the partition, to mount it read only. My root partition has the same option on my Debian box. The citation from the Debian wiki is could be considered a "bare bones" fstab line with basic options.
man mount can provide a better description of the various mount options than I can.
Nothing leaps out at me, but I am not an fstab expert. I've modified my own fstab, but I've never used that combination of options.
All I can say is that, if it doesn't work, change it back. Since it's your root partition, caution is indicated; an error means you will need to boot to a Live CD of something, mount the drive, and edit /etc/fstab, then reboot to the HDD.
In case it helps, here's the fstab from my Debian machine. The lines that are remarked out with a # are lines that I edited to replace with UUIDs; I left them in there in case it helps. (I remark out and keep the old lines so, if I get it wrong, it's easy to revert back.)
I added noatime to reduce unnecessary disk access and defaults since both debian and arch wiki suggest it. But I suspect 'defaults' is not needed here since it will be assumed for other options.
I have not added other partitions but they are seen in filemanager and get mounted on clicking. But then root password needs to be entered.
If you edit fstab as root and enter the other partitions "rw,auto,user," they will be mounted automatically and user will have rights to read from and write to them.
Back in the olden days, before Linux got so good at discovering removable devices, I entered my MP3 player in fstab and gave it the "noauto" flag. Worked like a charm.
It really depends on what are the "defaults" which can vary between distros. But functionally the same IMO. The noatime does one less thing in terms of writes. Bad for auditing, good for limiting number of writes. And common for things like SSDs or USB sticks. But the "defaults" might include noatime, so hard to tell without further investigation.
It really depends on what are the "defaults" which can vary between distros.
I am using Debian-wheezy(stable). What are the defaults there?
In one link ( http://www.debianhelp.co.uk/fstab.htm ) it is equivalent to: rw,suid,dev,exec,auto,nouser,async.
Also, is 'proc' line really needed:
My Debian system (started as Lenny and upgraded through Squeeze and Wheezy and now Sid) was installed with the same defaults you quoted in your first post; I think it's safe to assume that those are Debian's defaults.
Different distros have different philosophies that reflect the philosophies of their maintainers. The most common variances are in the details of an install, the structure of /etc, and the package management. They may use different init routines: For example, Slackware uses BSD style scripts; Debian uses SystemV; others use SystemD. Ubuntu has its own thing called Upstart (Ubuntu has many of its own things).
The differences are one of the things that makes distro-hopping fun. They are also one of the reasons partisans of a particular distro can be so, well, partisan. Slackers, for example, love the simplicity of the BSD style init routine and the absence of a display manager for logging in--why start a GUI if you don't need one for what you are going to do?
Sometimes, you face choosing amongst equally good alternatives; every one of them has good pros and cons. Any choice you make will be valid, so you make your choice and go. And, to quote Satchel Paige, you don't look back.
In my Debian-stable system it is shown in file manager but does not automount. It mounts only on clicking on it but 'autofs' package is not installed. It must be doing by some other mechanism.
When you click on it in the file manager in that way, the system mounts it. It should then stay mounted until you right-click on it and select "Safely Remove" or whatever message your file manager displays.
With externals that I intend to keep connected to a particular computer (basically as extra storage devices), I put them in fstab via UUID and set them to automount, like this one:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.