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

241 questions
5
votes
1 answer

Reconnect Attempts for CIFS share

I have a CIFS share mounted in the FSTAB on Ubuntu server, which connects to our NAS and works without issue. Last night we had an issue with the SAN for about 12 hours. We corrected the problem and the Windows boxes restored their mappings. The…
Davin
  • 51
  • 1
  • 4
5
votes
1 answer

Centos - fstab - mount keeps changing

I've had this linux machine running for a few years now, no problems etc. Very happy. Last night I did some updates and when I booted up this morning my dual screens were screwy so I updated the Nvidea driver with NVIDIA-Linux-x86_64-295.49.run the…
Andrew
  • 389
  • 1
  • 8
4
votes
1 answer

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 main contrib non-free Here is my complete…
amrbcl
  • 43
  • 5
4
votes
2 answers

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 to them initially. This caused various services to…
Alex Reynolds
  • 453
  • 2
  • 9
  • 20
4
votes
3 answers

What is the failed dependency during cryptography setup of systemd?

I'm using Ubuntu 16.04 LTS Server in a VM with one unencrypted hard disk for / and an additional LUKS-encrypted one for some arbitrary data. The encrypted disk is opened and mounted with a password manually at the shell after the system has bootet…
4
votes
1 answer

samba share in /etc/fstab is ignored during mount -a but manual mount works

It's one of these problems I'm running into every time that I set up a server :-( I have an Ubuntu server 16.04 and would like to auto-mount a samba share. In my /etc/fstab I have the entry: //10.10.2.2/share /media/share cifs …
DerNils
  • 133
  • 2
  • 5
4
votes
1 answer

Auto-mount SFTP share in fstab

I have a SFTP share on my server wich use standard authentication. On my client, I have edited the /etc/fstab file and added : user1@192.168.1.50:/ /mnt/share fuse.sshfs port=22,defaults,_netdev 0 0 I mount the share with the command : mount…
Kamiz
  • 43
  • 1
  • 3
4
votes
1 answer

Cannot remove mount option "discard" on an ext4 file system

I try to turn off "discard" on an ext4 file system but I cannot succeed. I tried to add "nodiscard" option in /etc/fstab but I can still see this: # tune2fs -l /dev/md2|grep disca Default mount options: journal_data_writeback user_xattr acl…
Alex Flo
  • 1,711
  • 3
  • 17
  • 23
4
votes
2 answers

Converting Debian fstab to use UUIDs via linux-base?

We have a few Debian 5 systems that are still using /dev/hda in the fstab. We'd like to covert them to using UUIDs. This is supposed to be done automatically via the "linux-base" package (postinst), but for some reason it's not kicking in (perhaps…
DAM
  • 41
  • 2
4
votes
3 answers

Why is my filesystem being mounted read-only in linux?

I am trying to set up a small linux system based on Gentoo on a VirtualBox machine, as a step towards deploying the same system onto a low-spec Single Board Computer. For some reason, my filesystem is being mounted read-only. In my /etc/fstab, I…
Tim
  • 257
  • 4
  • 5
  • 12
4
votes
2 answers

Pass Column of fstab

If I have the 6th column in fstab (the pass column) set to 0, does that mean checks will never be forced at boot regardless of anything like File System State, Mount Count, and Check Interval on the file system itself (see dumpe2fs)? The fstab…
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
3
votes
0 answers

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 probe commands, etc. were successful and the two…
hpy
  • 835
  • 3
  • 18
  • 28
3
votes
2 answers

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 deprecated in near future. Without this option…
3
votes
1 answer

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 upgrading through 16.04 to Ubuntu 18.04, thanks to…
sebt
  • 133
  • 5
3
votes
1 answer

mounted windows disk: incomplete directory listing

I have a series of Windows shared disks mounted on my Linux machine. I have lines like this in /etc/fstab: //10.5.0.136/i /media/i cifs…
trosendal
  • 73
  • 7
1 2
3
16 17