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
15 votes
3 answers
13k 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 ...
2 votes
1 answer
58 views

External hard drive unmounts when spun down

I'm using a Raspberry Pi 5 with an external hard drive connected via USB 3. On boot, it is mounted with the following entry in /etc/fstab: LABEL=external /mnt/external ext4 defaults,noatime,nofail 0 2 ...
0 votes
0 answers
44 views

Debian 12 and NTFS permissions

Back in Ubuntu 20.04 LTS I could copy to and from NTFS partitions without problems. Practically all apps had access to everything. Then there was an accident that made me not just upgrade to 22 but ...
1 vote
3 answers
6k views

fstab cifs share not mounting on reboot

I have a cifs share connectin a windows folder to a debian machine, however I cannot get it to mount on boot using fstab. I have the credentials stored in a file with 600 permissions. //192.168.1.72/...
0 votes
0 answers
53 views

sshfs mount causing system to be very slow when remote is down

What is it about using sshfs to mount a remote directory that would cause the following behavior and how do I avoid it? I have multiple Linux systems and have used sshfs to mount a connection from one ...
1 vote
0 answers
111 views

How to Safely Copy Entire Ubuntu Root Directory to Different Drive and use it as system drive via SSH?

I'm currently maintaining a remote Ubuntu server with two drives: one SSD and one HDD. The HDD is currently mounted at /, serving as the system drive, while the SSD is empty and mounted at /mnt/nvme. ...
0 votes
2 answers
131 views

How can fstab direct linux to mount the root directory if /etc/fstab is in the same partition as the the root directory?

How can fstab direct linux to mount the root directory if /etc/fstab is in the same partition as the the root directory? Does the operating system partition (typically mounted at /boot) have some sort ...
0 votes
0 answers
20 views

Virtual machine isn't recognizing file changes when altered on host machine unless "ls -l" is triggered

I am seeing a weird issue on a virtual machine running on a server of mine. I set up a little test scenario below that illustrates the symptoms of what I am experiencing and I can't figure out what ...
0 votes
1 answer
4k views

Dracut Emerg Shell: Mount LVM2 volume

How can I mount a (LUKS encrypted) LVM volume in the dracut emergency shell? I made fatal changes to /etc/fstab that needs to be undone. I did cryptsetup luksOpen /dev/mmcblk0p2 crypthome and ...
0 votes
0 answers
38 views

Default mount options differ?

I usually mount my drives via fstab with the option "defaults". Today, out of curiosity, I checked what options that actually would set mount. Now what kind of surprised me was that my EXT4 ...
0 votes
0 answers
45 views

Optimal way to link cache folders into different location

I use Arch Linux and I have spare m.2 SSD which I use for SWAP, but I have huge space left which is unused, so I would like to use it for cache / temp files too (so I can save some writes on my ...
0 votes
1 answer
354 views

VMware mount shared folder in specific folder on linux guest

I would like to mount a VMware shared folder to a location other than the default. The default mount path for shared folders in linux guest as of VMware Workstation 15 (2023) is: /mnt/hfgs/[...
20 votes
2 answers
14k views

Automounting USB drives on a headless systemd linux box

Approaches to auto-mounting devices in Linux keep changing, and googling returns quite a few solutions with various degrees of applicability for modern systemd-based boxes. The following approaches ...
0 votes
1 answer
29 views

Does fsck.mode=force in GRUB overrides 6th column option in fstab?

I set fsck.mode=force fsck.repair=yes against GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub file. Will this option override numbers set in the 6th column of /etc/fstab? For example, will my root ...
3 votes
1 answer
4k views

SSHFS mounting with FSTAB during boot (Linux / Debian)

Is there anyone out there who can help me try to "translate" this SSHFS command to a proper fstab-line? I already tried once and messed up with whole FSTAB and boot. sshfs user@remoteserver....
6 votes
2 answers
11k views

"Windows is hibernated, refused to mount" but fast startup is disabled on Windows 10

I'm trying to mount a Windows 10 partition on Fedora 23, with read-write permitions (but the same problem occurs on Linux Mint 17.3 and Ubuntu 15.10), but everytime I get this message: $ sudo mount /...
0 votes
0 answers
168 views

Debian: mounting cifs shares starts to early or timeouts at boot

I am on debian bookworm and have the following entries in my /etc/fstab; at random, one of these SMB / CIFS shares are not mounted with an error of -112. I think this has to do with the fact that the ...
3 votes
1 answer
13k 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 /...
0 votes
1 answer
507 views

thunderbolt SSD won't mount at boot

My system won't boot when I have my Thunderbolt external SSD in my fstab. I think maybe systemd is trying to mount drives before boltd is running, but I'm not sure how to verify that this is the ...
-1 votes
1 answer
186 views

Can’t make /etc/fstab writable with chmod

I am following the second answer to the post (https://askubuntu.com/questions/178712/how-to-increase-swap-space) to increase swap space but whenever I run ‘’’sudo chmod +w /etc/fstab’’’ I still see “/...
0 votes
1 answer
106 views

Moved /usr to another disk as it was getting too big but now my system won't boot?

Currently I have my arch install (pure arch + hyprland) installed so that my / (root) is on my NVME SSD (which has little space due to windows dual boot) but my /home directory is on my SSHD (hybrid ...
0 votes
0 answers
575 views

fstab being ignored in osx ventura; possible to use it in Ventura MacOS?

I have an OSX running Ventura 13.4.1. I've created an fstab file (in /etc) that contains an entry for mounting a linux server running smb. The entry is correct, and mounts properly when processed with ...
0 votes
0 answers
468 views

How to avoid duplicate mount that was happened by mistake in Linux?

I want to share all our lesson learning about mistake that happened on our production very critical server (RHE 7.6 version). The story is about some mistake in our code that performed by mistake. ...
0 votes
0 answers
53 views

switching on/off second hard drive

I have installed a second hard disk (SATA spinning drive) with several partitions in my VivoBook-ASUSLaptop-X513EA-K513EA with an SSD drive. Now I want this disk not to start and spinning when the ...
1 vote
1 answer
39 views

Can manually mount ThunderBay 8 disks but fstab fails

I had these configured and working in a mergerfs disk pool, ran into an issue and ended up needing to reinstall Ubuntu server. Since then, I can manually mount the drives in my ThunderBay 8 but the ...
0 votes
0 answers
97 views

Why isn't my home partition mounted automatically but mounting it manually in emergency mode works fine?

If I boot my system (Arch), it puts me into emergency mode, and the home (LVM partition) isn't mounted. If I mount it manually with mount /dev/Disks/Home /home, the computer works normally then. My ...
0 votes
1 answer
2k views

Can't change file permissions with chmod in mounted devices

So, I wanted to share my Media via ftp by creating a symbolic link in the home directory of a ftpuser, to my HDD's partition 'Fun Drive'. What I wanted was that the ftpuser couldn't write to the Media ...
32 votes
2 answers
52k views

What is the noauto mount flag for?

Entries in fstab exist ONLY to specify things to mount at system boot or manually with mount -a, right? But I was reading up on the noauto mount flag, which apparently makes corresponding fstab ...
0 votes
0 answers
148 views

Allow owner to read and create files, but not change or delete (mounted ntfs partition)

I would like to: mount my ntfs partition (fstab or mount) configure what is necessary... then what I expect: rm "file_that_existed_before_I_mounted_the_partition" # fails, deletion is not ...
1 vote
3 answers
20k views

No UUID for partition when partitioning a 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 ...
1 vote
0 answers
823 views

Formatting/permanently mounting an nvme1n1 type drive on Ubuntu 22.04

I have an EC2 instance (Ubuntu 22.04), that I would like to add an additional 20 GB drive to. I used the AWS console to create a new 20GB drive, and attached to my instance. When I do lsblk: NAME ...
1 vote
1 answer
197 views

NAS no longer mounting but FSTAB not changed

My Linux box is set up to automatically mount a NAS volume on startup. I did this by including the following line in the FSTAB file. //192.168.1.106/Media/ /media/media cifs users,rw,username=****,...
0 votes
1 answer
2k views

Why linux (ubuntu 22.04.1 LTS) mounts windows (ntfs) partition without any record in fstab?

I just detected that my windows (ntfs) partition is always mounted but doesn't have any record in fstab. How and why ubuntu doing that? Is it not too obscure, why not place a record to fstab, it ...
83 votes
8 answers
419k views

Modify fstab entry so all users can Read and Write to an EXT4 Volume

I have an Ubuntu 10.04 box with an EXT4 partition. This partition is set to automatically mount in /etc/fstab. For the purposes of this post, we'll call it: /media/foo. Unfortunately, only root ...
2 votes
0 answers
221 views

fstab entry for external nextcloud drive is not working

I'm pretty desperate right now... I just want my external hard drive to automount when I reboot my raspberry pi, but the fstab entry is not working and I don't know why. Here is my fstab: PARTUUID=...
0 votes
1 answer
1k views

Does using a credential file for Samba really make anything more secure?

I have been using a separate credential file for Samba as it seems to be the "suggested" way to make things "more secure". However, I have also been trying to figure out how ...
3 votes
3 answers
1k views

OSXFuse mounted directory ownership error with automount SSHFS

I am running on macOS Sierra and I am trying to configure auto-mount of external server's directory via SSHFS and osxfuse. However, every time the disk is being mounted, it is owned by root and normal ...
4 votes
1 answer
6k 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 ...
1 vote
1 answer
2k 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 /...
0 votes
0 answers
186 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 ...
0 votes
1 answer
610 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 ...
3 votes
1 answer
12k 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 ...
9 votes
1 answer
11k 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)...
1 vote
0 answers
220 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/...
0 votes
1 answer
205 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?...
22 votes
5 answers
56k views

Mounting ext4 drive with specified user permission

I want to mount a supplementary ext4 data disk drive with specified rwx permission for a certain user. The mount point is inside the home of such a user and it's owned by the user. I added the new ...
0 votes
1 answer
485 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 ...
0 votes
0 answers
44 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, (...
0 votes
1 answer
415 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>...
0 votes
0 answers
44 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 ...

1
2 3 4 5 6