38 votes
Accepted

What is the noauto mount flag for?

A noauto entry in fstab is one which, for different reasons, you do not want to have mounted automatically, at boot and with the mount -a command. It is mounted by specifying the device or the mount ...
MariusMatutiae's user avatar
24 votes
Accepted

Processing fstab with mount -a failed

From the comments, it sounded like this may be due to a bug of some sort in the Preview version of WSL installed from the Store. Ultimately (also from the comments), the problem turned out to be that ...
NotTheDr01ds's user avatar
  • 22.1k
16 votes
Accepted

Mount specific fstab entry

(Thanks to Tan for the answer) umount /Videos and mount /Videos will work, and the latter will use the source, type and options in //[email protected]/Videos$ /Videos smbfs nodev,nosuid,auto that is ...
Sridhar Sarnobat's user avatar
15 votes
Accepted

Why mount a folder to a folder in fstab?

Yes you are right. Fstab record /home/ubuntu/stuff /home/bob/things auto defaults,nofail,nobootwait,bind 0 2 is analogous to the command issued from your shell: mount --bind /home/ubuntu/stuff /home/...
Oleg Bolden's user avatar
  • 1,717
12 votes

Using noexec option in fstab

There's a major misunderstanding here. Let's make these things clear. First of all, the limitation you refer to, as it is stated, is not true: However, when a script (a text file that begins with she-...
Kamil Maciorowski's user avatar
9 votes
Accepted

How to delete system apps in macOS Catalina?

To do this you must temporarily disable some of the system's best protections against malware, so to play it safe, first make sure your machine is free of malware, disconnected from any network, and ...
Spiff's user avatar
  • 105k
7 votes

Automounting USB drives on a headless systemd linux box

it is not clear which is the current 'officially' supported approach. Officially supported by whom? If e.g. GNOME includes automount functionality based on udisks, you can be sure it's officially ...
u1686_grawity's user avatar
7 votes
Accepted

mount: /oldssd: special device /dev/sda2/ does not exist (a path prefix is not a directory)

Remove that trailing slash after sda2 in fstab. So it says /dev/sda2 instead of /dev/sda2/ sda2 isn't a directory, but a special file. It's file type is block-device.
svin83's user avatar
  • 689
6 votes

Disk mounted as read-only, but defined as read-write in fstab

Okay, I finally found how to make it work. The problem was because of Windows 10, which left some Windows cache data on the partition. To solve it, I booted on windows, I disabled the fast start ...
BDeliers's user avatar
  • 123
4 votes

What does "sw" option mean in /etc/fstab?

This column is described in Linux's man fstab as: The fourth field, (fs_mntops), describes the mount options associated with the filesystem. It is formatted as a comma separated list of options. It ...
kenorb's user avatar
  • 25.4k
4 votes
Accepted

What does "sw" option mean in /etc/fstab?

According to the link below, the 'sw' option indicates that the swap partition is to be activated with 'swapon -a' command: /dev/hda6 none swap sw 0 0 http://www.linuxquestions.org/questions/linux-...
Oleg Bolden's user avatar
  • 1,717
4 votes

Modify fstab entry so all users can Read and Write to an EXT4 Volume

I want to capture everything about this in a single answer, so here it is: The accepted answer is the correct answer: chmod 777 /media/foo. While it might seem inelegant, because ideally we would ...
John Red's user avatar
  • 163
4 votes
Accepted

swapoff failed: Invalid argument

swapoff tells you swapoff failed: Invalid argument when the device is already not being used for swap. Example: deltik@node51 [~]$ sudo swapoff /dev/zero swapoff: /dev/zero: swapoff failed: Invalid ...
Deltik's user avatar
  • 19.6k
4 votes

Reduce timeout value for "A start job is running for dev-disk-by" linux

The answer, provided by user grawity and paraphrased here, is: For each entry in /etc/fstab, decide whether the disk device is one that is not always present at boot time, and add x-systemd.device-...
reikred's user avatar
  • 522
4 votes

Is relatime better than noatime on fstab for SSD?

noatime will cause even less disk writes than relatime but whether that causes a problem depends on if one of your applications relies on those access times. See also https://unix.stackexchange.com/...
Konrad Höffner's user avatar
4 votes

Automounting USB drives on a headless systemd linux box

Entries in /etc/fstab should still be honored on a systemd-based system. A .mount unit can be used instead, and should be considered equivalent to an entry in fstab. A .automount unit can be used if ...
Ignacio Vazquez-Abrams's user avatar
4 votes

How may I mount an external drive in fstab and give owbership to multiple users?

While NTFS supports permissions, the mapping from Windows-style to POSIX-style is troublesome and disabled by default in ntfs-3g. To activate it you should: If the disk is shared with Windows – ...
u1686_grawity's user avatar
4 votes
Accepted

How best to mount a drive in WSL as a shared drive?

I'm not sure I quite understand your use-case for remounting at / or using shared mounts, but I'd really like to. I'm going to answer with my current understanding of your question, but I would love ...
NotTheDr01ds's user avatar
  • 22.1k
3 votes
Accepted

Swap partition on USB Stick

Yes, if you have any "optional" entries, you must mark them with the nofail option. That way the boot process will not wait for them to show up. (With systemd, nofail entries will still be activated ...
u1686_grawity's user avatar
3 votes

Disk mounted as read-only, but defined as read-write in fstab

Also know that with windows 10 you have to be careful because the default shutdown puts the ntfs disks to sleep or hibernation rather than the traditional state of being flushed & unmounted or ...
ron's user avatar
  • 748
3 votes
Accepted

debian machine mounting filesystem read-only

/ is not initially mounted via fstab because to get to /etc/fstab you need to have / mounted. It is mounted via kernel root= option. The ro parameter is probably in your bootloader configuration (like ...
Kamil Maciorowski's user avatar
3 votes

Reduce timeout value for "A start job is running for dev-disk-by" linux

Use the nofail fstab option for those disks. Alternatively, you could specify the x-systemd.device-timeout=10s option, but what's the point? systemd already supports hotplugging without the need for ...
u1686_grawity's user avatar
3 votes
Accepted

mount ignores umask option in /etc/fstab for NTFS drive

umask does not directly specify the mode; it specifies the mask applied to the base mode, telling it which bits to clear (but not which ones to set). Perhaps unintuitively, it is also inverted: a 0 ...
u1686_grawity's user avatar
2 votes

How to skip remote partition mount errors and continue booting?

Mount the file system with the nofail option. From mount(8): nofail Do not report errors for this device if it does not exist.
flaviovs's user avatar
  • 499
2 votes

Why Linux /etc/fstab UUIDs are case sensitive?

Kind of implied by @sparkie's answer, and part of what's going on in the original question, is that the UUIDs for FAT partitions (seem to?) always need to be uppercase (e.g. UUID=125C-A3EB) whereas ...
MikeBeaton's user avatar
2 votes
Accepted

VirtualBox Guest Shared Folder Ignoring umask

If you don't immediately understand what @sapphirecat meant... You can change /etc/fstab to something like this: sharedfolder /var/sharedfolder vboxsf rw,exec,uid=root,gid=mods,dmode=775,fmode=664 0 ...
Benjamin Haas's user avatar
2 votes

VirtualBox Guest Shared Folder Ignoring umask

It appears that the umask, fmask, and dmask options are applied to the default VirtualBox mode. (I'm using an OS X host, and my folders mount with drwx------ permissions, i.e., 700.) While this can ...
sapphirecat's user avatar
2 votes

attempting to remove discard mount option

Remount with: sudo mount -oremount,nodiscard /system
Tom Hale's user avatar
  • 2,430
2 votes

SSHFS mounting with FSTAB during boot (Linux / Debian)

The appropriate line in fstab would look like [email protected]:/RemoteDirectory /mnt/localdirectory fuse.sshfs nonempty,allow_other 0 2 As you indicated, prior to using this you need ...
davidgo's user avatar
  • 70.8k
2 votes

fstab cifs share not mounting on reboot

You must add those two options: auto (as stated by @davidgo) for this mount point to be loaded upon startup _netdev for boot script to wait network before loading it You can also add few more speed ...
A. Loiseau's user avatar
  • 1,258

Only top scored, non community-wiki answers of a minimum length are eligible