Questions tagged [fstab]

fstab is a file on in Unix / POSIX systems that stores settings about where devices system startup are mounted.

Filter by
Sorted by
Tagged with
1 vote
1 answer
544 views

How best to mount a drive in WSL as a shared drive?

I'm trying to simplify/automate my development environment in Windows, I have a lot of shell files I run on both Windows and the Linux subsystem, I've recently taken to editing my /etc/wsl.conf to ...
user avatar
  • 13
0 votes
1 answer
212 views

Can’t use sudo after umount —all

I tried to unmount all of my fstab mounts by using: sudo umount --all Right after that i tried to remount everything by using: sudo mount -a But got this error: sudo: effective uid is not 0, is /...
user avatar
0 votes
0 answers
43 views

Mac OS doesn't spin down drive despite fstab

I have a drive which has 2 partitions (GUID): macOS - Data -> HFS Windows - Data -> NTFS I don't want to have those partitions mounted by default so I added them on fstab to ignore them on boot ...
user avatar
  • 23
0 votes
1 answer
93 views

Ubuntu / systemd fails to mount bindfs mount on boot

On my Ubuntu 20.04.3 LTS server running as KVM VM, I have defined 4 custom mount points in order to access the host's filesystem. Two of them are 9p mounts and two of them are bindfs mounts that are ...
user avatar
  • 101
1 vote
1 answer
317 views

How to write and save changes to “/etc/fstab” after effectively breaking the “/etc/fstab” on my system. Can only boot to basic terminal

To make a long story short, and to focus the question, I basically need to get root access to my own laptop running Linux Mint to be able to save my changes to the /etc/fstab file. More details: I'm ...
user avatar
2 votes
1 answer
396 views

Processing fstab with mount -a failed

I use Windows 11 as operating system. Its build number is: 22000.348 I installed Debian from store, and then I installed Windows Subsystem for Linux Preview. WSL version is: 2 Debian runs correctly ...
user avatar
  • 143
1 vote
0 answers
33 views

Linux Kernel 5.15.1, fstab umask=0022, mount command shows fmask=37777600022,dmask=37777600022

I downloaded and compiled the linux-cacule (5.15 for native ntfs3 support) kernel from the AUR repo. Following the documentation here on the new ntfs3 mount option: https://www.kernel.org/doc/html/...
user avatar
0 votes
1 answer
53 views

Ubuntu: Automount /etc/fstab with mount -a, does it disrupt already mounted devices?

Say I have /dev/sdb and /dev/sdc already mounted and I am currently copying files from one to the other. Can I safely edit /etc/fstab to also include yet unmounted /dev/sdd and do mount -a to mount it?...
user avatar
0 votes
1 answer
90 views

umask=0 leads to mount error 32

Like the title say I have some ext4 that mounts well without umask but are innacessible because of permissions, but leads to error wrong fs type when mounted with umask=0 I'm on a live USB. So fstab ...
user avatar
  • 43
0 votes
0 answers
41 views

Why do ntfs entries in fstab have <pass> (fs_passno) 0? [duplicate]

I notice in my /etc/fstab that my root partition has 1 in the <pass> column, and my home partition has 2 in the <pass> column. This is expected. From man pages: The sixth field, (...
user avatar
  • 1,900
0 votes
1 answer
105 views

How to create new users in home partition?

I reinstalled Debian 10 on my computer where my home users directory is in a separate partition. Then I mounted automatically adding the last line: # <file system> <mount point>...
user avatar
0 votes
0 answers
21 views

Prevent swap formating at OS installation

For testing I've created multiple partitions (7) to install different Linux distributions. I have a partition /dev/sda6 for Linux Swap. Each installer (graphical install) decides to reformat this swap ...
user avatar
0 votes
1 answer
51 views

mounting a RAID in /etc/fstab

Hi I have a raid mounting in /etc/fstab /dev/md/debian\:0 /home ext4 defaults 0 0 but if I do mount -a It gives me error mount: /home: special device /dev/md/...
user avatar
0 votes
0 answers
102 views

btrfs volume in fstab fails to boot with compress-force

in my fstab, the btrfs volume boots with no problem when the option set is compress=zstd:15, however, as soon as i set it to compress-force=zstd:15, it fails to boot because of a failed dependency ...
user avatar
1 vote
1 answer
52 views

Selectively mount network drives for non-root users

How should one specify different mounts for different users? The simplest use case is, that different users have their own dedicated storage space in a server (NFS or CIFS), what only they can access. ...
user avatar
0 votes
1 answer
241 views

Overriding udisks2 /media/$USER/mount with custom fixed mount point for specific volume, under Debian Buster

I am using Debian Buster, 10.7, and I am relatively new to udev/udisks2/systemd and have been making a effort to get to know them better and have learned quite a lot, though I cannot seem to figure ...
user avatar
1 vote
0 answers
106 views

Mounting an AFP share over/to ~/Pictures, possible stale share issue (Mac OS X, Big Sur)

I'm trying to over mount an AFP share onto ~/Pictures, and it's not quite working for some reason. Useful information: I'm using AutoMounter (Pro features enabled, full-disk access granted via System ...
user avatar
  • 11
0 votes
1 answer
185 views

Mismatch between /etc/fstab and /etc/mtab

I have a mismatch between /etc/fstab and /etc/mtab. # cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount pt> <type> <options> &...
user avatar
  • 307
0 votes
1 answer
15 views

Do fstab options have to be the same for backup server?

I have two small Ubuntu servers in remote locations backing up data to each other. I'm trying to troubleshoot a problem, and someone suggested my filesystems might be incompatible, and to check fstab ...
user avatar
  • 217
0 votes
0 answers
54 views

Restore fstab with correct UUID so that I can boot with crypto_LUKS partition

I ended up with this error upon boot: Welcome to GRUB! error: no such cryptodisk found. error: disk 'cryptouuid/6e0637...' not found. Entering rescue mode... grub rescue> _ And when I boot live ...
user avatar
0 votes
1 answer
23 views

What are the configs to change after you decrypt a LUKS encrypted partition?

I just decrypted my root partition encrypted with LUKS2. But the fstab still shows the root with the /dev/mapper/secret entry with a different UUID than the partition. Do I have to generate the fstab ...
user avatar
  • 101
0 votes
1 answer
209 views

Fstab: Set permissions of subdirectory

So I have this in my /etc/fstab: UUID=B6C6ECB5C6EC76D1 /windows ntfs-3g defaults,uid=1000,gid=1000,permissions 0 0 My ssh-folder is in this partition, as a result I need to set the ...
user avatar
  • 101
0 votes
1 answer
572 views

How to write -o permission into /etc/fstab?

Set usermap. sudo ntfsusermap /dev/sdb2 #assign user as www-data #assign group as www-data Mount ntfs partition /dev/sdb2 with /mnt/winntfs. sudo ntfs-3g -o permissions /dev/sdb2 /mnt/winntfs Now ...
user avatar
  • 53
2 votes
1 answer
4k views

Remove noexec from /tmp permanently

From a cloud provider I received a RHEL 7 VM which has noexec set on /tmp. [user@myserver]mount | grep /tmp tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,seclabel) /dev/mapper/SystemVG-var_tmp on /...
user avatar
  • 727
0 votes
1 answer
156 views

SSH mount via fstab fails because of root ssh passphrase

At work, we have a dev environment I want to mount so I can work on it locally on Arch with i3 (Manjaro i3). I have SSH and an SSHFS mount set up on my devenv which runs without issues, along with ...
user avatar
  • 1
0 votes
1 answer
355 views

How do I mount a filesystem without the mount point changing owner to root?

I have two samba shares on a remote server (Debian 10, stable) on my home network. On my laptop (Debian 10 stable), I would like to automatically mount these shares to my local filesystem tree. To ...
user avatar
0 votes
1 answer
12 views

x2darray.mount systemd automount unit

I am trying to develop a better understanding of how luks [auto]decrypting and fs [auto]mounting operate under systemD, based on observations as I work through some issues setting up a replacement ...
user avatar
1 vote
1 answer
3k views

mount: /oldssd: special device /dev/sda2/ does not exist (a path prefix is not a directory)

Today my new SSD arrived from Amazon. I installed the SSD and Fedora 31 onto it. I still have my old ssd plugged in. When I try to mount it by the path /oldssd I get error mount: /oldssd: special ...
user avatar
0 votes
1 answer
477 views

Mounting zfs network shares in Ubuntu LTS 20.04 using cifs- mount error(2): No such file or directory

I have 3 Thecus NAS servers: a N5500 (Firmware: 5.03.02), a N5200XXX (Firmware: 5.03.02), and a N5550, (firmware 2.06.02.5.cdv) each configured as RAID 5. The N5500 and the N5200XXX are using zfs and ...
user avatar
0 votes
0 answers
105 views

Sharing a partition between Arch & Ubuntu

I've just installed Arch linux to go alongside Ubuntu, and I'm having some trouble sharing a partition between the two. I've created it in both distros' fstabs, looking like this: UUID=<uuid> ...
user avatar
0 votes
1 answer
91 views

Can't get /boot partition to function, installing debian from host machine: Arch linux

I am trying to be a better Unix user. I want to dual boot my arch-linux virtual machine with Debian. I am using VirtualBox. I am installing Debian through the arch-linux environment (https://www....
user avatar
0 votes
1 answer
159 views

fstab configuration: How to run automatic fsck scan on external harddrive at boot and automate backup to external hard drive

I have an external hard drive (type ext4) to which I make a daily backup of my /home folder and postgresql database via an anacron script. I have run into two problems: 1.) When the computer (Ubuntu ...
user avatar
1 vote
2 answers
5k views

What is the difference between mount -a and mount -o remount /dir?

I have created a new filesystem and mounted it : mount /dev/sda5 /dir Then I added the information about it to the /etc/fstab file so that the filesystem is always mounted at the boot process. ...
user avatar
  • 165
0 votes
2 answers
240 views

Locked out of Debian embedded device after mistake in fstab

I am working with an embedded Linux device with Debian 9 installed. The device has an internal storage and the option to extend the storage with a sd card. I want to use the extra sd card for ...
user avatar
  • 101
9 votes
1 answer
9k views

How to delete system apps in macOS Catalina?

It looks like changes Apple has made in macOS Catalina make it harder to delete system apps. I upgraded my work computer to Catalina today (standard Mac mini), and with it came some new (and some old)...
user avatar
1 vote
1 answer
136 views

how to fix broken fstab that causes / read-only on remote VM?

I broke my fstab by a multi line paste of commands on an AWS ec2. by some sort of miracle, the os still boots. output of mount: ec2-user@host:~ $ mount sysfs on /sys type sysfs (rw,nosuid,nodev,...
user avatar
  • 342
0 votes
1 answer
180 views

Skip mounting of nfs after three attempts

I am using RHEL 6.5 in my company and using a file server(NFS). I have put a mount point address to file server in the client's fstab file like this 10.9.9.25:/opt/Files /opt/Files nfs ...
user avatar
0 votes
1 answer
1k views

NFS Mount works manually, but fstab entry fails

using the command sudo mount 192.168.1.120:/complete /mnt/complete works fine, and I can now see the network files in /mnt/complete. But if I add the exact same command (minus the sudo) to /etc/...
user avatar
  • 3
1 vote
0 answers
303 views

Linux fstab cifs NAS mount shows empty folder

I am trying to mount my Nas in my home directory. This is also no problem at first, but when I restart my laptop Linux mounts it as a network, but the folder is empty. It also only shows the available ...
user avatar
0 votes
1 answer
170 views

FSTAB configuration issue

I have a partition /dev/xvdb which is formatted as ext4 When I try to mount using the below command, it works: sudo mount /dev/xvdb /mnt/app But I want it to mount automatically. So I made the ...
user avatar
2 votes
2 answers
428 views

I can't sudo apt upgrade

I have a new installation of Linux Mint and I cant run apt upgrade without getting this response. How can I fix it? Sorry that it's in german. me@mypc:~$ sudo apt upgrade Paketlisten werden gelesen.....
user avatar
0 votes
3 answers
9k views

no UUID for partition when partitioning new disk

I am working on partitioning a new disk, on which nothing is stored yet, so I also need a completely new partition table etc. To try doing this I first made a gpt partition table and then assigned all ...
user avatar
  • 268
0 votes
2 answers
225 views

Why is /dev/sdxy not recommended when using fstab?

I was reading fstab documentation and they mentioned it is not recommended to use /dev/sdxy in fstab Device : /dev/sdxy (not recommended) I use the same method to mount my hard disk every time. I ...
user avatar
1 vote
1 answer
880 views

Changing file permissions after mounting with fstab

I want to mount a drive with following default permissions: files: -rw-r--r-- folders: drwxr-xr-x owned by default user/group (1000) Which lead me to this fstab entry: UUID=XXX /media/drive ntfs ...
user avatar
  • 68
0 votes
2 answers
1k views

fstab noauto, but automatic if you click on folder

I have a notebook here and network shares. Normally I would want to get them mounted on boot, but this wouldn't be so good on a notebook which isn't allways connected to the right network. So I put an ...
user avatar
  • 31
0 votes
1 answer
1k views

Wait for a specific network to be up before mounting in /etc/fstab (multiple interfaces)

I want to mount a samba share from my NAS on /mnt/Media on boot via cifs. I already added an entry to /etc/fstab (incl. _netdev option). The connection to the NAS is a separate point to point ...
user avatar
1 vote
1 answer
41 views

Mounting USB drive at boot up on a virtualized instance of fedora

I am running Fedora inside of a Type 1 hypervisor(ESXi). In the VM's settings, I am making 2 USB devices available to it, both are of the exact model and storage capacities, however, one is named "AZS"...
user avatar
  • 13
0 votes
0 answers
128 views

RAID card overwrites disk's filesystem signature - and fstab can't mount it

I have a RAID card (Sil3124) in an Ubuntu 18.10 machine. I want to connect independent disks (ext4) to it. After connecting, I find an entry in lsblk with FSTYPE = silicon_medley_raid_member (the ...
user avatar
0 votes
1 answer
844 views

CIFS mount from fstab not working

This method used to work with RHEL 5, and 6, so I used to just add this Line in /etc/fstab: \\192.168.1.50\V$ /mnt/N cifs user,uid=500,rw,suid,username=Administrator,password=password 0 ...
user avatar
  • 2,168
1 vote
0 answers
102 views

A USB drive appears to be unmounting randomly. How do I troubleshoot this?

I have a USB drive holding files for a Plex server. The mounted folder is also shared on my home network using Samba. Nothing has changed recently in either Samba or Plex's config. Lately, the drive ...
user avatar
  • 11

1
2 3 4 5