How can I fix my fstab entry for automatic drive mounting?

0
0
Asked By TechyNerd17 On

I'm trying to set up a drive to mount at boot on Mint 22.1. I've used the disks app to configure it for automatic mounting, but it still requires me to click on it for it to mount. I attempted to manually edit fstab for this purpose, but I'm running into issues on boot. I receive an error that gives me the option to continue or go to a maintenance command line. However, when I comment out my fstab entry, everything works fine again. Here's the line I added: UUID=22f01fdf-5175-466c-98f0-9939027cac5d /media/nox/Storage ext4 default 0 2. I've consulted the fstab man page but can't seem to locate the problem. What might I have missed?

3 Answers

Answered By DiskDude88 On

Using gnome-disk-utility could simplify things for you—it helps avoid these manual edits.

TechyNerd17 -

That could help, but I wanted to figure out why fstab wasn’t working. The answer turned out to be pretty simple—just a typo!

Answered By LinuxLlama22 On

The issue is likely that 'default' should actually be 'defaults'. If that 's' is missing, it could lead to the errors you're experiencing. Just look at your fstab entry again and make that change! I've had some entries created by gnome-disks that work like this: UUID={UUID} /path/to/mount auto nosuid,nodev,nofail,x-gvfs-show 0 0, and they mount without any issues after a reboot or when I run `sudo mount -a`.

TechyNerd17 -

Exactly correct! I figured it out and came back to update, but I appreciate your help!

Answered By CuriousCat99 On

Definitely check if 'default' should be 'defaults'. The ArchWiki highlights that point. If you want to dive deeper, there's a discussion here: [link](https://unix.stackexchange.com/questions/191405/do-you-need-to-specify-the-defaults-option-in-fstab).

LinuxLlama22 -

Yep, that was the problem.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.