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 ...
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 ...
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 ...
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/...
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-...
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 ...
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 ...
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.
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 ...
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 ...
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-...
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 ...
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 ...
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-...
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/...
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 ...
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 – ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
2
votes
attempting to remove discard mount option
Remount with:
sudo mount -oremount,nodiscard /system
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
fstab × 253mount × 152
linux × 135
ubuntu × 49
debian × 20
boot × 19
permissions × 17
cifs × 17
partitioning × 15
ntfs × 12
samba × 12
nfs × 11
automount × 11
hard-drive × 10
virtualbox × 9
filesystems × 9
network-shares × 9
arch-linux × 9
sshfs × 9
centos × 8
fedora × 6
linux-mint × 6
systemd × 6
macos × 5
ssh × 5