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
2 answers

fstab wrong uuid and server in emergency mode

I copied from an old server setup to fstab (unsure now why I did so), and with it I overwrote the correct uuid. When I rebooted the server it started in emergency mode and I suspect the reason is that I have wrong specs in fstab. How can I modify…
0
votes
0 answers

Bind on cifs filesystem overmounts when using `mount -a`

I am using following cifs mount and bind: //myfiler.example.com/share /mnt/mount-path cifs vers=3.0,credentials=/root/.cred,gid=0,uid=0 0 0 /mnt/mount-path/folder-in-share /mnt/archiv bind defaults,bind …
dahe
  • 101
  • 2
0
votes
0 answers

Broken fstab, lvm root file system ubuntu (22.04) urgent help pls - possibly solved but verify pls

I was adding some nfs links to fstab but a stray process filled disk so I lost fstab when trying to save. Am trying to recreate, machine is still live. Found some helpful links, used blkid and think I have put mount for boot device. However the main…
Ilyaka
  • 1
  • 1
0
votes
0 answers

Linux changes mount point permissions after reboot

This is specifically on Ubuntu 20.04, but I believe the behavior is common: Please take this fstab entry, creating a read-only mount: /data/testDir/iso/ubuntu-20.04.4-live-server-amd64.iso /data/testDir/mnt iso9660 ro 0 0 Here is the related…
Rino Bino
  • 511
  • 5
  • 21
0
votes
1 answer

Restrict user's access to only one directory

ServerA needs to have a directory of ServerB mounted in a location, with write permissions. I've been using SSHFS for this. I find SSHFS being very stable (100% reliable), while NFS was not so stable, besides being really hard to configure, and by…
Nuno
  • 553
  • 2
  • 8
  • 26
0
votes
0 answers

`findmnt` and `ls` still see a physically disconnected external storage drive

Here is an /etc/fstab record example of one of the mounts as per x-systemd.automount and other goodies: UUID=XXXX-XXXX /media/XXXX-XXXX auto…
0
votes
0 answers

How to reduce a partition size on Centos 6.10

I'm trying to reduce the size of a partition in a Centos 10 system. I created a bootable thumb drive with Gparted, but it showed no space available to reduce the partition. So I tried resizing the largest filesystem from 1.8 to 1.7 GB using the…
Jack BeNimble
  • 194
  • 11
0
votes
0 answers

NFS mount is gone after reboot, but present in fstab

I have added the following to /etc/fstab, which I understood would automatically mount upon startup of the machine. 192.168.1.236:/volume1/Media /nfs/plex nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0 However every time I reboot my…
Syntax Error
  • 155
  • 1
  • 1
  • 11
0
votes
1 answer

How to mount glusterfs at boot in centOS 7 lxc container?

Need to get a glusterfs volume mounted in a centos 7 lxc container. found this and can do it manually ok... But it seems that adding it in the fstab doesnt work because it gets executed before gluster client is functional? fstab: host:/gv0/Data…
user64
  • 31
  • 4
0
votes
2 answers

What's the most failsafe way to mount remote filesystems at boot?

I am tasked with managing a complex structure of Linux (CentOS 8) VMs and hardware, hosting among other things various SMB and NFS exports. Most of them are simultaneously servers and clients, of one protocol or both. Ideally of course I'd want all…
0
votes
2 answers

What is the proper way to configure /etc/fstab on an ec2 instance?

I'm new to ec2 and don't know much about /etc/fstab. In addition to the root volume on my ec2 instances, I have a volume mounted to /data and a third volume for swap. I'm having trouble figuring out the correct entries for my fstab file and I'm…
StevieD
  • 514
  • 8
  • 24
0
votes
1 answer

Parse error for /etc/fstab trying to mount smb share

I am using FileMaker Server 19 in CentOS 7.8 and trying to mount a smb share for the backup of databases. I have entered into fstab: "//172.30.x.x/CentOS /opt/FileMaker/FileMaker\040Server/Data/Backups cifs username=mylogin,password=mypassword,…
mr buffy
  • 13
  • 4
0
votes
1 answer

Apache to share a /mount where the web page is stored using the networked connection. This worked using xampp ugh. Now using ubuntu

So this page Where to put the web pages in /var/www/ or /var/www/html/ in apache? is similar to what I am asking. The rules wont allow me to ask joining questions to expand on that discussion. There are several others about /mount and fstab that…
0
votes
0 answers

LVM Logical Volumes will not activate on Cloudlinux 7.8

Recently, after a reboot, the system landed in Emergency Mode. The cause appears to be that the system is failing to mount a few of the disks as defined in /etc/fstab. These disks are Logical Volumes. Of the 6 Logical Volumes on the server, 3 are…
0
votes
1 answer

SSHFS mount from fstab fails to authenticate

I created SSH key and transferred it to my target device using ssh-copy-id and now I can ssh targetUsername@targetHost -p 8798 without providing RSA key nor password for targetUsername@targetHost however when I try to mount SSHFS share in fstab…
Etua
  • 15
  • 4