Questions tagged [fstab]

The /etc/fstab file contains static file system information. It normally contains an entry for each partition name or UUID that lists the mount point, filesystem type and mount options.

fstab is an abbreviation of file system table. This file, located in /etc, contains information about static (non variable) file systems. The file is used to find and mount these file systems, at boot or as directed.

The file contains a line for each file system (for example, a drive partition) that gives an identifier, either a label like /dev/sda1 or, better, a UUID, followed by the mount point such as / or /boot/efi or none for a swap partition, the file system type such as ext4, vfat, ntfs, and mount options such as errors=remount-ro, and two numbers, dump and pass

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

Comprehensive information about and examples of fstab can be found in the Ubuntu help wiki fstab page

1402 questions
171
votes
2 answers

What do the last two fields in fstab mean?

The last two fields on each line in fstab (dump and pass) are some numbers (usually, 0). What do these numbers mean? # proc /proc proc nodev,noexec,nosuid 0…
elzapp
  • 2,090
131
votes
8 answers

How to mount a new drive on startup

I have recently installed a new hard drive to my Ubuntu 10.0.4 box. I used System -> Administration -> Disk Utils to format the disk (ext4 file type) - but did not create a partition (is this advisable?). I have manually mounted the drive as…
32
votes
1 answer

What is the difference between tmpfs and ramfs

I have read about moving the tmp folder to ram would increase performance and also read about ramfs using ram as storage and tmpfs using ram as strorage too but what should I use in /etc/fstab: tpmfs : none /tmp tmpfs…
user128712
  • 2,372
21
votes
1 answer

Default fstab mount options

On a clean Ubuntu 11.04 (Natty Narwhal) installation, I used just a single partition for everything. The line that got added in the fstab file is this UUID=xxx / ext4 errors=remount-ro 0 1 Shouldn't there be a 'defaults' in…
george_k
  • 211
21
votes
3 answers

Why doesn't /etc/fstab use XML or JSON?

This is more like a general Linux / programming question, but I've been programming for a while, and I'm used to using a format such as XML or JSON on any file which is used for configuration purposes. Being new to Linux, I realized that the first…
jzeus
  • 329
  • 2
  • 7
18
votes
5 answers

Do "personal fstab" files exist for user accounts?

I'm looking for a "personal" equivalent for the /etc/fstab file, that apply only on my account (on login); does such a file exists? Or is it more complicated?
Fred
  • 181
  • 1
  • 1
  • 3
13
votes
1 answer

How does the fstab 'defaults' option work? Is relatime recommended?

I know the fstab defaults option means this: rw,suid,dev,exec,auto,nouser,async. But what if I want to add one more option, for example relatime, should I still add defaults too or they are applied anyway? Is it needed to add at least one…
hushshsh
  • 303
9
votes
4 answers

Why is my /etc/fstab file unconfigured?

I am running Ubuntu 14.04 on an Acer Chromebook C720. For some reason, my /etc/fstab file is "unconfigured." me@chrubuntu:~$ cat /etc/fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM Why does this happen? How can I properly configure my /etc/fstab file?
I Like to Code
  • 609
  • 2
  • 8
  • 12
6
votes
1 answer

Run script after fstab

In Ubuntu Linux 16.04.3, how do I run a script, dependant on another hard drive being mounted first, after fstab? I have tried: Creating a service script in /etc/init.d, but the script executes before fstab. Adding to /etc/rc.local, but same…
LogicalException
  • 293
  • 1
  • 5
  • 11
4
votes
1 answer

Destroyed fstab file by mistake! Need to restore it

I destroyed by mistype the fstab file in an ubuntu 12.04 server. Does anybody know, how can I restore it with the correct values?
2
votes
2 answers

Bind folders in .img to folders outside of it?

Is there a way to bind folders located in an .img file to folders outside it? To be more specific, supposing there's Ubuntu installed in img file, I want the image's fstab to bind a few folders outside the img file. That is to say the binding must…
Oxwivi
  • 17,849
2
votes
3 answers

Fstab for GoFlex Home 2tb NAS

I have the above functioning ok using the usb print server, however, I cannot get the drives to mount in the fstab. using 192.168.0.x net with dlink router. I can moount using the GUI in Gnome but I want the drive to mount automatically
2
votes
0 answers

Partition showing up twice under devices

Possible Duplicate: Mounted drives appearing twice in lists I have an NTFS data partition on the same drive as my Ubuntu 12.04 (Precise Pangolin) partition. I wanted to have this partition automatically mount at startup so that Dropbox can start…
JohnReed
  • 121
2
votes
2 answers

fstab entry added by GUI Disks utility seems ill-formatted but works?

The Disks utility (gnome-disks) added this entry in /etc/fstab: UUID=[UUID] [mount pount] auto nosuid,nodev,nofail,x-gvfs-show 0 0 Based on numerous examples and on info fstab, auto is where the filesystem type (ext4 in this case) should be, and…
brec
  • 223
2
votes
2 answers

Fstab file can't mount to /usr

I tried to use a bind mount from my /d(another partition)/usr to /usr And I tried that several times using fstab and failed, can someone have a look? fstab file: # / was on /dev/nvme0n1p2 during installation UUID=b3dc29ae-e63b-4ced-89ab-1173755b3f6c…
ygy
  • 151
  • 6
1
2 3