Questions tagged [automounting]

Automounting is the process where mounting and unmounting of certain filesystems is done automatically by a daemon.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 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 ...
jcdole's user avatar
  • 1
0 votes
1 answer
45 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:...
Johnny C's user avatar
6 votes
3 answers
528 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 ...
John Smith's user avatar
0 votes
1 answer
21 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 ...
Andy McCall's user avatar
0 votes
0 answers
61 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 ...
user70436's user avatar
0 votes
0 answers
48 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 ...
GraemeV's user avatar
  • 148
2 votes
0 answers
45 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 ...
Deployo's user avatar
  • 21
0 votes
3 answers
134 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 $ ...
user1245262's user avatar
1 vote
1 answer
556 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 ...
jyoung's user avatar
  • 61
0 votes
0 answers
29 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/...
Adam's user avatar
  • 1
2 votes
1 answer
2k 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 ...
telometto's user avatar
  • 1,950
-1 votes
1 answer
57 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 ...
Dave Jarvis's user avatar
1 vote
0 answers
141 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 ...
Mister Lamp's user avatar
0 votes
0 answers
262 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
Антон Желіховський's user avatar
0 votes
0 answers
23 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 ...
MaKaNu's user avatar
  • 131
0 votes
1 answer
47 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 ...
enrico223's user avatar
12 votes
3 answers
3k 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 ...
Vanuan's user avatar
  • 281
1 vote
1 answer
2k 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 ...
Mateusz Przybylek's user avatar
0 votes
1 answer
1k 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 ...
Grigorios's user avatar
  • 163
1 vote
0 answers
96 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 ...
Joe Barry's user avatar
2 votes
1 answer
215 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 ...
Mathieu's user avatar
  • 107
1 vote
0 answers
465 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 (...
Flux's user avatar
  • 2,898
0 votes
0 answers
74 views

How to unplug/unmount USB Flash card, which was automounted?

I have configured my flash card to automount with the following lines inf fstab: UUID=6364-3963 /mnt/Flash03 auto noauto,nofail,x-systemd.automount,x-systemd.device-timeout=2 UUID=3537-3561 /mnt/...
Dims's user avatar
  • 3,255
0 votes
1 answer
305 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 ...
munish's user avatar
  • 7,957
0 votes
0 answers
47 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 ...
bliako's user avatar
  • 165
0 votes
1 answer
286 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 ...
U. Windl's user avatar
  • 1,397
0 votes
1 answer
1k 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....
U. Windl's user avatar
  • 1,397
0 votes
0 answers
62 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 ...
SVA522's user avatar
  • 1
0 votes
0 answers
107 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/...
HilarieAK's user avatar
  • 101
0 votes
1 answer
57 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 ...
ssly75577's user avatar
2 votes
0 answers
314 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 ...
David Kariuki's user avatar
2 votes
2 answers
3k 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&...
Aspiring Dev's user avatar
0 votes
1 answer
56 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 ...
Amir's user avatar
  • 101
0 votes
0 answers
371 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 ...
Ciasto piekarz's user avatar
2 votes
1 answer
1k 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 ...
seglaren's user avatar
2 votes
0 answers
131 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 ...
jba's user avatar
  • 21
0 votes
1 answer
481 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 ...
Father Pucci's user avatar
0 votes
1 answer
130 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-...
TheSola10's user avatar
  • 201
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 ...
Vass's user avatar
  • 5,351
2 votes
0 answers
494 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-...
tsj's user avatar
  • 163
0 votes
1 answer
431 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 ...
eminfedar's user avatar
  • 200
1 vote
0 answers
22 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 ...
Taylor Kline's user avatar
1 vote
1 answer
261 views

How to determine if mysql is using directory under mounted directory?

I currently have MySQL using /home/foo/data/database as its datadir. With /home/foo/data/database being a mounted raid 1 array. The problem I am having is that every once in awhile on boot MySQL is ...
setdebarr's user avatar
1 vote
0 answers
250 views

Systemd Automount Failing on Program Execution

I set up a systemd automount for an external drive by UUID. I basically just wanted the drive to mount whenever it's accessed. It was working fine but I noticed some issues when loading Evince first, ...
ChrispyChris's user avatar
12 votes
1 answer
1k views

Drive mounted with flags different from /etc/fstab - not respecting suid, dev, or exec

I have an ext4 mounted with the flags rw,suid,dev,exec,auto,user,async in /etc/fstab but running mount after mounting gives rw,nosuid,nodev,noexec,relatime,user. How do I get it to mount exactly as ...
ChocolateOverflow's user avatar
0 votes
2 answers
54 views

Auto-mounting the 2nd internal HD

I'm editing the fstab file to automount my secondary HD and I would like to know how to setup the 'noatime' in the command line. The command I have so far is: UUID=DEVICEID /PATH ntfs-3g rw,...
Rival Consoles's user avatar
3 votes
1 answer
3k views

What happens when mounting network drives in fstab fails

I am responsible for maintaining a Linux (Ubuntu) machine in my company. We mounted some NFS network drives. In irregular intervals (during holidays), the machine is forcefully restarted because the ...
Green绿色's user avatar
0 votes
2 answers
795 views

Unable to mount internal hdd - An error occurred while accessing 'Basic data partition'

I have 2 disks in my PC, an SSD with my linux system on it and a HDD with windows and some other stuff. Now I keep getting the following error, which appeared overnight without changing the system, ...
Marcel's user avatar
  • 13
0 votes
0 answers
1k views

mount command on Alpine Linux doesn't like octal sequence for space in fstab

on alpine Linux, I can't mount automatically a cifs directory which has a space in the name, but manually it may work. With this /etc/fstab snippet it doesn't work: //192.168.245.1/My\040Space ...
Alex's user avatar
  • 11
0 votes
2 answers
129 views

How can different devices represented by the same device file be automatically mounted to different mounting points?

In Ubuntu, even if different block devices (e.g. an external hard drive and a flash drive) are represented by the same device file (e.g. /dev/sdb1) one after another, they are automatically mounted ...
Ben's user avatar
  • 111

1
2 3 4 5
9