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
1 answer
34 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 "...
user avatar
-1 votes
1 answer
18 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=...
user avatar
-3 votes
1 answer
139 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,...
user avatar
1 vote
0 answers
35 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 ...
user avatar
  • 131
1 vote
1 answer
200 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 ...
user avatar
0 votes
1 answer
99 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, ...
user avatar
  • 431
0 votes
0 answers
39 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....
user avatar
1 vote
0 answers
198 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
162 views

Can't mount any SMB with vers greater than 1 on Debian

I'm trying to mount a samba folder from a Debian Bullseye but I don't want to use NT1. this is the line I have in /etc/fstab: //192.168.1.X/folder /media/folder cifs guest,uid=redacted,gid=...
user avatar
0 votes
0 answers
78 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 ...
user avatar
0 votes
0 answers
462 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,...
user avatar
0 votes
1 answer
114 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 ...
user avatar
  • 31
3 votes
1 answer
389 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 systemd.fsck@dev-sda1.service is done. How do I ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 13
0 votes
1 answer
949 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 ...
user avatar
  • 111
0 votes
2 answers
375 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 ...
user avatar
0 votes
2 answers
785 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 ...
user avatar
  • 412
0 votes
1 answer
527 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/...
user avatar
0 votes
1 answer
61 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 ...
user avatar
0 votes
0 answers
330 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. ...
user avatar
0 votes
1 answer
300 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 ...
user avatar
  • 15
2 votes
0 answers
862 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 ...
user avatar
0 votes
1 answer
1k 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, ...
user avatar
  • 101
3 votes
0 answers
854 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 ...
user avatar
0 votes
1 answer
153 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 ...
user avatar
0 votes
1 answer
721 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 ...
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,...
user avatar
-1 votes
1 answer
1k 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. ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 113
0 votes
0 answers
69 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-...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
0 votes
1 answer
159 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)...
user avatar
  • 157
0 votes
1 answer
263 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/...
user avatar
  • 135
0 votes
1 answer
537 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
251 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 ...
user avatar
0 votes
1 answer
614 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 ...
user avatar
  • 11
0 votes
1 answer
1k 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 /...
user avatar
  • 1
4 votes
1 answer
10k views

Unable to mount cifs share in fstab with spaces in share name

I'm running a Debian Squeeze system and trying to mount a windows share in /etc/fstab. I've got an existing cifs mount working, but it's a simple //xx.xx.xx.xx/sharename situation. This second one isn'...
user avatar
  • 43
4 votes
1 answer
1k views

Run ZFS as non-root

I'm running Debian 10 in a VM (using KVM) and I want to use ZFS as a non-root user. Here is what I did. I added this line to my sources.list file deb http://deb.debian.org/debian buster-backports ...
user avatar
  • 43
1 vote
2 answers
823 views

ssh connection refused after editing fstab in Google cloud vm

I'm getting ssh: connect to host xx.xx.xx.xx port 22: Connection refused after updating fstab for mounting Google bucket. fstab entry that I have added is as follows, bucket mount_point fuse rw,...
user avatar
  • 153
2 votes
0 answers
162 views

Raid filesystem check or mount failed (after probable physical shock)

I was redirected here from askubuntu. I work on a server where the operating system is installed on an SSD but data storage is on internal harddrives set up in a RAID system. Recently I have been ...
user avatar
  • 21
3 votes
0 answers
1k views

Previously mountable GlusterFS volume now fails to mount with several errors

I've previously set up a couple of GlusterFS volumes (called cyclorana0 and cyclorana1) across two nodes (with IPs 10.0.2.4 (hostname alboguttata) and 10.0.2.5 (hostname verrucosa)) on my LAN. The ...
user avatar
  • 835
4 votes
2 answers
887 views

How to preserve drive device paths for AWS EC2 instance between reboots

I rebooted a m5d.xlarge EC2 instance running Ubuntu 16.04.5 LTS (xenial) using shutdown -r. Upon reboot, various drive mounts defined in /etc/fstab did not line up with the device assignments given ...
user avatar
3 votes
2 answers
7k views

XFS with No Barrier Mount option deprecated

I tried to perform SQL Server database restore with xfs filesystem and barrier=0 in Azure cloud environment. It performs restore of some 15GB data in around 8 minutes. I heard this option is getting ...
user avatar
1 vote
0 answers
51 views

After a Debian 9.9 upgrade my server doesn't boot because of the disks in fstab

After a Debian 9.9 upgrade I restarted the server to load the new kernel image, Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux, and it didn't boot anymore. The server has 4 ssd disks, the main ...
user avatar
  • 21
0 votes
1 answer
148 views

mount command fstab in linux

i have a command to manually mount windows shares into my linux system. Unfortunately the paths are not mounted when the system reboots. How can I add the path to the fstab table ? mount -t cifs -o ...
user avatar
1 vote
1 answer
303 views

Mount merged partition at boot, fuse module missing

I have a merged partition from 3 different hard drives with mergerfs. I set it up following this tutorial. To automate the mounting I added instructions in the fstab : UUID=b3c8301c-5d12-4ab1-ab8c-...
user avatar
  • 131
4 votes
1 answer
2k views

Swapfile mount (/etc/fstab): "swap swap" or "none swap"

There seems to be conflicting information on how to mount a swapfile. swap swap: none swap: both: Both ways work. What is the official recommendation and how does each way affect swapping?
user avatar
  • 1,707
1 vote
0 answers
75 views

Cryptodevice on top of DRBD with CentOS7

I have created a replicated drbd device. On top, I have create an encrypted volume with cryptsetup and finally formatted with ext4. Additionally, I am using a keyfile to be able to automount the ...
user avatar
3 votes
1 answer
2k views

Continue boot with offline fstab disk (linux/systemd)

During boot, with pre-systemd versions of Ubuntu server (eg. 14.04), if a non-critical fstab disk was offline, the system would wait to mount the disk (30s iirc), timeout and continue booting. Since ...
user avatar
  • 133

1
2 3 4 5