Skip to main content

Questions tagged [fstab]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
64 views

How to Mount a NAS to Linux Server WITHOUT the Server considering the Mount as part of its storage? (Disk Space low even when Server still has plenty) [closed]

I have an Ubuntu Server with 128GB, 28GB is free. I mounted a Synology NAS to the Server at the folder /home/NAS/media using fstab. 192.168.0.88:/volume1/Stash /home/NAS/media nfs auto,defaults,nofail ...
user3622260's user avatar
0 votes
0 answers
181 views

Creating a udev rule to mount a drive

I got a drive attached to a Ubuntu 22.04 system which randomly disconnects sometimes (I guess a loose contact is the problem). Since I need this drive I wanted to find a way to automount the drive (...
Felix Schneider's user avatar
0 votes
1 answer
31 views

How to add assignments to EC2 host /etc/fstab when identifiers are not unique?

I have volumes connected to an AWS EC2 instance running Linux and would like one of them to be mounted as root / on reboot. One option is to put the device UUID into the host's /etc/fstab entry. ...
Alex Reynolds's user avatar
2 votes
1 answer
250 views

Remounting tmpfs with a different size during boot

I have a custom Linux distribution (based on Debian), which has a lot of custom tooling for example changing system configurations (like network etc. These configuration files are.json files, which ...
Xershy's user avatar
  • 123
1 vote
0 answers
201 views

Can I set some lines in /etc/fstab to not mount at boot?

I have several lines in /etc/fstab that rely on an encrypted disk being open. I don't want to prompt for a crypt password on boot so that other people can reboot the server without knowing the ...
Nick's user avatar
  • 4,646
0 votes
0 answers
186 views

uploading files into sftp share generates empty files

I have successfuly mounted an sftp share on my Ubuntu 22.04 desktop into the location: /mnt/sftp/ I am facing an unexplained behavior: When uploading file using software like Filezilla, everything ...
FatRabbit's user avatar
  • 142
0 votes
0 answers
422 views

When mounting external disk in fstab via fuse.sshfs it requires password although identityfile is set

Using Ubuntu 22.04. My fstab entry: some_user@some_storagebox.com:~/somedir /mnt/volume fuse.sshfs defaults,allow_other,reconnect,_netdev,users,ServerAliveInterval=15,identityfile=/root/.ssh/id_rsa,...
fueggit's user avatar
  • 113
1 vote
2 answers
389 views

PHP-FPM starts before the web folder mounts in /etc/fstab, throws error

I'm running a LAEMP reverse proxy server on Arch in the cloud. I have my nextcloud/data folder mounted to an attached storage drive at /mnt/hdd/nextcloud/data, linked to /srv/www/nextcloud/data. If I ...
Jesse's user avatar
  • 261
1 vote
1 answer
447 views

Alpine Linux 3.17 does not mount CephFS during boot

I have configured a CephFS fuse mount in fstab on my Alpine Linux 3.17 as follows: none /data fuse.ceph ceph.id=filer,ceph.client_mds_namespace=files,_netdev 0 0 When I issue a mount -a the filesystem ...
roehrijn's user avatar
  • 223
1 vote
2 answers
1k views

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 ...
Rikisorsa112's user avatar
1 vote
0 answers
234 views

How do I prevent a faulty USB drive from freezing my Ubuntu server?

I have an issue where a mounted external USB hard drive fails, this causes the IO Wait of the system to spike (I can see this in Grafana) but shortly after the system becomes completely unresponsive, ...
Hackeron's user avatar
  • 111
0 votes
0 answers
670 views

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 ...
Ilyaka's user avatar
  • 1
1 vote
0 answers
834 views

setfacl operation not supported ubuntu wsl

i want to set acl certain file in /var/www/html/index.htm inside Ubuntu WSL 20.04 (win 10) using : $ sudo setfacl -m u:wira:rwx sshd_config setfacl: sshd_config: Operation not supported after ...
Lezir Opav's user avatar
1 vote
1 answer
875 views

dns cifs share entry in fstab not re-mounted on IP change, while used by smbd

I set up a CIFS share on my ubuntu Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 using an fstab entry: //mystr.myserver.com/backup /mnt/mystr cifs iocharset=...
Flo's user avatar
  • 166
2 votes
1 answer
1k views

New LVM VDO logical volume inactive at startup, even with "--activate y" parameter

I'm trying to make LVM VDO work on my Debian 11.3 (test VM installed from scratch). I've shared my installation procedure here if someone wants to reproduce the problem. Now I'm stuck with a "...
tigerblue77's user avatar
-1 votes
1 answer
30 views

Server stucked in reboot

When I reboot the server, it is getting stucked here. It may have problem with this webdav mounting in fstab: https://webdavdir /home/user/Maildir davfs rw,uid=user,gid=user,file_mode=0660,dir_mode=...
Ünsal Korkmaz's user avatar
-2 votes
1 answer
2k views

Hardening /home Directory via /etc/fstab

I am on Ubunto 20.04 server using a single partition at / for all directories as I am running web & mail servers. I hardened tmp , /var/tmp , & /run/shm using: none /tmp tmpfs nodev,...
Maestro223's user avatar
1 vote
0 answers
231 views

Mount qcow2 image on boot using fstab

I'm intending to make individual directories snapshotable in order to be able to experiment and rollback. Since there are many such directories and their contents can vary in size, solutions such as ...
Kalsan's user avatar
  • 131
1 vote
1 answer
1k views

Is UID required when providing a GID in an fstab entry for an ntfs drive?

I have an Ubuntu Server 20.04 installed on a Raspberry Pi 4. I am trying to mount a hard drive that should be accessible by two different samba users (user1, uid=1001 and user2, uid=1002). I created a ...
Prateek Verma's user avatar
0 votes
1 answer
1k views

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, ...
Nuno's user avatar
  • 653
0 votes
0 answers
228 views

`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 noauto,nofail,nouser,uid=root,gid=users,umask=007,X-mount....
Alexander Shukaev's user avatar
2 votes
0 answers
2k views

Does `mount -a` make sure that I have a correct /etc/fstab file

Once a while, I need to adjust mountpoints of a server and it is not always possible for me to reboot the system right away. Therefore, to check if my revision to /etc/fstab is correct, usually I do ...
user avatar
0 votes
0 answers
206 views

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 ...
Jack BeNimble's user avatar
0 votes
0 answers
2k views

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,...
Syntax Error's user avatar
0 votes
1 answer
371 views

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 ...
user64's user avatar
  • 31
3 votes
1 answer
1k views

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 [email protected] is done. How do I ...
Steven T. Snyder's user avatar
1 vote
1 answer
133 views

replace phases of fsck in fstab

I'm searching some way to replace fsck phases in my fstab file but only for line which contains specific path. currently fstab looks like that: /dev/mapper/vgroot-root / xfs defaults ...
MiK's user avatar
  • 13
1 vote
1 answer
3k views

Same NFS share on different clients with different local users

I have a NFS share on Netapp that is mounted on a RHEL client and I've set its owner and group owner from this client with chown command. User and group are local on this server. I mount the same ...
intore's user avatar
  • 121
0 votes
2 answers
1k views

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 ...
Argy Megalios's user avatar
0 votes
2 answers
6k views

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 ...
StevieD's user avatar
  • 562
0 votes
1 answer
2k views

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/...
mr buffy's user avatar
0 votes
1 answer
173 views

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 ...
Chris Owen's user avatar
0 votes
0 answers
896 views

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. ...
Pierowheelz's user avatar
0 votes
1 answer
773 views

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 ...
Etua's user avatar
  • 25
3 votes
0 answers
2k views

NFS4 and bind mount issues

Ok guys I have a weird issue. After recently adding a bind mount 2 folders deep inside an existing NFS4 export, when I mount that NFS export on my client, it leads directly to the bind mount. No ...
Jordan Ketterer's user avatar
0 votes
1 answer
3k views

How to move a subvolume to a new drive in btrfs?

I am trying to move my /srv, /var/lib/mysql and /home directory to another drive ( a bigger one with RAID1). I did some research on how to go about doing this and I kind of did most of it. However, ...
FlowRaja's user avatar
  • 101
3 votes
0 answers
2k views

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 ...
MauvaisJoueur's user avatar
0 votes
1 answer
441 views

Can all docker volumes be into a partition and would it be good for backup -cloning- purposes? (ex:/var/lib/docker/volumes/ in /dev/sdb1 @fstab)

I'm thinking of migrating all our documents and spreadsheets infrastrucure from and old standalone samba server to one of those popular self-hosted solutions and I'm trying to do the best long-lasting ...
Fernando Mengel's user avatar
0 votes
1 answer
2k views

Cloud Linux 7 mount /tmp with exec in fstab

I have the following fstab UUID=3d301281-7be7-4a53-8f19-42f8c7d061d2 / xfs defaults,uquota 0 0 #/usr/swpDSK swap swap defaults 0 0 #/usr/tmpDSK /tmp ext3 ...
Chris Muench's user avatar
0 votes
1 answer
1k views

log in fails when mount point changes

I am mounting a windows 10 share on a Centos 7 machine via /etc/fstab like so: //10.11.11.7/shared_folder /path/to/mount_point cifs user,rw,suid,uid=0,gid=1111,username=win_user,password=win_user,...
Frank Rueter's user avatar
0 votes
1 answer
3k views

gcsfuse automount on a non root user

Currently I have a VM that runs CentOS 7 and would like to auto mount a bucket using a non root user. I have installed NextCloud and would like to point local data folder to Google Cloud Storage. ...
el.severo's user avatar
2 votes
1 answer
7k views

How to STOP nfs from trying (and retrying) to mount an offline server

I have a home server running ubuntu which exports a nfs volume which I'm mounting on my laptop like this -> % cat /etc/fstab ... media:/mnt/data /home/alf/media nfs _netdev 0 0 All is ...
Fractalf's user avatar
  • 123
0 votes
0 answers
118 views

GCSFuse keeps generating dummy files on mounted bucket that can't be deleted due to retention policy

I'm currently setting up a GCP storage bucket on my instance which will be used for backups. I have currently configured fstab to mount the bucket on startup using the following config. cpanel1-vm-...
Cody Rees's user avatar
3 votes
2 answers
4k views

NFS Stale File Handle After NFS Server Reboots: Why Does This Happen and How Does Industry Handle This?

This problem has been driving me crazy. I have an NFS server with NFS shares mounted on various clients. However, whenever I have to reboot the NFS server, I invariably end up with a bunch of "Stale ...
TorqueWrench's user avatar
0 votes
1 answer
700 views

Unable to mount via /etc/fstab

all: Bringing up a new server, I have the following situation. I can mount the device at /dev/sda1 manually via this command: mount /dev/sda1 /owncloud But when I use the recommended approach (UUID)...
Dennis 's user avatar
  • 188
0 votes
1 answer
369 views

Why /tmp is bound in /tmp ? How can I remove this bound

In Scientific Linux 6, a clone of RHEL6, I have the following mtab file: /dev/sda2 / ext4 rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 tmpfs /dev/...
famedoro's user avatar
  • 145
0 votes
1 answer
1k views

How to map a UUID directly to both a device name (e.g. /dev/sda1) AND a mount point (e.g. /mnt/home2)?

I know how to map /etc/fstab to the mount point with the device name: /dev/sdb1 /mnt/home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0 This practice is however highly ...
user avatar
1 vote
2 answers
1k views

repair file system by edit the fstab file

is it possible to run xfs repair by re-edit the fstab file? /dev/mapper/vg-linux_root / xfs defaults 0 0 UUID=7de1dc5c-b605-4a6f-bdf1-f1e869f6ffb9 /boot xfs ...
King David's user avatar
0 votes
1 answer
2k views

How to move /var back to Root from a different filesystem

I need to move my /var (dev/sdc1) back to the / (dev/sda2) from a different file system. I've resized the / partition and want to move /var back to / partition and resize /dev/sdc1 filesystem to mount ...
Sam89's user avatar
  • 11
0 votes
1 answer
2k views

FSTAB CIFS kerberos

How can I force fstab to mount CIFS with machine account kerberos? From logs it shows that cifs.upcall goes to: cifs.upcall: get_cachename_from_process_env: cachename = FILE:/tmp/krb5cc and not on /...
Verboy's user avatar
  • 1

1
2 3 4 5 6