Questions tagged [fstab]

/etc/fstab is the file in UNIX/Linux systems that defines file systems that are mounted on boot or available to be manually mounted.

/etc/fstab is the file in UNIX/Linux systems that defines file systems (independent directory trees) that are mounted on boot or available to be manually mounted.

66 questions
0
votes
1 answer

NFS mount Red Hat

I am trying to share a folder between two machines. In the A machine I created a folder with 666 permission, in /etc/exports add an entry with (ro,sync) and restart service nfs-server. In the B machine I create a…
raquel666
  • 15
  • 3
0
votes
1 answer

How to add entry to /etc/fstab file using php

Is there any way for add entry to /etc/fstab using php? I have done lvcreate and mount each volume into mountfolder using php. The last step is to edit the mount options in the /etc/fstab file so that the new mount persists after reboot. No…
Sreedevi
  • 107
  • 7
0
votes
1 answer

How do I specify a label/path with special characters as 'ñ' in /etc/fstab?

I know that if a path has spaces one can encode it with \040: Example for path: "//server/folder with spaces" fstab entry: //server/folder\040with\040spaces /mnt/share/folder_local cifs nofail,credentials=/root/.credfile 0 0 But how to fill fstab…
mikk3l
  • 45
  • 7
0
votes
1 answer

Cannot mount windows share on boot using fstab

I've got a problem on Debian 10.11 (but I think it's not only Debian related) with onboot mounting Windows share. cifs-utils 2:6.8-2 amd64 Common Internet File System utilities cat /etc/fstab | grep…
Mario Bash
  • 39
  • 8
0
votes
2 answers

x-systemd.device-timeout in fstab seems not to have effect

In the fstab I have the line LABEL="scratch" /home/frank/ScratchLV ext4 defaults,nofail,x-systemd.device-timeout=9 0 0 but whenever the system boots and the disk is not present, it waits for 90s till the process continues. My…
user855443
  • 2,596
  • 3
  • 25
  • 37
0
votes
1 answer

Automount a NAS to Raspberry Pi Running Raspbian on Reboot

I am trying to get my NAS to automount on reboot. I have a pi3b running Raspbian. Goal is to use it a a plex server, with my files on my NAS. I have googled and found many different answers, yet none seem to work for me... The closest I have…
0
votes
1 answer

How to fetch only the UUID by passing in the size of the disk?

I am trying to mount a disk using ansible automatically using the following command: fdisk -l | grep "64G" | grep -Eo "/dev/sd." This outputs /dev/sda1 and I am adding that to the /etc/fstab/. But I want to add the UUID instead. Is there a method…
veeresh
  • 61
  • 2
  • 11
0
votes
0 answers

Ansible mount module update fstab that fails status check in EC2 Instance

Here is my Ansible Task - That mount a directory with an external ebs volume in EC2 instance to make an Amazon EBS volume available. - name: Create Data directory #1 file: path: "{{ data_directory }}/" state: directory - name: Get the…
royki
  • 1,593
  • 3
  • 25
  • 45
0
votes
1 answer

ceph configure mount vie using fstab

i have successfully mounted ceph using the command: mount -t ceph ceph-mon1.storage:6789:/ /mnt/mycephfs -o name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring but when i try to set it persistent vis fstab it does not work ceph…
Ilia
  • 534
  • 3
  • 21
0
votes
1 answer

I can't mount cephfs to my computer. How can i solve this problem?

I have a cephfs and I need to mount this file system. I have two pools cephfs_data and cephfs_meta. ceph -s output is: cluster: id: 9f3e7f80-4515-4b5f-92f0-4eb49f3cbf44 health: HEALTH_OK services: mon: 2 daemons, quorum…
0
votes
1 answer

Use sed (or awk) to add entry in fstab when match found

I have a need to edit lines in /etc/fstab and add/change fsoptions to lines where a matching volume is found. I have tried using sed and putting found blocks into registers to place them back, but am finding this one a challenge. Perhaps sed is…
xit
  • 135
  • 1
  • 12
0
votes
1 answer

mounting bucket with fstab not working NEWBIE

I'm new on GCP and on linux and I try to mount a bucket on my centos instance using gcsfuse. I tried with a script running at boot but it was not working so I tried with fstab (peoples told me it is much better) But I got this error when I tried to…
0
votes
1 answer

Can't mount /mnt/x after reboot

After rebooting my server, I saw through nagios that my /mnt/gimli was only reachable on read-only mode. But I need it to be writable because some backups go there. To have in in rw mode, I tried unmounting and remounting /mnt/gimli, but got the…
Ethwall
  • 9
  • 3
0
votes
1 answer

Mount any USB key plug on a port usb in the same folder

I'm currently working on a embedded application on a raspberry pi 3 with Raspbian Jessie. The purpose of this applicatin is to write data in an excel on any usb key (which is always plug on the same port on the raspberry pi) Current State…
Julie96
  • 331
  • 1
  • 15
0
votes
1 answer

shell script to add "noexec" and "nosuid" to /var partition

I'm trying to create a small script to add noexec and nosuid to /var partition by modifying the /etc/fstab file. Currently, the /etc/fstab also contains /var/log partition apart from /var partition. When I run my script the changes are being made…
vjoseph1
  • 19
  • 3