Questions tagged [fstab]

The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions.

The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions. In a nutshell, mounting is the process where a raw (physical) partition is prepared for access and assigned a location on the file system tree (or mount point).

* In general fstab is used for internal devices, CD/DVD devices, and network shares (samba/nfs/sshfs). Removable devices such as flash drives *can* be added to fstab, but are typically mounted by gnome-volume-manager and are beyond the scope of this document.
* Options for mount and fstab are similar.
* Partitions listed in fstab can be configured to automatically mount during the boot process.
* If a device/partition is not listed in fstab ONLY ROOT may mount the device/partition.
* Users may mount a device/partition if the device is in fstab with the proper option

SOURCE: https://help.ubuntu.com/community/Fstab

241 questions
3
votes
1 answer

Why doesn't mount wait for systemd.fsck to finish running?

Whenever systemd.fsck actually has to do a repair* at boot time, automatic mounting of my partition fails because the mount command doesn't wait until systemd.fsck@dev-sda1.service is done. How do I ensure that mount waits until the file system…
Steven T. Snyder
  • 1,063
  • 2
  • 10
  • 19
3
votes
0 answers

How to run kinit as root before automounting mutiuser cifs mounts?

Goal I'm setting up multi-user CIFS mounts in an Active Directory environment under CentOS 8.2. The storage server supports SMB3.1.1 protocol. Prerequisites I could easily integrate the system to the Active Directory and I've edited SSSD…
2
votes
0 answers

Raid filesystem check or mount failed (after probable physical shock)

I was redirected here from askubuntu. I work on a server where the operating system is installed on an SSD but data storage is on internal harddrives set up in a RAID system. Recently I have been unable to mount the raid system when booting, while…
Lars
  • 21
  • 2
2
votes
1 answer

Mounting a cifs share dir_mode and file_mode are being ignored

I have an Ubuntu Server that is trying to mount a Windows Server shared folder. Firstly, what I'm trying to do here is mount the share as the person in the credentials file and all actions take place as this person regardless of what user on the…
Ryan Mortier
  • 488
  • 3
  • 8
  • 19
2
votes
2 answers

Centos 7 - fstab does not mount some partitions, but mount /dev/sd* does

i have a Virtual Machine with Centos 7, on which i want to mount some ext4 partitions. Physical disks are actually hard disks provided by vSphere. All disks are located on the same NAS - so the three working ones (a,c,d) are virtually identical to…
2
votes
1 answer

Mounts happening on boot, but not defined in /etc/fstab

On every boot, my machine (CentOS 7) mounts all these: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 30G 2.6G 28G 9% / devtmpfs 287M 0 287M 0% /dev tmpfs 294M 0 294M 0% /dev/shm tmpfs …
Nuno
  • 461
  • 1
  • 5
  • 23
2
votes
1 answer

broken boot order zfs boot drive after a zfs disk replace

My system was nice and configured then I had a failed zfs (raidz2) drive. I swapped that drive but then it wouldn't enroll. So when I rebooted the system wont boot until one of the unbeknownst array drives are disconnected (i think its the new…
Brian Thomas
  • 378
  • 3
  • 14
2
votes
0 answers

Optimize Disk Mount Parameters for EXT4

I am looking to optimize the mount options when mounting a disk to write large files to under linux (Ubuntu 16). Specifically, mounting an external EXT4 USB 3 drive to backup VM files (~10G) and also copy over video files (~8G). Copying from an…
Gordo
  • 73
  • 1
  • 6
2
votes
3 answers

NFS mounts depending on other NFS mount fail to mount at boot

I have setup 5 NFS mounts in /etc/fstab. The first one "parent" mounts on local mount point /foo and the other 4 "child" in mounts points on the first one: So let's say the second is /foo/test1. The third is in /foo/media…
Bojo Jelev
  • 21
  • 2
2
votes
1 answer

Handling /etc/fstab when upgrading linode from Xen to KVM

I have a linode that is currently on one of Linode's Xen servers. I see that I am eligible to upgrade to a KVM linode. One thing that concerns me is that Linode's upgrade guide says block devices will change from the /dev/xvda naming scheme to the…
QuantumMechanic
  • 645
  • 6
  • 15
2
votes
1 answer

Mounting NFS - How to fail fast?

I have a NAS. On my Linux desktop, I mount a partition of the NAS via NFS. The NAS isn't always switched on. When I need to use it, then I switch it on and use mount -a on my desktop. The related entry on my /etc/fstab…
Edwin Lee
  • 131
  • 6
2
votes
1 answer

Couldn't define user password in fstab

I am trying to add the below entry to /etc/vfstab on Solaris 11.2 to mount a windows shared folder on reboot time: //192.168.1.45/share - /mnt/winshare smbfs - yes fileperms=0777,dirperms=777 the shared is working, mount folder exists,…
masker
  • 21
  • 2
2
votes
2 answers

Unrecognized mount option "nobootwait" or missing value on ext4-fs for cloudstack

I am launching a VM on a cloudstack derivative. The fstab looks like this /dev/vdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 Starting File System Check on /dev/vdb... [ 4.626329] [drm] Initialized drm 1.1.0…
2
votes
0 answers

Any way to have wildcards in fstab?

My goal is to allow any user to mount a cifs share to /media/networkshare or even better /media/networkshare/share_* Is there any way to allow wildcards in fstab such that they can do that? I can't predefine the share location. Is there any way to…
Trel
  • 121
  • 2
2
votes
1 answer

External drive switching from /dev/sda to /dev/sdb

We have a small box with external drives attached for backing up configuration sets. I found out the problem is simply that on reboot or whatever unknown event the drive switches from /dev/sda1 to /dev/sdb1. How can I circumvent this or configure…
Daniel W.
  • 1,439
  • 4
  • 23
  • 46