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
0
votes
0 answers

Read hostname from a secondary filesystem

I'm trying to customize a preinstalled Ubuntu image for VM instances. My idea was to add a secondary filesystem to /etc/fstab (let's call it /config) and then symlink all relevant config files to that filesystem. This approach works fine for…
main--
  • 101
0
votes
1 answer

fstab configuration for esxi datastore-based hard drive

I've got the following drives on my server NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 86.6M 1 loop /snap/core/4571 loop1 7:1 0 86.6M 1 loop /snap/core/4486 sda 8:0 0 16G 0 disk ├─sda1 8:1 0 1M 0…
Syntax Error
  • 155
  • 1
  • 10
0
votes
1 answer

How to make initrd of Ubuntu 16.04 mount /home automatically in addition to /?

This is a follow-up to a former question about systemd, BTRFS, /home being an individual subvolume and the following restriction of systemd I would like to work around: The file system where the linked unit files are located must be accessible when…
0
votes
3 answers

Why can't systemd find service files within a BTRFS subvolume within a BTRFS root file system?

I've installed Ubuntu 16.04 LTS Server using BTRFS and got the following setup according /etc/fstab: # # / was on /dev/sda1 during installation UUID=0841ef72-e9d4-45ca-af22-a403783859c6…
0
votes
1 answer

Debian 9 fstab two mount points (uuid) same destination

I have encrypted luks partition. Key file is located on USB flash drive. I also created copy of that flash drive to another flash. How I can add two mount points in /etc/fstab that points to same target directory. Booth flash drives to server not…
Guntis
  • 673
  • 1
  • 10
  • 20
0
votes
1 answer

External HD, fstab

Okay, so I have this external (USB) HD that is sometimes (read: almost always) connected to my server. I want to mount the partitions on this HD to my own configured mount points, via fstab. What is the correct magic incantation for fstab entries if…
0
votes
1 answer

Directory listing symbolic link in apace

Platform : Centos 7 Scenario : I have a drive "/mnt/ELEMENTERY-1TB" mounted with fstab UUID=a6339f33-1c61-4c2c-a490-04c83ccfb4d6 /mnt/ELEMENTERY-1TB/ ext4 defaults,errors=remount-ro,context="system_u:object_r:samba_share_t:s0" 0 1 -, Which i…
Rahul V Sharma
  • 141
  • 2
  • 7
0
votes
1 answer

NFSv4 client unable to mount export containing brackets or spaces but works on NFSv3

There is an issue with NFSv4 when you try to mount a path containing a space and or a bracket character. NFSv3 works fine using the path that uses a symbolic link to the actual folder and NFSv4 does not. I am unable to change the Dropbox…
Brad
  • 250
  • 1
  • 11
0
votes
0 answers

fstab entry to mount NFS from NAS, do I need a password?

[CentOS7, Western Digital myBook NAS] I need to mount a NFS from an NAS. I am able to do this manually from the console with this command that doesn't require me to add a password on the command line. sudo mount 192.168.1.222:/DataVolume/MyShare…
WestHamster
  • 101
  • 1
  • 1
0
votes
2 answers

SDFS filesystem automount on start-up

Just started to test http://opendedup.org/ So I did this: # mkfs.sdfs /dev/vdb --volume-name=pool1 --volume-capacity=100GB # mkdir /mnt/pool1 # mount.sdfs pool1 /mnt/pool1/ The result of this line is empty: # ls /dev | grep pool1 How to automount…
A_buddy
  • 35
  • 2
  • 11
0
votes
1 answer

NFS transfer delay

I adopt a bunch of webserver with a NFS storage behind the setup from an administrator who left our company. The setup consists of eight webservers and one NFS storage server which work together. The NFS storage server is mounted in the /etc/fstab…
0
votes
1 answer

usb external hard drive will not mount on boot

Server OS: Debian Stretch fdisk -l http://paste.debian.net/932334 fstab http://paste.debian.net/932336 journalctl -xb paste.debian.net / 932337 zoneminder: wiki. zoneminder. com / Using_a_dediated_Hard_Drive I have tried everything from specifying…
0
votes
1 answer

Where is the filesystem marked as "erroneous" with /etc/fstab errors=continue setting?

From man mount errors=continue in /etc/fstab means: ignore errors and just mark the file system erroneous and continue Where is the filesystem marked erroneous? I would like to set up an alert based on this (cron->email for example), but don't…
Magneon
  • 193
  • 5
0
votes
2 answers

Troubles with swap on dm-crypt/LUKS partition

I have created two dm-crypt partitions during Debian install: sda2 sda2_crypt swap sda3 sda3_crypt / I used 7.8.1 netinstall ISO. Later I have added additional dm-crypted drive sdb: # cryptsetup -h=sha256 -c=aes-xts-plain64:sha1 -s=256…
A_buddy
  • 35
  • 2
  • 11
0
votes
0 answers

Mount LVM device

I am using Arch Linux and want to mount my two disks, /dev/nbd1 and /dev/nbd2, at the same mount point. I created the mount at /share/data and added the following to /etc/fstab: /dev/vg_data/volume /share/data ext4 defaults 0 1 Where vg_data is an…
ChaChaPoly
  • 243
  • 1
  • 3
  • 15