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
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
1 vote
2 answers
4k views

Permanent network drive mount in fstab not working (due to network not being online whilst attempting to mount)

I have a network drive hosted on a Windows10 Machine, it mounts fine to my CentOS7 machine through the command: sudo mount -t cifs //ipaddress/sharedfoldername /mountpoint --verbose -o credentials:/...
ekv_56's user avatar
  • 57
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
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
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
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
7 votes
1 answer
5k views

Cannot chown, chmod on mounted ntfs partition

I need to mount a ntfs partition and be able to use it with unix file system permissions. The problem is that, when I mount the partition using the following fstab entry, I cannot run chown and chmod ...
icepopo's user avatar
  • 173
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
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
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
4 votes
1 answer
23k views

What is the correct permission in /etc/fstab to mount NTFS?

I have Windows and Arch Linux in dual with UEFI. I want to mount my another NTFS partition in Arch. I mounted the partition with mount /dev/sda5 /mnt/Apps command. Then added the output of genfstab -...
Biswapriyo's user avatar
4 votes
5 answers
8k views

Moving /etc to separate partition

How to put /etc on separate partition? Obviously i can't do that by editing /etc/fstab like i did with /home, because... it's in /etc. I want /etc and /home on one partition (sda7), and the rest on ...
Xirdus's user avatar
  • 260
4 votes
2 answers
4k views

Linux Mint: drives' map changing at reboot brings fstab error

I've set up fstab to auto mount media drives on a Linux Mint machine. The OS is installed on a IDE/ATA Disk while 3 SATA disks hold data to share. The BIOS has the ATA disk as first boot device. All ...
user avatar
3 votes
2 answers
2k views

Emergency Mode and Local Disk

I have added this entry to my /etc/fstab /dev/sdb1 /user_data xfs rw 0 0 Which works fine, the issue i am getting it sometime i remove this drive and when i do and reboot my machine it goes into ...
user386101's user avatar
1 vote
1 answer
1k views

What specifies the version of cgroups (cgroups or cgroups2) used by the distro?

I'm running on Debian. When I run mount | grep -i cgroup, I see, tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755) cgroup2 on /sys/fs/cgroup/unified type ...
Evan Carroll's user avatar
  • 29.7k
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
39 votes
6 answers
210k 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
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
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
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
5 answers
8k views

mount ramfs as user

My fstab entry: none /home/jreinhart/ramdisk ramfs defaults,user 0 0 The directory before mounting: drwxrwxr-x 2 jreinhart jreinhart 4096 Oct 17 11:31 ramdisk The directory after ...
Jonathon Reinhart's user avatar
9 votes
4 answers
6k views

"Permission denied" with ffmpeg (via snap) on external drive

I got a new drive and I can copy files fine with simple cp on the drive. However for some weird reason I get Permission denied with ffmpeg. Permissions seem fine unless I'm missing something > ll ...
Pithikos's user avatar
  • 3,254
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
10k views

fstrim trims more than half of partition size even though partition mounted with discard

When I installed my SSD I just mounted with discard and didn't sweat it. However today I was reading about the pros and cons of using fstrim instead and decided to run the program to get an idea of ...
Graeme's user avatar
  • 33.8k
7 votes
2 answers
45k views

Linux, fat32 and etc/fstab

I mounted a FAT32 drive onto my Linux computer using the following terminal command: > sudo mount /dev/sdb1 /media/exampleFolderName -o dmask=000, fmask=111 I did this so I could share / edit the ...
Lee's user avatar
  • 73
6 votes
1 answer
6k views

Slow boot time after cloning disk and resizing partitions

I recently replaced an SSD with a larger SSD. I used Clonezilla to clone the old disk to the new one. After that I used GParted Live to resize the existing partition, pushing the swap partition to the ...
JJD's user avatar
  • 577
6 votes
2 answers
3k views

fstab pass value for non root partitions

If I open /etc/fstab on an up to date Amazon Linux Server (using init, not systemd) I see the following: LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm ...
SPRBRN's user avatar
  • 1,117
5 votes
1 answer
4k views

How to check whether systemd is unmounting my device? (and why?)

This is a followup to another question. I figured out something is unmounting my device right after I mount it. This device is being used by a database (Vertica), which is down and not using the ...
yurmix's user avatar
  • 291
4 votes
3 answers
74k views

how should I mount my ext4 partition in fstab

so that it appears in Thunar's sidebar under the name 'Schijf-2'? I am running linux mint13 xfce and this has been a headache causer for the last couple of days. the UUID of this partition is: this ...
DutchArjo's user avatar
  • 747
4 votes
1 answer
42k views

fstab mount options for umask, fmask, dmask for ntfs with noexec

I have a ntfs partition and when I mount it with default options in fstab I get for files and directories: rwxrwxrwx = 0777 Obviously ntfs does not support "noexec" option and I do not want 'x' flag ...
user avatar
4 votes
1 answer
2k views

How to mount some folders on a different partition

I recently got an SSD for my computer. Therefore I reinstalled my system and mounted / on /dev/sda1 (which is a partition on the SSD). To protect the SSD, I managed to mount /tmp on the RAMdisk. ...
Marcel's user avatar
  • 1,114
3 votes
1 answer
13k views

systemd errors when two devices share the same mount point

I just updated and installed a whole load of debian packages and now I am getting errors due to my particular fstab file config. I have 2 drives which I never mount simultaneously and which both have ...
mulllhausen's user avatar
  • 2,668
3 votes
2 answers
7k views

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 ...
user4951's user avatar
  • 10.4k
2 votes
1 answer
8k views

fstab not mounting VirtualBox shared folder?

I have a virtual machine here which I use for development, so as not to mess anything up in my existing environment. I've made a share named "web" available to the guest OS (Ubuntu 12.10 Server) ...
Naftuli Kay's user avatar
  • 39.1k
2 votes
1 answer
2k views

Use systemd to run script when usb drive is unmounted

I have a systemd service that calls a script when a USB drive is mounted. signal.service: [Unit] Description= Updater trigger Requires=usb-drive.mount After=usb-drive.mount [Service] ExecStart=/usr/...
Chris's user avatar
  • 143
2 votes
1 answer
4k views

USB flash drives automatically mounted (headless computer)

For the project SamplerBox, up to now I was using /dev/sda1 /media auto nofail 0 0 to have USB flash drives automatically mounted when inserted on the headless computer, see also Auto-mount and auto-...
Basj's user avatar
  • 2,401
2 votes
3 answers
2k views

Safe to disable boot fsck on read-only ext3 file system?

I have a large, frequently read, ext3 file system mounted read-only on a system that is generally always hard power cycled about 2-3 times per day. Because the device is usually powered off by ...
Jason C's user avatar
  • 1,363
1 vote
2 answers
6k views

No permission to chown /mnt/hdd

I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is: rwxrwxrwx 1 root root 131072 Jan 1 1970 hdd I am mounting it via fstab ...
Julian's user avatar
  • 13
1 vote
1 answer
3k views

Debian 10 fstab - Is there an option to prevent boot sequence hanging when device does not exist?

I have a Debian 10 machine which has a nfs mountpoint specified in fstab. This is the line 10.0.0.2:/mnt/md0 /mnt/md0 nfs4 _netdev,auto,nofail 0 0 I thought nofail would prevent my ...
user3728501's user avatar
1 vote
1 answer
175 views

how to identify UUID conf or ordinary dev conf from fstab

we need to add disks on more then 100 redhat machines, therefore we need to update also the /etc/fstab on each machine the problem is that some machines configured with UUID and other with ordinary ...
yael's user avatar
  • 12.8k
0 votes
1 answer
957 views

Mount using fstab instead of terminal

I am mounting my shared drive using terminal in my Ubuntu machine like this: sudo mount -t cifs -o "username=${USER},password=${PASSWORD},uid=$(id -u),gid=$(id -g)" //server-address/folder /mount/...
Tak's user avatar
  • 519
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
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
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