Questions tagged [fstab]

/etc/fstab is the configuration file which contains the information about all available partitions and indicates how and where they are mounted.

An example of a fstab file:

# <file system> <dir>       <type>  <options>       <dump>  <pass>
tmpfs           /tmp        tmpfs   nodev,nosuid    0       0
/dev/sda5       /           ext4    defaults        0       1
/dev/sda6       /home       ext4    defaults        0       2
/dev/sda8       /mnt/dados  auto    defaults        0       2
  • The column <file system> refers to the the device where the file system is. Alternatively, an UUID or label can be specified here.
  • The column <dir> refers to the mount point, which place should the device be mounted.
  • The column <type> refers to the filesystem type; auto can be specified if the filesystem should be detected automatically.
  • The column <options> refers to filesystem-specific options.
  • The column <dump> is used by the utility dump to specify the dumping schedule.
  • The column <pass>, controls the order used by fsck to verify the file systems. Usually the root device is set to 1 and other devices are set to either 2 (fsck after the root file system) or 0 (no fsck).

Options can be found by typing man mount.<file system type>

813 questions
163
votes
7 answers

Can I configure my Linux system for more aggressive file system caching?

I am neither concerned about RAM usage (as I've got enough) nor about losing data in case of an accidental shut-down (as my power is backed, the system is reliable and the data are not critical). But I do a lot of file processing and could use some…
Ivan
  • 17,368
  • 35
  • 93
  • 118
87
votes
5 answers

What is the difference between 'nobootwait' and 'nofail' in fstab?

In this question I asked how to prevent a media failure from halting the system boot process. However, I got two suggestions for /etc/fstab options nobootwait nofail What is the difference between the two?
Evan Carroll
  • 28,578
  • 45
  • 164
  • 290
67
votes
5 answers

Moving /var, /home to separate partition

I am attempting to move some folders (such as /var and /home) to a separate partition after reading this guide: 3.2.1 Choose an intelligent partition scheme I was able to move one folder successfully following thisguide. However, it doesn't seem to…
toffee.beanns
  • 811
  • 1
  • 9
  • 7
64
votes
3 answers

Difference between 'sync' and 'async' mount options

What is the difference between sync and async mount options from the end-user point of view? Is file system mounted with one of these options works faster than if mounted with another one? Which option is the default one, if none of them is set? man…
user77422
64
votes
5 answers

mount error 13 = Permission denied

One of my servers is set up to automatically mount a Windows directory using fstab. However, after my last reboot it stopped working. The line in fstab is: //myserver/myfolder /mnt/backup cifs credentials=home/myfolder/.Smbcredentials The…
Pickle
  • 1,041
  • 1
  • 8
  • 7
49
votes
3 answers

How does _netdev mount option in /etc/fstab work?

I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab? Does systemd alter this behavior? Also, what does delay_connect option to sshfs…
Piotr Dobrogost
  • 4,116
  • 5
  • 35
  • 46
49
votes
3 answers

How to automatically mount an USB device on plugin-time on an already running system?

I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device UUID=B864-497A /media/usbstick vfat…
Foo Bar
  • 3,462
  • 7
  • 21
  • 28
41
votes
4 answers

How to fix boot failure due to incorrect fstab?

It seems that I have added incorrect record to /etc/fstab: //servername/share /mnt/share cifs defaults,username=myuser 0 0 When I did mount -a, it asked user password to mount network share. It seems that it cannot proceed without…
altern
  • 1,900
  • 3
  • 18
  • 20
39
votes
3 answers

What is /etc/mtab in Linux?

What is /etc/mtab in Linux? Why is it needed and advantages of having it?
Sathish kumar
  • 407
  • 1
  • 4
  • 3
38
votes
6 answers

NFS: mount.nfs: Protocol not supported

I want to mount the NFS share of a Zyxel NSA310s NAS. Showmount, called on the client machine, shows the share: $ showmount 10.0.0.100 -e Export list for 10.0.0.100: /i-data/7fd943bf/nfs/zyxelNFS * The client's /etc/fstab contains the…
Geom
  • 513
  • 1
  • 4
  • 8
34
votes
3 answers

How to force OS reload of fstab?

'mount -a' works fine as a one-time action. But auto-mount of removable media reverts to settings that were in fstab at the last reboot. How to make the OS actually reload fstab so auto-mounts use the new settings when media is connected? Specific…
RichardH
  • 443
  • 1
  • 4
  • 4
34
votes
1 answer

Do you need to specify the "defaults" option in fstab?

The Arch Wiki on fstab specifies the options of / to be defaults,noatime, but on my installation the default fstab is created with the options of rw,relatime. The Arch Wiki covers the atime issues. What I am curious about is the defaults option. The…
StrongBad
  • 5,151
  • 9
  • 47
  • 73
31
votes
1 answer

What is UUID, PARTUUID and PTUUID?

In the blkid output, some lines contain UUID and PARTUUID pairs and others only PTUUID. What do they mean? In particular, why are two IDs required for a partition and why are some partitions identified by UUID/PARTUUID and some by PTUUID?
anatoly techtonik
  • 2,514
  • 4
  • 24
  • 37
28
votes
6 answers

UUID Of A drive that won't show up in /dev/disk/by-uuid or blkid

I have a USB drive that is not receiving a UUID. When I look at the contents of the /dev/disk/by-uuid it doesn't exist there. The dev point that the partition lives in is on /dev/sdb. I am able to see sdb under /dev/disk/by-path. Also, when using…
monksy
  • 723
  • 2
  • 8
  • 15
28
votes
8 answers

sshfs always asking for password in fstab?

I'm trying to enter an sshfs mount in /etc/fstab with the following line: sshfs#[email protected]:/media/usb0 /media/ExtHD fuse defaults,nonempty,allow_other 0 0 So that this volume is mounted at boot. After booting up, nothing happens, but when…
semiserious
  • 411
  • 1
  • 4
  • 4
1
2 3
54 55