Skip to main content

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
0 votes
0 answers
322 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 ...
Edward's user avatar
  • 101
0 votes
0 answers
243 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 ...
AdvApp's user avatar
  • 193
1 vote
0 answers
291 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. ...
dzwiedzn7's user avatar
0 votes
2 answers
303 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 ...
John's user avatar
  • 21
0 votes
0 answers
28 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 ...
97WaterPolo's user avatar
0 votes
0 answers
183 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 ...
Noobman's user avatar
  • 91
0 votes
0 answers
60 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 ...
tomsk's user avatar
  • 219
1 vote
1 answer
1k 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/[...
hatalmasalma's user avatar
2 votes
1 answer
127 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 ...
Thomas's user avatar
  • 21
0 votes
1 answer
74 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 ...
Faxopita's user avatar
0 votes
0 answers
231 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 ...
tkhobbes's user avatar
  • 101
0 votes
1 answer
737 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 ...
Michael Muller's user avatar
-1 votes
1 answer
309 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 “/...
Aaron's user avatar
  • 99
0 votes
1 answer
162 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 ...
user14951114's user avatar
0 votes
0 answers
832 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 ...
Sam Marrocco's user avatar
0 votes
0 answers
708 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. ...
King David's user avatar
0 votes
0 answers
56 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 ...
Asklep's user avatar
  • 147
1 vote
1 answer
50 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 ...
nairbosaurus's user avatar
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 ...
Vipul Kumar's user avatar
0 votes
0 answers
191 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 ...
lucas.mior's user avatar
1 vote
0 answers
1k 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 ...
EastsideDev's user avatar
1 vote
1 answer
217 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=****,...
Richard Cosgrove's user avatar
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 ...
Давид Шико's user avatar
2 votes
0 answers
257 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=...
Tim K's user avatar
  • 21
0 votes
1 answer
2k 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 ...
Maverickz's user avatar
4 votes
1 answer
7k 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 ...
Gdfelt's user avatar
  • 43
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 /...
Michael yarshansky's user avatar
0 votes
0 answers
198 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 ...
Philou's user avatar
  • 23
0 votes
1 answer
692 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 ...
giannoug's user avatar
  • 101
3 votes
1 answer
19k 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 ...
puppydrum64's user avatar
15 votes
3 answers
14k 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 ...
Parsa's user avatar
  • 271
1 vote
0 answers
272 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/...
shayaknyc's user avatar
0 votes
1 answer
239 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?...
Julian Habekost's user avatar
0 votes
1 answer
658 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 ...
user1148733's user avatar
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, (...
spraff's user avatar
  • 2,248
0 votes
1 answer
463 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>...
Roby Sottini's user avatar
0 votes
0 answers
46 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 ...
Mickael B.'s user avatar
0 votes
1 answer
525 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/...
Brokolicový Džuß's user avatar
0 votes
0 answers
293 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 ...
loud_flash's user avatar
1 vote
1 answer
654 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. ...
Horror Vacui's user avatar
0 votes
1 answer
1k 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 ...
Vanfan64's user avatar
1 vote
0 answers
189 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 ...
pktm's user avatar
  • 11
0 votes
1 answer
822 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> &...
JohnyTex's user avatar
  • 347
0 votes
1 answer
60 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 ...
bcsteeve's user avatar
  • 299
0 votes
0 answers
602 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 ...
pesho hristov's user avatar
0 votes
1 answer
188 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 ...
Vaish MK's user avatar
  • 101
0 votes
1 answer
678 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 ...
TornaxO7's user avatar
0 votes
1 answer
3k 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 ...
showkey's user avatar
  • 171
3 votes
1 answer
16k 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 /...
onknows's user avatar
  • 837
0 votes
1 answer
447 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 ...
Silan's user avatar
  • 1

1
2 3 4 5 6