in /etc/fstab on an Ubuntu 18.04 system, what are the typical options used when mounting a partition as /home? Just "defaults 0 2", or something else?
I screwed up my /etc/fstab today, but managed to get it back. Something I was messing with basically deleted the /home entry in fstab, but I wasn't aware that it had done that, and the system kept working normally. When I went to reboot the system (for other reasons), the system was hosed and would not even let me log in (not even on the Ctrl+Alt+F3 console). I eventually zero'd in on the fstab problem, recreated the missing line, and I'm now posting from that system.
But I just put in a generic line, with options="defaults", dump=0 and pass=2. I suspect that dump and pass are fine as is, but I bet the options should be some besides the defaults. Can someone look at a vanilla 18.04 system and tell me what the options are for the /home mount? auto_da_alloc?
I did search this forum before posting. There's a thread from 2011 that says just defaults is fine, but that's 8 years old ...
Even longer version with background on the screwup:
I upgraded to 18.04 week ago. I kept my /home partition, copied to a new drive, and installed the OS around that. It had worked great for a week now.
Today I was working on setting up a backup process, and was fiddling around with mounting other drives, including an external drive. The external drive was an existing HDD that I was putting into a brand new SATA3/USB enclosure, so my first step was to just make sure that the new enclosure worked.
The new enclosure/drive showed up in Ubuntu's Disks utility, and I could see the old partitions. I mounted one of the partitions to confirm that worked, and ran a df (or something like that) to confirm it.
That's when I noticed that it had mounted the new partition at /home, apparently replacing the regular /home. Uh oh, the mount operation had followed the label of the partition (and yes I now understand why). A quick look at /home confirm that it was seeing the data on the old drive there. Yikes! I immediately unmounted it, and IT WENT BACK TO THE CORRECT HOME PARTITION. The correct files showed up at /home again. Whew, OK, don't do that again!
The system was working normally again, but what I didn't know was that in doing this, the Disks util had messed up the fstab file. The original /home entry was gone, and now the UUID of the correct partition was associated with another mount point (more detail that I'll skip here). The next time I rebooted, blammo, no /home.
After an hour of googling and thinking about what I had just been doing before it broke, I figured it out and restored it with a generic line in fstab.
Thanks for reading :)