Questions tagged [automounting]
Automounting is the process where mounting and unmounting of certain filesystems is done automatically by a daemon.
453
questions
1
vote
1
answer
59
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
20
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
0
answers
13
views
Autofs expiring browseable offset mounts, resulting in the inability to mount
Summary:
We define a /mount/path/pathcontd/mountpoint tree in autofs, have historically --ghosted the paths, but have recently attempted to set the offset mounts as browse-able.
Our configuration ...
0
votes
0
answers
565
views
Autofs - setautomntent: lookup(sss): setautomountent: entry for map auto_master not found
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
17
views
Is it possible to prevent usb udev automount from the boot partition on raspberry pi os (i.e. cmdline.txt, firstrun.sh etc)
I would like to prevent an SSD drive from being automounted prior to first boot. I.e. by perhaps running something from cmdline.txt or firstun.sh.
I'm happy for it to either prevent mounting of a ...
0
votes
0
answers
16
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
54
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
38
views
Umount + hdparm setting for an external hd
How can I obtain that in umount state but connected to usb port my external hd don't work to preserve it? It's possible to re-mount it any time? I would like to keep it on for just an hour a day to do ...
0
votes
1
answer
81
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
0
answers
21
views
mount ext4 usb disk in /run/media/$USER/DISK-LABEL as user but not as root
I have found a couple of script using systemd to mount an usb disk.
one udev script
one systemd service script (which call the shell script passing the device name, the action to be done )
one shell ...
0
votes
1
answer
62
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
625
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
30
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
104
views
SystemD doesn't automount folder in subdirectory of another mount, how to fix?
I have local file server which exports two places over SMB: \media and \something
I want to have them mounted as /media/MEDIA (\media export) and /media/MEDIA/something (\something).
To do it I ...
0
votes
0
answers
67
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
48
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
514
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
$ ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
31
views
Did my array go away or is the partion not mounting correctly after reboot
I had created a raid-1 array for two drives (sde and sdf) using the normal mdadm process and had created it under md1 and mounted it to /mnt/storage. After a reboot md1 no longer exists. My /mnt/...
2
votes
1
answer
4k
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
69
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
276
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
339
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
25
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
73
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
4k
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
3k
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 ...
0
votes
1
answer
2k
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
126
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
261
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 ...
1
vote
0
answers
720
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
409
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
81
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 ...
0
votes
1
answer
487
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
2k
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
82
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
198
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/...
0
votes
1
answer
58
views
Drives under /media/user/ are denoted by an alphanumeric string - how are they generated?
I noticed that my thumb drives and hard drivers are in the location /media/user and are denoted as a string of alphabets and numbers instead of their names such as 1A2B-3C4D. I never named my drives ...
2
votes
0
answers
400
views
BTRFS: error (device dm-0) in btrfs_run_delayed_refs:2150: errno=-5 10 failure
I have run this error while trying to boot my fedora linux 36 from my external SSD. I did boot it at home yesterday quite well, shut it down this morning. When I got to work today and tried booting it ...
3
votes
3
answers
4k
views
How do I manually trigger systemd's "auto mounting" of encrypted partitions/drives?
I set up two LUKS encrypted drives to automount on system startup (using crypttab and a LUKS file key). It works fine, but unfortunately, if I disconnect one of the drives, the "auto decrypting&...
0
votes
1
answer
66
views
Unable to replicate fuse sshfs setup, with regular sshfs command
Goal: mount remote folder via sshfs on local system on boot
I have an empty USB attached to my machine: /media/steve/downloads-remote/
There is one folder inside the drive Downloads
The permissions of ...
0
votes
0
answers
449
views
what is the right way of mounting an ext4 formatted ssd or nvm?
I have mounted 2 external disks like this shown below (in fstab)
UUID=e3831bf2-d85d-459f-8091-4af1d3c6ee41 /mnt/ssd ext4 defaults 0 1
UUID=38cebf19-8cea-40ce-9014-d6f2f9d884ac ...
2
votes
1
answer
2k
views
Unmount/mount drive when it's disconnected/connected, automatically
Is there a way for a systemd.mount unit to detect the state of a drive without having to reboot the computer, or reload the unit? If not, is there any other way to achieve this?
I would like to ...
2
votes
0
answers
158
views
systemd automount unit: run only when server is reachable
I am using systemd automount units (see below) to mount network shares on my laptop
(debian bullseye). This works fine in principle but I have one big issue:
At home it is enough to set TimeoutSec to ...
0
votes
1
answer
798
views
How do i safely remove a secondary mounted root in the fstab file
On my computer i have 2 drives, a 128GB SSD and a 1.8TB HDD. I mount the HDD on "/home/___/mountpoints/HDD" but today i found that leads me back to "/"
The "fstab" file ...
0
votes
1
answer
156
views
gdm's systemd user process triggers automount
I'm trying to set up a hard drive that's in an external enclosure, so I added the following fstab entry:
LABEL=Mothership /var/local/Mothership btrfs noauto,nofail,x-systemd.automount,x-systemd.idle-...
2
votes
2
answers
1k
views
Give executable permissions to binary files on a USB
I have a desktop application that provides the user with a tarball (.tar.gz) that they can unpack to find the binary that can be run with executable permissions which starts the overall program. This ...
3
votes
0
answers
642
views
Mounting drive as unpriviliged user with systemd mount unit or systemd-mount
Is there any way to mount an external drive as an unpriviliged user, either with a pre-defined mount unit or with a transiently generated one with systemd-mount?
If I write a file run-media-myuser-...
0
votes
1
answer
541
views
automount disks but with dev name, not some random numbers
On Linux, all connected disks have ambiguous mountpoint names to user.
For example, if I connect a USB then Linux (udev?) mounts it to a directory like this:
/media/username/78128SDGHJ23G
But I want ...
1
vote
0
answers
24
views
How can I automount my drive immediately on connection rather than on first access? [duplicate]
I have an external drive set up in my /etc/fstab with noatime,nofail,x-systemd.device-timeout=500ms,x-systemd.automount,users.
I also have several dependencies set up which only start when this drive ...