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
3
votes
1 answer

in which cases it will be problematic to configure UUID in fstab

We are thinking about to change all Linux fstab configuration to work with UUID instead the current configuration Some of the disks are with non RAID and some of the disks are with RAID10 I searched in google and find complain about using UUID for…
shalom
  • 461
  • 13
  • 29
3
votes
4 answers

Mounting a share with spaces in FreeBSD fstab

I'm trying to mount a smb network share in fstab on FreeBSD, which works fine for a share without spaces, but fails if a space is in the name. I have replaced the space with \040 which is what everything on google has said, but that didn't…
Blake
3
votes
1 answer

Ubuntu 14.04 with Azure File Storage FSTAB mount drops after some time

I have an Ubuntu 14.04 server that has an Azure File Storage mount that auto mounts on boot via an FSTAb. To create this config, I followed the instructions in this article, and it works fine. The issue I am having is after a while,…
Sharbel
  • 85
  • 8
3
votes
1 answer

Directories inside /var are on root partition not /var partition

Few weeks ago I installed Opensuse 13.2. I partitioned the disk so that root '/', /var, /tmp and /home are on different partitions. Today I noticed that although /var is on partition sda8, all directories in /var, such as /var/tmp and…
3
votes
1 answer

Why would a bind mount unmount unexpectedly?

I have configured some bind mounts on all users's home directories to access a shared directory (or parts of it) that is somewhere else in the file system, so I have entries like these on my fstab file: /application/data/repository …
Sergio
  • 130
  • 4
3
votes
1 answer

using /bin/bash in a chroot environment - symlink or mount

A user connects via ssh. The user is also chroot-ed to their home directory. The goal is security. Since the user is chroot-ed, when they login /bin/bash is not found. Obviously the user needs shell commands. Shell access can be provided…
csi
  • 1,555
  • 7
  • 23
  • 42
3
votes
4 answers

How do I change multiple linux servers' /etc/fstab simultaneously

We have plenty of linux server that will mount a few linux file server by NFS or SMB using /etc/fstab But manually changing each server's /etc/fstab is very tedious. Is there any way to edit multiple linux server's /etc/fstab simultaneously?
Bossliaw
  • 141
  • 5
3
votes
2 answers

Does /etc/fstab need to be world readable?

I would like to put network share mounts in /etc/fstab, but by default that file is world-readable which allows everyone to read the credentials I put into the mount options. Is it safe to make /etc/fstab not readable by anyone other than root,…
Rob
  • 234
  • 1
  • 3
  • 9
3
votes
1 answer

GFS2 over DRBD automount

I have 2 nodes Proxmox cluster. For KVM images I use DRBD device with GFS2 on it. Everything works fine except GFS2 automounting after server restart. I put in fstab: /dev/drbd0 /cluster/drbd0 gfs2 rw,noatime,nodiratime,_netdev 0 0 Manually it…
Anton
  • 115
  • 10
3
votes
4 answers

How to move the MySQL datadir with minimal downtime?

Let's say I have partition sda2 mounted on /var and it's almost full. I have a second disk sdb whose partition sdb1 I want to mount as /var. Now since a running service (mysql) is using /var all the time, is there a way to switch without stopping…
JohnnyFromBF
  • 1,259
  • 6
  • 21
  • 25
3
votes
2 answers

EC2 instance ssh connection not working

I tried to connect to my EC2 Ubuntu LTS instance but I failed. The error message I got like below: ssh: connect to host ec2-79-125-83-13.eu-west-1.compute.amazonaws.com port 22: Connection refused I checked the instance log, the last lines…
zontragon
  • 275
  • 1
  • 4
  • 14
3
votes
3 answers

Mount /etc/fstab at startup

I already added the remote directories I want mounted at startup in /etc/fstab, but when I reboot, they don't get mounted. If I run mount -a it all works, but it appears that mount -a doesn't get executed at boot. Is there something I need to enable…
Eduard Luca
  • 371
  • 2
  • 9
  • 19
3
votes
2 answers

How to enable ACLs by default on all filesystems?

Is there a way in linux to make "acl" part of the default mount options, so that it does not need to be specified individually for each filesystem in fstab?
Ryan C. Thompson
  • 489
  • 5
  • 12
3
votes
3 answers

Tell ubuntu to ignore dead hard drive during booting?

How can I tell Ubuntu to ignore my dead hard drive during booting? I know my secondary hard drive is bad, but I cannot take it out. Every Reboot takes forever because Ubuntu tries to read from it for a long time and reports errors: [ 228.984480] sd…
Frank
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,113
  • 2
  • 10
  • 19