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
1
vote
1 answer

How to disable automatic and forced fsck on disks in a linux software raid?

This is the /etc/fstab entry of a raid system /dev/md4 that is controlled with mdadm and webmin on an ubuntu 10.04 64 server: /dev/md4 /mnt/md4 ext3 relatime 0 0 We tried to switch off…
mit
  • 1,914
  • 6
  • 29
  • 42
1
vote
1 answer

fstab: Email address as curlftpfs username

I want to mount a ftp share via the fstab file but my username is an email address. How do I enter this in the…
braindump
  • 363
  • 1
  • 3
  • 8
1
vote
3 answers

Need Help with fixing permissions in mounted Drive

I am trying a lot still my problem is not solved. I have a partion called Server and inside it i have 5 folders like Folder 1 FOlder 2 Folder 3 I am mounting the drive on startup by using following command as told to me by some senoir members and…
John
1
vote
1 answer

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 don't do this, but keep nextcloud/data on the…
Jesse
  • 217
  • 3
  • 12
1
vote
1 answer

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 is mounted properly to /data as expected.…
roehrijn
  • 223
  • 2
  • 8
1
vote
0 answers

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, so I cannot ssh into it to force a umount or to…
Hackeron
  • 111
  • 4
1
vote
0 answers

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 searching in internet, all solved valid answer is by…
Lezir Opav
  • 111
  • 1
  • 6
1
vote
1 answer

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 …
Flo
  • 156
  • 1
  • 7
1
vote
0 answers

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 LVM or ZFS are not well-suited as they require to…
Kalsan
  • 131
  • 3
1
vote
1 answer

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 group that contains these two users (gid=1007)…
1
vote
0 answers

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 mount -a to see if there are any complaints. If…
user411672
1
vote
1 answer

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 0 0 /dev/mapper/vgroot-home /home …
MiK
  • 13
  • 2
1
vote
1 answer

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 share on another RHEL client but the user and group…
intore
  • 121
  • 3
1
vote
1 answer

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 good. ..until I boot up my laptop at work (or any place…
Fractalf
  • 113
  • 1
  • 5
1
vote
2 answers

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 defaults 0 0 /dev/mapper/vg-linux_var /var …
King David
  • 549
  • 6
  • 20