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
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
  • 5
  • 18
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
  • 422
  • 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
  • 805
  • 1
  • 6
  • 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
  • 227
  • 4
  • 13
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
  • 1
  • 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
0
votes
1 answer

what are the folders in fstab without the device name or label or UUID

This is my /etc/fstab file on my CentOS6.6 : /dev/mapper/VolGroup-lv_root / ext4 usrjquota=quota.user,jqfmt=vfsv0,noatime,nodiratime,commit=120 1 1 UUID=5fde0497-7901-4de8-9516-f645e4fc9029 /boot ext4 defaults…
Armin
  • 25
  • 1
  • 7
0
votes
1 answer

Debian 8 Systemd fstab can't mount file system

Just upgraded to Debian 8. And system can't be booted because of this two lines in /etc/fstab: /dev/data/server/ /data ext4 defaults 0 2 /data/vmail /var/vmail none bind Don't know why systemd can't automatically…
kesrut
  • 121
  • 1
  • 8
0
votes
1 answer

Trouble with SWAP on AWS

I created an AWS m3.large instance. It comes with a single 32GB SSD. During the creation process, I added a second drive for the system. I picked the second drive for the system: xvda1 and the original 30GB drive, I loaded as xvdb. When the instance…
EastsideDev
  • 301
  • 3
  • 13
0
votes
0 answers

Preventing a read-write first automount after adding a VHDX onto a CentOS7 HyperV VM

I have a VHDX file (representing a non-boot ext4 fs) that I need to run some forensics on. I have a working CentOS7 HyperV VM on a Win2012R2 host. I want to attach the VHDX to the CentOS7 VM, which I know how to do. What I don't know how to do…
Kev
  • 964
  • 4
  • 23
  • 46