Questions tagged [automounting]
Automounting is the process where mounting and unmounting of certain filesystems is done automatically by a daemon.
466 questions
4
votes
3
answers
312
views
Headless disk-mount with user permissions
There is a headless machine, with Debian as its OS:
$ cat /etc/issue
Debian GNU/Linux 11 \n \l
$ uname -a
Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux
What I wish to ...
0
votes
0
answers
37
views
Difficulties with auto-mount LUKS encrypted partition
I have a LUKS-encrypted partition (not the root partition, which by default is encrypted by default with ecryptfs, generally deprecated, so I'm told) and I'm just trying to get it to be mounted at ...
2
votes
1
answer
684
views
Linux auto-mounting USB with UDev
My task is to have a custom mount point and for the mount itself to happen automatically. that is, the device is connected, a folder with its name is created in some place (/mnt/usb/{name}) and the ...
1
vote
1
answer
94
views
How is an overlayfs different from just mounting another disk/partition over a directory?
I have OpenWRT installed on some of my routers and to add additional storage for settings as well as programs that might be installed on the router and maybe logs, OpenWRT recommends you plug storage ...
0
votes
0
answers
65
views
How to automount eCryptfs volume at boot (without login)?
We have two servers. Application sever A and NFS file server B. Server B is shared among multiple various applications and it's generic NFS storage host that we don't have access to and it's corporate ...
1
vote
1
answer
303
views
Why is this docker container process not triggering a mount for my systemd auto-mounted drive?
I've been struggling to make sense of something, so would appreciate some help.
I am mounting a remote NFS drive onto my Debian system with the following fstab entry which uses the systemd automounter,...
0
votes
1
answer
211
views
systemd nfs mount/automount unit with changing network environments
I have set up on my laptop a systemd mount and automount unit to mount a NFS share on demand.
Naturally, this works as long as I am in the same network as the NFS server.
If I leave my home network, ...
2
votes
0
answers
75
views
Change mount attribute, but how?
I'm on Automotive Grade Linux. My system has a partition /dev/sda15 which is mounted to /data. I want to change the mount attribute "noexec" permanently, but
There is no directive for sda15 ...
0
votes
1
answer
55
views
How can I force nemo to use pmount?
I am using fedora cinnamon and I need my PC to read DVDs.
For some disks, the file manager can't mount them automatically.
I know the problem isn't from the disks because I can read them by mount them ...
0
votes
1
answer
74
views
What happens if a root partition, mounted over USB, disconnects?
I have a laptop without an internal hard drive. To get some use out of it, I'm considering putting the root partition on external media, over USB. I can't see any reason this wouldn't work, but I ...
0
votes
2
answers
162
views
What is the purpose +auto.master in /etc/auto.master?
I looked into the default /etc/auto.master and I saw the following.
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
...
1
vote
1
answer
541
views
How to Auto-Mount Internal HDD and Make it Accessible by a User Group
OS: Linux Mint 22 Cinnamon.
My computer has 2 internal drives both formatted as ext4:
500 GB SSD
4 TB HDD
Output of sudo blkid:
/dev/nvme0n1p1: UUID="7700-D60B" BLOCK_SIZE="512" ...
0
votes
2
answers
275
views
how to prevent an unresponsive nfs server stalling boot without nowaitboot?
Issue:
An nfs server is down and it takes your computer down with it!
Specifically it blocks booting. A less drastic example is you take your laptop to your friends and then it can't boot because it's ...
3
votes
2
answers
263
views
How to auto-mount (encrypted) partitions of an USB stick using udev and systemd
I have the following requirements:
If a particular USB stick is inserted, it should be automatically detected and mounted. The information where it must be mounted will be in /etc/fstab (of course).
...
0
votes
1
answer
513
views
auto mount and decrypt LUKS2 partition on boot RHEL 8
when installing RHEL-8.10 from rhel-8.10-x86_64-dvd.iso in the partition scheme I choose encrypt my data. And for all the partitions I have checked as encrypt such as /home and /var and / and however ...
0
votes
1
answer
68
views
Dealing with gid collisions when rebuilding a Linux system around an existing disk
I am currently rebuilding a Linux system, migrating to a new distribution (Ubuntu 24.04).
I have one disk which holds several terabytes of user data, which I want to keep. The disk holds a btrfs ...
0
votes
1
answer
279
views
How to automount a flash drive in Debian?
I have an Orange Pi One with the Armbian OS. I want to use it to collect data from sensors 24/7. And be able to save the database to a flash drive.
Considering the presence of only one USB port, as ...
1
vote
1
answer
941
views
How to mount a local folder with autofs? bind doesnt seem to work
I want all the users to automount from a NFS server except for a few accounts that should use the local home folder. Thus each client computer (and the nfs server) has a few folders in /home, the ...
1
vote
2
answers
559
views
How to open an USB's encrypted /boot automatically
My situation is a bit unique:
The scenario ~
I have successfully encrypted my root partition and boot partitions. My boot partition lies on my usb along with the /boot/efi on a separate unencrypted ...
1
vote
0
answers
66
views
rclone group permissions not working
im using rclone to mount google drive but the permissions are completely broken.
im using debian 12
-> sudo namei -l /mnt/cloud/gdrive/gd1/3D
f: /mnt/cloud/gdrive/gd1/3D
drwxr-xr-x root root /
...
0
votes
1
answer
2k
views
Autofs configuration on RHEL9: NFS directories appear empty despite successful mount
I am trying to set up my NFS system between my server node and my client node running on rhel9. They are both on different physical servers on the same network. The nfs-server daemon is properly ...
0
votes
0
answers
57
views
Shared folder remounts itself after umount
On a Oracle Linux 7.9 server, I have a directory that is mounted from another system. The fstab entry is:
[email protected]:/opt/commonfiles /opt/commonfiles/ fuse.sshfs identityfile=/home/myuser/....
1
vote
1
answer
102
views
Mounting directories on demand or until logged
As from object, I want to mount some directories (with binding) at login and possibly unmount them at logout.
At the beginning I tought about autofs, but it dynamically creates mount points, that's ok ...
0
votes
0
answers
78
views
Umount + hdparm setting for an external hd
How can I keep my external hard drive connected to the USB port but in an unmounted state to preserve it?
Is it possible to remount it at any time?
I would like to keep it on for just an hour a day ...
0
votes
1
answer
274
views
How to change default automount USB path to /mnt/sdXX?
Default mount path with udisks2, udiskie is /media/XXXXX
On some distributions /media/user/XXXXXX
How to change automount path for USB drives to a shorter /mnt/sdb1 /mnt/sdc2 etc.
With udisks2, ...
0
votes
1
answer
194
views
Unable to write dumpcap output to mounted drive
I managed to automount an exFAT drive with rw permissions. The mount point is a directory I made (/media/usb1) and the drive itself is named usb1.
sudo dumpcap -i eth1 -w /media/usb1/logs -b duration:...
6
votes
3
answers
826
views
How do I whitelist drives / partitions that can be mounted to only those that have entries in /etc/fstab?
On my Ubuntu system, I noticed that some file managers, when open, they can mount any drive that was connected via one of my USB ports (as non-root). In the attempt of preventing this from happening I ...
0
votes
1
answer
97
views
systemctl not using full share path on boot
I have a samba server that is running on my home router that I am attempting to connect to on system startup.
Importantly the router will automatically setup the share names for me and they are in the ...
0
votes
0
answers
146
views
Is /etc/auto.net right? Seems like a typo
Like many people I've had trouble with machines hanging when the NFSv3 server was not available (switched off). I saw various suggestions , like soft/hard , intr, bg etc being set... not a lot seems ...
2
votes
0
answers
73
views
Linux creating new media every time
I'm new Linux user so be kind.
Whenever I boot my Linux on PC I get different uuid from media.
See this dir: /media/my_name/2B283D3C465F37B722/folder_name/folder_namev1
And when I open for example ...
0
votes
3
answers
1k
views
Why can't I directly ls /dev/sda1
I have an external microSD card plugged into my machine via a USB stick. I believe it was auto-mounted because I can see
$ ls /media/me
7538-3DFD
I believe it is mounted to /dev/sda1 because I see
$ ...
2
votes
1
answer
3k
views
"structure needs cleaning", hardware failure?
The drive that my /home folder lives on is showing signs of failing,
and I'm trying to migrate to a new drive.
I purchased a 4TB SSD, formatted it with ext4, mounted it as an external drive with a ...
4
votes
1
answer
9k
views
How can I automatically unlock and mount a ZFS pool at boot?
I was wondering if it's possible to automatically decrypt and mount a ZFS pool and its datasets at boot. Currently, I have to unlock the pool manually by using the command # zfs load-key -a and then ...
-1
votes
1
answer
111
views
Why do my files only appear when the drive is unmounted?
Background
I'd like to store music on /dev/sda1, which is a physically separate drive. The /etc/fstab contains:
# grep "music" /etc/fstab
UUID=10...92 /mnt/music ext4 defaults,user,rw 0 2
...
1
vote
0
answers
546
views
automount is flooding /var/log/messages with the line "automount[21736]: do_mount_indirect: indirect trigger not valid or already mounted"
I am facing an issue with automount on a bunch of linux centos hosts.
I see the following line in /var/log/messages to thousands
automount[21736]: do_mount_indirect: indirect trigger not valid or ...
0
votes
0
answers
411
views
Error mounting /dev/sdb2 at /media
The address could not be accessed. I'm trying to mount the disk, but I can't because of an error
0
votes
0
answers
47
views
Mount If Available
I have access to a few network hosted drives with different types of protocols (smb, webdav icsi, NFS probably more webdav and smb but I want include maybe more). Those drives are not always ...
0
votes
1
answer
147
views
Automounting an sd card results ownership change
I want to have a "backup" on an SD card that I have always plugged in my laptop.
I got the UUID and put in /etc/fstab/, the entry is UUID=xxxx /home/enrico/sd_card exfat defaults 0 2.
I ...
13
votes
3
answers
6k
views
How does automount work in modern Linux distributions like Ubuntu?
It's quite difficult to find information on how automounting of removable media works in modern Linux distributions.
Usually, the answers are like edit /etc/fstab. But those are not useful.
I want to ...
1
vote
1
answer
5k
views
Disk mount failed with result 'dependency'
I mount drive using command mount and modify fstab file (so disk should be visible after restart). Unfortunately, after system reboot, mount isn't visible in the system
lsblk -a says, disk is ...
1
vote
1
answer
3k
views
FreeIPA automount home directory prevents local user home directory creation
I have set up FreeIPA as IDM software for my network and successfully configured a Kerberos aware NFS server and Kerberos aware NFS clients.
When a user logs into a machine, it's user directory on the ...
1
vote
0
answers
185
views
Failed to mount "rpool"
I was copying files from a storage drive to the SD card mounted in my Chromebook R11 (Linux Mint) when it locked up. I resorted to turning off and rebooting, my file reader no longer recognizes the SD ...
2
votes
1
answer
314
views
Network share defined in fstab prevent user login until network is connected and the share is mounted
After I boot my computer, the login screen comes-up quickly and I am able to login. However, the network identification is slow and the network is "connected" after a good 30 seconds / 1 ...
2
votes
0
answers
1k
views
How to automatically mount ZFS external USB flash drive when I insert it
In Ubuntu 20.04, I installed the zfsutils-linux package and formatted an external USB thumbdrive to use ZFS (sudo zpool create mypool /dev/sdb). I then changed its mount point to /media/user/mypool (...
0
votes
1
answer
500
views
How to auto-mount external drive without using /etc/fstab
I have mounted an external drive using an entry/etc/fstab , UUID=ba6274de-e241-43ef-9dd0-5147c29e883a /mnt/500GB_Seagate_Drive xfs defaults,x-gvfs-show 0 0
I have other drives with do not have an ...
0
votes
0
answers
240
views
Automount USB flash drive on CLI (no fstab solutions please!)
I have been looking for how to automount a USB flash/thumb drive on a Linux machine which does not have a GUI. So, it must be CLI-only solution. The most common answer I found was based on editing ...
1
vote
1
answer
944
views
Can I auto-mount all users in /home (using `*` key) except one?
Starting on a server where /home had just one user, I thought "adding" the home directories of the other users via NFS using automount's * and &.
Also the NFS has a home directory (but ...
0
votes
1
answer
3k
views
Using /etc/auto.master.d together with wildcard `*` to mount `/home`
My problem is similar to that described in Need example use of autofs.master.d/:
I wanted to mount individual users' home directories to /home/*user* using both, * wildcard and directory /etc/auto....
0
votes
0
answers
154
views
Automount as another user (not logged)
When I plug a USB Key on my desktop install of a redhat fork, USB is automounted as /run/media//. I would like that plugged removable device will be automounted for another logged user (not the ...
0
votes
0
answers
404
views
How to add or modify systemd mount targets/conditions in unit file
I've got a .mount file that I globbed together as /etc/systemd/system/opt-hass-config.mount
[Unit]
Description=Mount the config dir of hass.mydomain.com
[Mount]
What=//[IP ADDRESS]/config
Where=/opt/...