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

248 questions
0
votes
1 answer

usb external hard drive will not mount on boot

Server OS: Debian Stretch fdisk -l http://paste.debian.net/932334 fstab http://paste.debian.net/932336 journalctl -xb paste.debian.net / 932337 zoneminder: wiki. zoneminder. com / Using_a_dediated_Hard_Drive I have tried everything from specifying…
0
votes
1 answer

Where is the filesystem marked as "erroneous" with /etc/fstab errors=continue setting?

From man mount errors=continue in /etc/fstab means: ignore errors and just mark the file system erroneous and continue Where is the filesystem marked erroneous? I would like to set up an alert based on this (cron->email for example), but don't…
Magneon
  • 193
  • 5
0
votes
2 answers

Troubles with swap on dm-crypt/LUKS partition

I have created two dm-crypt partitions during Debian install: sda2 sda2_crypt swap sda3 sda3_crypt / I used 7.8.1 netinstall ISO. Later I have added additional dm-crypted drive sdb: # cryptsetup -h=sha256 -c=aes-xts-plain64:sha1 -s=256…
A_buddy
  • 35
  • 2
  • 11
0
votes
0 answers

Mount LVM device

I am using Arch Linux and want to mount my two disks, /dev/nbd1 and /dev/nbd2, at the same mount point. I created the mount at /share/data and added the following to /etc/fstab: /dev/vg_data/volume /share/data ext4 defaults 0 1 Where vg_data is an…
ChaChaPoly
  • 243
  • 1
  • 3
  • 16
0
votes
1 answer

Linux: "fstab" with additional mount options?

I'm using "GlusterFS" Client, to mount the GlusterFS Volume on my Web Server. Below is the MOUNT command when i manually mount from commandline: # mount -t glusterfs -o aux-gfid-mount gluster1:/gv0 /var/www/html I don't know how to put that -o…
夏期劇場
  • 455
  • 2
  • 6
  • 19
0
votes
1 answer

partitioning "/mnt" into two equal partitions in linux

I have a script which partition the directory into two equal partition. I am partitioning /mnt directory into two equal partitions /data01 and /data02. david@machine:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/vda 30G …
david
  • 109
  • 2
0
votes
2 answers

RHEL - Force mount order in fstab

I have one network share that I mount in fstab. This is working fine. Then, I have a second mount which binds on the folder from the first mount. Something like this: //my-cifs-share/foo /mnt/foo-share cifs _netdev,dir_mode=0777 0 0 /mnt/foo-share…
silent
  • 432
  • 4
  • 19
0
votes
1 answer

How to gracefully handle a Samba share going offline?

I have an Ubuntu 16.04 LTS web server that mounts a Windows file server via Samba. The web server need to be able to occasionally perform tasks that interact with the files on that server. However, we recently had an outage with the Windows file…
Ben Torell
  • 825
  • 1
  • 7
  • 11
0
votes
0 answers

/etc/hosts is not processed during boot

I have NFS mounts set up in /etc/hstab as HOSTXYZ:/share/dir /mnt/nfs/local-dir nfs4 _netdev 0 0 It mounts fine when I run mount -a however it hangs during boot. I discovered that if I use IP address instead of HOSTXYZ it boots normally.…
oᴉɹǝɥɔ
  • 151
  • 6
0
votes
1 answer

Mounting Google Compute persistent disk at boot

I have a new google compute engine instance running CentOS6 with two persistent storage volumes attached. I have followed the instructions here: https://cloud.google.com/compute/docs/disks/add-persistent-disk My attached volumes are: /dev/sdb or…
0
votes
1 answer

Mount bind not taking affect in fstab - Centos 6

I am using this line in fstab to bind /sftp/feeds/incoming to /var/www/online/public_html/feeds /sftp/feeds/incoming /var/www/online/public_html/feeds none bind 0 0 But it is not taking affect. If I use: mount --bind…
Kline
  • 247
  • 1
  • 5
  • 17
0
votes
2 answers

Mount a samba share as root using smbfs in fstab

I'm trying to mount a samba share using smbfs as root (on ubuntu-server), but every time I mount it it's mounted as root:dialout Here is the fstab entry (line breaks added for presentation) //192.168.1.68/mount_name /root/mount_point smbfs…
DEfusion
  • 287
  • 3
  • 9
0
votes
1 answer

Bindfs ignores user in /etc/fstab

I'm trying to mount a directory under a specific user:group combo. Using bindfs on the command yields the expected results: root@system:~# bindfs foo bar --user=fooz --group=baz root@system:~# ls -lha bar total 8.0K drwxr-xr-x 6 fooz baz 4.0K Nov…
Simon
  • 193
  • 2
  • 10
0
votes
1 answer

fstab entry causes emergency mode on reboot

I am using a loop file system because I do not have another partition to mount and I am only practicing as I study for my sysadmin exam. I added the following line to my stab /tmp/imagefile mnt/tempdir ext4 defaults 0 0 — this…
RGB
  • 3
  • 3
0
votes
0 answers

Linux, dev-mapper: How to mount a folder with different options than parent folder

I'm using CentOS 7.1 with device-mapper, and /home mounted as /dev/mapper/centos-home on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota) I'd like to include in fstab an entry for mounting /home/xyz with different options than those for…
Diego Shevek
  • 133
  • 5