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
1 vote
1 answer
19 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 ...
user avatar
0 votes
0 answers
41 views

File manager not authorized to mount external drives

I have a problem authorizing my file manager to mount external drives. Inside thunar, I get this error: failed to mount "flash-drive"; not authorized to perform operation I've already tried ...
user avatar
0 votes
0 answers
15 views

SDCard reader not functioning at boot Lubuntu 21.10

I have installed lubuntu-21.10 on a Asus C423NA-BCLN5 device. It comes with kernel 5.13.0-39-generic. Now, I am having an issue with it's, otherwise perfect, card reader. I have an SD card inside, ...
user avatar
  • 101
1 vote
0 answers
17 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, ...
user avatar
12 votes
1 answer
559 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 ...
user avatar
0 votes
0 answers
58 views

Btrfs partition won't mount during boot using fstab

i have just reinstalled my raspberry pi 4 with raspbian lite 64bit. While doing this i also switched from using sd-card-boot to usb-boot and installed the os on an ssd. Now i still want to use the sd ...
user avatar
0 votes
2 answers
27 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,...
user avatar
1 vote
1 answer
169 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 ...
user avatar
0 votes
2 answers
69 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, ...
user avatar
  • 13
0 votes
0 answers
230 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 ...
user avatar
  • 11
0 votes
2 answers
38 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 ...
user avatar
  • 81
0 votes
0 answers
23 views

What could have caused automount to try to mount this nonexistent directory?

In /var/log/messages I found entries like this Oct 18 2:10:15 linux automount[946]: attempting to mount entry /home/randomusername Oct 18 2:10:15 linux automount[946]: key "randomusername" ...
user avatar
  • 21
0 votes
0 answers
23 views

Why autofs does not automount newly connected disks?

I added entry for my disk and when I connect it and then run autofs (i.e. either run the service or run automount) the disk is automounted. But if I run autofs first and then connect the disk nothing ...
user avatar
  • 5,686
1 vote
1 answer
48 views

In search for good practices: Mounting disks

I think I did many terrible things at the past, empty directories everywhere, whatever priviledges they had and even mounting a fs inside other mounted fs. Now I want to make the things right and ask ...
user avatar
0 votes
0 answers
132 views

Why is /etc/fstab preferred over systemd unit files?

The systemd.mount(5) man page says (emphasis mine): Mount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). Mounts listed in /etc/fstab will be converted ...
user avatar
  • 1
1 vote
0 answers
58 views

Howto prevent Dolphin from triggering /foo/nfs-share.automount

since i switched to auto-suspend there's an unwanted delay when reactivating due to the lost nfs-mounts (debian 11) I created some auto(u)mount (systemd) which is working fine... as long as dolphin is ...
user avatar
  • 41
0 votes
1 answer
204 views

How to allow "guix-daemon" to "remount" in SELinux?

I've installed Guix and installed the bundled SELinux policy manually. But according to Ricardo Wurmus, as of 30 June 2021: There are really just two ways: either 1) disable SELinux (or set it to ...
user avatar
2 votes
0 answers
46 views

How to figure out what is auto-mounting external drives

A long long time ago I apparently installed something that automounts removable drives to the /media directory. Now I can't figure out how to unmount stuff anymore. sudo umount on the correct /dev ...
user avatar
  • 133
1 vote
0 answers
164 views

Systemd service that only runs when USB Drive is mounted

I've been searching for an elegant way of automating a very tedious process. This is the workflow I want to achieve: Plug in the USB Disk (single partition) sdX1 gets automatically mounted to /mnt/...
user avatar
0 votes
0 answers
144 views

How to bind mount a directory in .bashrc without sudo privilege

NOTE: I'm working in WSL2, but my issues lies entirely within the Linux side of things. Please let me know if this is not the right place for this. I am needing to mount --bind a directory whenever ....
user avatar
0 votes
1 answer
250 views

automount removable media using udev in NixOS

I want an udevrule to automatically mount usb sticks or sd-cards, if plugged into a terminal-computer. The way I tried to achieve this was adding an udevrule and make use of pmount's ability to mount ...
user avatar
  • 119
0 votes
1 answer
500 views

Consistent auto-mount of external hard-drive

Adding /dev/sdb1 /home/[user]/external_drive ntfs defaults,noatime 0 2 to /etc/fstab auto-mounts external drive after machine start/reboot. However, if additional usb drive was plugged in during the ...
user avatar
  • 287
0 votes
0 answers
54 views

Prevent Nautilus from bringing up file viewer on mount

I have a script that generates an SD card image file. Omitting the copying of data to the SD card image, here it is (please forgive the lack of error checking and any typos): SDFILE=/tmp/sdcard.img ...
user avatar
0 votes
1 answer
123 views

Systemd automount with custom command

I use tomb to store some files. I want to use a systemd .automount unit so that whenever I try to access these files, the tomb is automatically mounted. However, tombs are not mounted with mount, they ...
user avatar
  • 674
1 vote
1 answer
371 views

How to solve failure in plugging external DVD driver in Ubuntu 20.04?

I have bought an external DVD driver but, after plugging (or booting with the unit already plugged) I see the unit listed in the resources of the computer but I cannot access it: If I try to access ...
user avatar
  • 295
1 vote
0 answers
126 views

FreeBSD: Automount to specific location

First of all, I read Vermaden's blog which explained a couple different systems used for automounting. I like to use included utilities so I opted for autofs. Based on the information in the blog I ...
user avatar
2 votes
0 answers
68 views

Prevent systemd from unmounting a partition mounted by a systemd service

I have a custom systemd service that automatically mounts some partitions under certains conditions. The service executes a shell script containing some mount commands. When I execute it directly, ...
user avatar
  • 148
0 votes
1 answer
634 views

Which is the correct mechanism for auto-mounting a USB flash drive at boot?

I'm seeing apparently conflicting information on the proper way to auto-mount USB flash drives at boot. Most instructions on how to do it say to use an entry in fstab. Gnome Disks has a built-in ...
user avatar
  • 543
0 votes
1 answer
1k views

Mounting new ext4 to /mnt and editing /etc/fstab file

I have a basic DOS/MBR partition scheme with the partitions /dev/sda1 /boot /dev/sda2 / /dev/sda swap /dev/sda6 /home I am needing to mount an ext4 partition to /mnt, edit the etc/fstab file and ...
user avatar
0 votes
1 answer
40 views

New to Linux and need help in activating my new swapspace and mounting ext4 partition to /mnt

I am new to Linux and I am working on the configuration of my Linux OS for a project. I am using the Oracle VM Virtualbox and using Ubuntu 20.04 I added a DOS/MBR table scheme during installation and ...
user avatar
0 votes
1 answer
172 views

Prevent pam_mount unmounting if there are other active sessions?

I use pam_mount to decrypt (gocryptfs) and mount my home directory: # /etc/pam.d/system-login excerpt # ... session [success=2 default=ignore] pam_exec.so quiet /usr/bin/mountpoint -q "/home/$...
user avatar
  • 1,588
0 votes
2 answers
168 views

autofs mount local directory when nfs unavailable

I want to have my home directory be an NFS mount when it's available, or a local directory when it's not. Think of a laptop that I might want to take somewhere off of my normal network. What I have ...
user avatar
3 votes
1 answer
298 views

root filesystem not listed when executing mount

I'm running slackware 14.0 linux. I was recently doing an open office document and sent emails out and then my internet was cutting out then after a bit I got hinted that my disk was full then I ...
user avatar
  • 39
1 vote
3 answers
77 views

Making USB devices writeable for users other than root

I have a USB device, formatted FAT32 (for the widest possible compatibility), plugged into a system running CentOS 5 (yes, I know it's antiquated). The whole purpose of its being plugged in is to ...
user avatar
1 vote
0 answers
105 views

How to automount USB drive synchronously on Debian Buster? Is it safe?

I hate it when I copy a large file (~2 GB) to an USB drive and it shows a "fast" progress bar, only to wait indefinitely afterwards, until the copy is finally done. So I'd prefer to mount ...
user avatar
  • 1,552
0 votes
0 answers
214 views

Automount any usb on linux (Without using UUID)

I am trying to get my linux system (only accessible by the command line) to have plug and play usb functionality. I've found many threads about automounting etc, but all of them require an UUID or ...
user avatar
0 votes
1 answer
421 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 ...
user avatar
1 vote
1 answer
123 views

Launcher sshfs mount disappears after terminal is closed

I want to make a launcher in my MATE desktop that executes script for sshfs mount: #!/bin/bash sshfs login@server:/ /media/user/MOUNT_FOLDER/ This script is called by my launcher: #!/usr/bin/env xdg-...
user avatar
  • 11
2 votes
0 answers
735 views

Use fstab to mount luks encrypted drive to subfolder within home

Fresh install of Lubuntu 20.04 on system with Windows 10 and Lubuntu installed on 256GB NVME drive to dual boot. Boot drive is /dev/nvme0n1p2 Home folder is therefore /dev/nvme0n1p2/home/username I ...
user avatar
0 votes
0 answers
466 views

How to resolve the delay in mounting NFS export with autofs?

When mounting an NFS mount with autofs, I experience a delay in the mount (between 10 seconds to a minute). How can I avoid this delay while still resolving the server name via DNS? I am using ...
user avatar
2 votes
1 answer
159 views

mount all volumes with udisks2 without systemd

I'm trying to replicate my setup (Jwm, PcManfm, udisks2, gvfs, polkit-1) on a distro without systemd. I want to be able to mount on demand all internal and external devices as a user from PcManfm side ...
user avatar
1 vote
0 answers
510 views

Error mounting: mount(2), file exists

I've been working with files on external drive (partition table GPT, file system BTRFS). For some reason drive turned off and now I can't remount it. Whatever I do this error shows up: Error mounting /...
user avatar
1 vote
0 answers
307 views

Prevent ZFS pool automount

There's a Manjaro installation on ZFS that I'd like to chroot into from a rescue system on a USB stick. When booting the rescue system, the ZFS pools are automatically detected and mounted, if ...
user avatar
  • 123
0 votes
1 answer
559 views

Mac os catalina and automount of Linux nfs4 resources

I want to automount all my nfs4 shares in one folder(on Linux and other Unix is really easy). Using the good old mount works perfect on MacOs Catalina sudo mount -t nfs -o resvport,nfsvers=4 slack64:/ ...
user avatar
  • 10.9k
1 vote
1 answer
995 views

How to have hdd's auto-mounted and usable by all users?

My computer has 3 disk drives: 256GB ssd (root and swap partitions) 60GB ssd (ext4) 2TB hdd (ext4) I want to automatically mount the two extra drives at boot and I want all users to be able to read/...
user avatar
2 votes
1 answer
1k views

Configure /etc/fstab for external hard drive

In my /etc/fstab I have the line UUID=c99...04c4 /media/myExtDrive ext4 defaults,user,nobootwait 0 0 for my external hard drive. But when I plug it in and try to mount it with the ...
user avatar
  • 543
0 votes
1 answer
180 views

How to disable automounting on Nvidia Jetson Nano

I have built an embedded system, originally it was on a PC based board, but I more recently moved it to a jetson nano. I started with NVidia's ubuntu 18.04 image, removed the desktop and replaced it ...
user avatar
  • 3,870
0 votes
1 answer
160 views

share /home with nfs automount

server vi /etc/exports /home 10.10.10..0/24(rw,sync) systemctl restart nfs-server client mkdir -p /home/user showmount -e 10.10.10.1 vi /etc/auto.master /- /etc/auto.home /home /etc/auto.home vi /...
user avatar
1 vote
1 answer
1k views

Problems with automounting NFS on RHEL8

I've run into some problems when configuring autofs on CentOS and I would really appreciate your help with it ^^ I have to VMs: CentOS Linux release 7.8.2003, IP address: 10.110.163.10 Two NFS ...
user avatar
0 votes
0 answers
43 views

Is there a tool to monitor activity on mount point or directory?

I'm trying to find out why automount timeout does not kick in and need to detect any system activity that access a specific catalog or subtree, e.g the cifs mount point. My suspicion is that some cron/...
user avatar
  • 56

1
2 3 4 5
9