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.

Filter by
Sorted by
Tagged with
164 votes
7 answers
156k views

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 ...
Ivan's user avatar
  • 17.5k
88 votes
5 answers
165k views

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 ...
Evan Carroll's user avatar
  • 29.7k
68 votes
6 answers
156k views

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 ...
toffee.beanns's user avatar
67 votes
3 answers
146k views

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 ...
user avatar
65 votes
5 answers
477k views

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 ...
Pickle's user avatar
  • 1,051
49 votes
3 answers
156k views

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? ...
Piotr Dobrogost's user avatar
49 votes
3 answers
181k views

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/...
Foo Bar's user avatar
  • 3,492
42 votes
4 answers
208k views

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 ...
altern's user avatar
  • 1,930
40 votes
3 answers
15k views

What is /etc/mtab in Linux?

What is /etc/mtab in Linux? Why is it needed and advantages of having it?
Sathish kumar's user avatar
39 votes
6 answers
211k views

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 * ...
Geom's user avatar
  • 533
37 votes
3 answers
73k views

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 ...
RichardH's user avatar
  • 473
35 votes
1 answer
42k views

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. ...
StrongBad's user avatar
  • 5,201
33 votes
1 answer
26k views

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 ...
anatoly techtonik's user avatar
29 votes
6 answers
103k views

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 ...
monksy's user avatar
  • 733
28 votes
8 answers
62k views

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 ...
semiserious's user avatar
28 votes
2 answers
14k views

How is /etc/fstab accessed before root is mounted?

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then ...
sashoalm's user avatar
  • 5,780
27 votes
3 answers
56k views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
its_me's user avatar
  • 13.8k
26 votes
1 answer
20k views

Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking?

I am learning about linux security and struggling to understand why a USB stick with a character device on it is potentially dangerous. If I have a USB stick with a bash executable that has setuid ...
rosix's user avatar
  • 993
23 votes
2 answers
112k views

How to edit /etc/fstab when system boots to read only file system?

I'm on Ubuntu 14.04. I pasted something incorrect (from a tutorial) into my /etc/fstab file. As a result, the root file system will not mount when the machine boots up. I know what needs to be fixed ...
Daveh0's user avatar
  • 511
23 votes
4 answers
17k views

Is there any reason to move away from fstab on a systemd system?

I'm on an Arch Linux system, which means systemd. In systemd there are native unit files for mountpoints, with the extension .mount. I've always just used /etc/fstab, which never gave me problems ...
strugee's user avatar
  • 14.8k
23 votes
1 answer
27k views

What is the difference between mounting in fstab and by mounting in file manager

..and what are the consequences of the different methods? I have been trying some things with the mounting of an sda2 partition. Mounting in fstab, not mounting in fstab but from the file manager. ...
DutchArjo's user avatar
  • 747
23 votes
2 answers
35k views

Do not halt the boot if an fstab mounting fails

I have this line in my fstab: sshfs#ecarroll@o99:/opt/dealermade/ftp/inc /opt/dealermade/ftp/inc fuse defaults,idmap=user,users 0 0 For whatever reason it didn't work -- that's fine. How do I make ...
Evan Carroll's user avatar
  • 29.7k
22 votes
4 answers
119k views

Automatically mount a drive using /etc/fstab, and limiting access to all users of a specific group

I currently have an extra HDD which I am using as my workspace. I am trying to get it to mount automatically on reboots using the following line added to /etc/fstab /dev/sdb1 /media/workspace auto ...
slagathor's user avatar
  • 323
22 votes
1 answer
16k views

Cannot boot because missing external disk

Using Fedora 24, I had configured in /etc/fstab an external usb drive: UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults 0 0 When I unplugged the usb disk and reboot, ...
sebelk's user avatar
  • 4,349
22 votes
3 answers
35k views

Does initramfs use /etc/fstab?

The way I understand it, initramfs is responsible for loading the "real" root filesystem. Now, there are two places where we define that root. First we put an entry in /etc/fstab. Second, we put the ...
Ahmed Ghonim's user avatar
20 votes
2 answers
75k views

Can fstab options uid and gid be the user-group name or must they be numeric?

I'm learning how to set up a tmpfs in fstab for my www-data user and I was wondering if I can use the actual user/group name instead if the numeric ids (personal preference)? I'm on Debian with ext4, ...
Jeff's user avatar
  • 786
19 votes
2 answers
10k views

What 'sw' means in the fstab swap entry for 'mount options' column

In my /etc/fstab file I have an entry for my swap as follows: /root/swap swap swap sw 0 0 I have other machines and also I've seen online that sometimes they put default or xfs or other options. ...
VaTo's user avatar
  • 3,101
19 votes
1 answer
27k views

Advantages/disadvantages of increasing "commit" in fstab

I have done many obscure system optimizations in the past, but I got rid of most of them after powertop told me I should set my USB ports to autosuspend, which forced them to an eternal sleep, and ...
admirabilis's user avatar
  • 4,682
18 votes
3 answers
17k views

What are all the spaces in the /etc/fstab for?

I get that I can use mount to set up / directories and that I can use the /etc/fstab to remount them on reboot. Testing the fstab file is also fun with mount -faV. When I'm looking at the fstab ...
hawkeye's user avatar
  • 475
18 votes
2 answers
59k views

/etc/fstab: meaning of "nofail" if "noauto" is already specified

From my understanding of /etc/systemd options, noauto means that the device will not be mounted at boot time (or with mount -a). Is there any situation where adding nofail changes the behaviour if ...
Tom Hale's user avatar
  • 29.5k
15 votes
3 answers
66k views

When and where to use rw,nofail,noatime,discard,defaults?

I am using OpenStack Cloud and using LVM on RHEL 7 to manage volumes. As per my use case, I should be able to detach and attach these volumes to different instances. While updating fstab, I have used ...
Krishna Sharma's user avatar
15 votes
3 answers
20k views

How does the Linux command "mount -a" work?

After adding a new mount point in /etc/fstab, we usually execute mount -a to reflect the change (if we want to bypass reboot), and df -kh output shows the new mount point. How does mount -a work/...
Rauf's user avatar
  • 309
14 votes
3 answers
43k views

understanding /dev/disk/by- folders

Question: What does /dev/disk/by-pathdescribe? And where is this documented? Going through the meaning of what is displayed in the folders /dev/disk/by- I've got that far, and I wonder is this ...
erch's user avatar
  • 4,990
14 votes
2 answers
67k views

Mount USB drive (FAT32) so all users can write to it

I have a USB FAT32 drive that is on /dev/sda2. I've mounted it as /media/bigdrive however, I get permission denied whenever I try to touch a file there as a non root user. When I run mount I can see ...
Alex's user avatar
  • 241
13 votes
6 answers
103k views

Ownership of a mount point

I cannot create files in my newly mounted partition . The folder to which i am mount the partition, /media/hrmount, is owned by root so even if I add a fstab line like UUID=irrelevant /media/...
bloys's user avatar
  • 139
13 votes
3 answers
20k views

Linux: difference between using autofs with NFS and just using fstab

What is the difference between using auto.master and having autofs automount your NFS mountpoints versus just putting the info in fstab? Linux Red-Hat 5/6
Gregg Leventhal's user avatar
13 votes
2 answers
9k views

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's user avatar
  • 1,400
13 votes
1 answer
21k views

Mount error: mount failed: File exists

I am unable to mount my USB: $ mount /dev/sdb1 /mnt mount: mount /dev/sdb1 on /mnt failed: File exists What is the origin of this error and how do I mount my USB? The partition /dev/sdb1 is not in /...
user123456's user avatar
  • 4,948
12 votes
1 answer
979 views

Drive mounted with flags different from /etc/fstab - not respecting suid, dev, or exec

I have an ext4 mounted with the flags rw,suid,dev,exec,auto,user,async in /etc/fstab but running mount after mounting gives rw,nosuid,nodev,noexec,relatime,user. How do I get it to mount exactly as ...
ChocolateOverflow's user avatar
11 votes
2 answers
42k views

Mount iscsi drive at boot - system halts

I am running Oracle Linux 7 (CentOS / RedHat based distro) in a VirtualBox VM on a Mac with OS X 10.10. I have a Synology Diskstation serving as an iscsi target. I have successfully connected to the ...
Allan's user avatar
  • 1,010
11 votes
2 answers
32k views

Recommended fstab settings

I made a new partition for my home drive by following this guide I have no idea what the fstab setting it suggests mean: UUID=???????? /home ext3 nodev,nosuid 0 2 I ...
UbuntuNewbie's user avatar
11 votes
1 answer
12k views

Difference between nointegrity, noatime & relatime

What is the difference between nointegrity, noatime and relatime? And what is the best option for a SSD? I am using ext4 as my filesystem. And why disabling journaling on my system, data loss can ...
Daniel's user avatar
  • 307
10 votes
2 answers
17k views

How to make an fstab entry for sshfs on non-standard SSH port and using ssh key

The server is listening on port '8765' and requires a SSH key for authentication. I can mount the remote directory using this command: sshfs -o idmap=user,port=8765 stephen@server:/export/usb2T /mnt/...
Stephen Boston's user avatar
10 votes
7 answers
10k views

Hibernation resume fail on linux kernel 4.9.0, Debian 9

I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch). Everything was fine, until I tried to "Hibernate" (suspend to disk). When I use Hibernate option in LXDE, it ...
Enginecrafter77's user avatar
10 votes
2 answers
37k views

Unable to mount drive as read-write

I have a 1TB HDD (/dev/sda1, mount point /run/media/<name>/4733A97E4133EADF) that I'm trying to mount as read-write, but I can only get it to mount as read-only. System: $ uname -a Linux <...
Hatchet's user avatar
  • 255
10 votes
1 answer
8k views

Umount device after bind mounting directories: is it safe?

I have a home partition which is shared by mulitple distros on the same box. I'm using bind mounts from fstab. Each Linux install has something like this: UUID=[...] /mnt/data ext4 nodev,...
Peter-Paul van Gemerden's user avatar
10 votes
2 answers
10k views

Option "user" work for mount, not for umount

I am experimenting mounting options for a program I am writing. I am running Linux Mageia 2. I added the following line to /etc/fstab /dev/sr0 /mem auto user,noauto, 0 0 and I removed all other ...
babou's user avatar
  • 828
9 votes
1 answer
2k views

'exec' option ignored in fstab for sshfs, need to specify to 'mount' on command-line?

I'm using sshfs in my fstab to mount a filesystem in Ubuntu 18.04.04 LTS: sshfs#[email protected]:/remote-dir /mnt/local-mnt fuse rw,exec,user,allow_other,noauto,reconnect,...
David Ljung Madison Stellar's user avatar
9 votes
1 answer
25k views

What does genfstab's -p option do?

While following this guide to installing Arch Linux the reader is instructed to execute the following command: genfstab -U -p /mnt >> /mnt/etc/fstab It is stated the the -U option uses UUID's ...
Konner Rasmussen's user avatar
9 votes
2 answers
28k views

fstab entry for swap space

Here is the free -m output [prem@myserver: /home/prem]$ free -m total used free shared buff/cache available Mem: 991 218 85 267 ...
Prem's user avatar
  • 223

1
2 3 4 5
17