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>

831 questions
93
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
  • 30,763
  • 48
  • 183
  • 315
41
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 reload /etc/fstab so auto-mounts use the new settings when media is connected? The specific…
RichardH
  • 513
13
votes
2 answers

Can I include another file in fstab

Can I include another file in my fstab file? I.e. can I have fstab execute lines from another file at an arbitrary point, and then return to the main file when completed?
jsj
  • 1,410
8
votes
3 answers

How to make an ext4 file writable on mounting by a user (not root)

I have been trying to write onto a newly created partition My partition block is /dev/sda6 I am unable to write anything onto that partition. My Corresponding fstab file is this /dev/disk/by-id/ata-WDC_WD5000BEVT-24A0RT0_WD-WXD1EA0TV384-part7 swap …
manugupt1
  • 181
  • 1
  • 1
  • 3
5
votes
2 answers

Can I use a pass value higher than 2 in fstab?

The man page for fstab has this to say about the pass value: Pass (fsck order) Fsck order is to tell fsck what order to check the file systems, if set to "0" file system is ignored. Often a source of confusion, there are only 3 options : 0 == do…
Codebling
  • 785
5
votes
2 answers

Adding data=writeback to a ext4 fstab entry, results in read-only filesystem

I have this fstab entry : LABEL=cloudimg-rootfs / ext4 defaults,noatime,nobarrier,data=writeback,rw 0 0 I added rw to see if would fix my issue but it wont. After boot I get a read-only file system that I can't fix either using common…
Freedo
  • 1,255
4
votes
2 answers

Remount all filesystems in fstab with new options

The mount -a command disregards mount options, which makes it useless when that's what you changed. How to re-evaluate all the mount options in fstab as if rebooting?
4
votes
1 answer

How to enable user_xattr in Mint Cinnamon?

I just installed Netflix Desktop on my Cinnamon Mint, but I can't start it. When I run the program, I get the following message: It appears that you do not have extended file system attributes enabled. Please enable the user_xattr option for your…
Ian
  • 151
3
votes
2 answers

What does the noload option do in fstab?

I put UUID=fb2b6c2e-a8d7-4855-b109-c9717264da8a / ext4 auto,noatime,noload,data=ordered,commit=10,defaults 1 1 in fstab And now server fails to reboot. It can reboot but reject all kind of connections. This is what my…
user4951
  • 10,519
3
votes
2 answers

How do I add newly created mount point to fstab?

I just mounted sda2 to /mnt. How can I force a refresh of fstab so it can pickup the changes and insert a new line for sda2-/mnt?
user53029
  • 2,813
2
votes
2 answers

What is loop0 and how do I e2fsck it?

EXT3-fs (sdd1): using internal journal EXT3-fs (sdd1): mounted filesystem with ordered data mode EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: EXT4-fs (sdc1):…
user4951
  • 10,519
2
votes
1 answer

Why is there a `proc` mount in fstab

I have a proc mount entry in my fstab on (Debian derived) Raspberry Pi OS. Is this one needed? On my pc (running Arch linux) I don't have this but (of course) proc gets mounted. fstab line: proc /proc proc defaults 0 0 uname…
Antoni
  • 131
2
votes
2 answers

How to understand this fstab?

This is my fstab: # # /etc/fstab # Created by anaconda on Sat Jan 12 02:12:44 2013 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more…
user4951
  • 10,519
2
votes
1 answer

GUI utillity (Not Gnome Disks) to edit fstab to automount at startup permanently connected drive(s).

Looking for a simple GUI that can simply configure (and backup as well) my /etc/fstab file to automatically mount all sd? hard disks. Basically to automount without password or using root password so that all programs can access other hard drives…
Ken
  • 21
2
votes
2 answers

Mounting /tmp in another drive on RHEL 7.2 in AWS

I'm running RHEL 7.2 in Amazon Web Services and am trying to make my /tmp use an attached 10 GB volume /dev/xvdh. Data does not need to persist, but I have to have a bigger volume just for tmp, because of a customer requirement. Here's the entry…
FoxDeploy
  • 123
1
2