Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automounting]

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

0
votes
1answer
74 views

automount USB stick ext4 on Fedora XFCE

I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root # df -T /dev/sdc5 ext4 ...
1
vote
0answers
127 views

Trigger script to run when USB drive connected with no user logged on on Ubuntu 18.04

I'm working on a DIY NAS project running on Ubuntu 18.04. I want to implement the following feature: when an external USB disk is connected (could be a specific disk identified by UUID or ...
0
votes
1answer
36 views

Understanding USB message logs to troubleshoot USB automounting

I am trying to troubleshoot an issue where on one server my USB automounts whereas on another server it isn't. Comparing the logs for both instances, I am trying to understand what each line means. ...
5
votes
1answer
1k views

Wait to start Transmission daemon until after USB drive has mounted?

I'm running transmission-daemon as a systemd service on OSMC. When opening its remote control web interface after a reboot all transfers are almost always halted with the message "Error: No data found!...
1
vote
1answer
2k views

Debian 9: Which package is required to automount USB-drives?

I successfully installed Debian 9 (Stretch) together with desktop environment LXQt. To keep the system minimal and clean I disabled auto-installation of all recommended and suggested packages via APT:...
4
votes
1answer
71 views

Does mounting a USB device automatically modify it?

Most popular desktop Linux distributions automatically mount USB storage devices when the devices are connected or at least provide an easy way to mount them from the GUI. Does mounting a USB storage ...
2
votes
0answers
44 views

is it possible to modify GUI mount options?

I'm using Fedora 25 with Cinnamon as a DE and I wonder if there is a way to modify mount options that are triggered when clicking on a partition name in the GUI. precisely I want to know: What is ...
0
votes
1answer
207 views

systemd automount files system as read write, not working as expected (read only)

My problem is systemd automount is mounting my ntfs filesystem as read only dispite me setting the options=rw Following some online reference sites on setting up systemd with automount I created two ...
1
vote
1answer
160 views

Identical fstab options end up with different permission

I recently attached a SSD to my system, with the old HDD in the DVD drive bay I set up the file mount option in the /etc/fstab file. The permissions are as follows for SSD: /dev/sda2 /home/arun/...
1
vote
0answers
409 views

NFS shares on a laptop

I need to mount NFS shares on my laptop when I am in the office and plugged into a wired Ethernet connection (via a dock). Is there a reliable way to automatically mount and unmount NFS shares in this ...
2
votes
1answer
847 views

Is parted auto mounting new partitions?

There appears to be an undesired side effect to parted creating a new partition, if the partition previously existed it will be automatically mounted, even before it has been formatted. This is ...
1
vote
1answer
270 views

fstab mount nested folders in order

I have a partition mounted to /home and want to mount another partition as $HOME/Steam. The /home partition is encrypted and only mounted at login (not by fstab btw), while the Steam partition is not ...
1
vote
3answers
2k views

Automount windows shared folder on Linux

I have a shared folder on windows and I usually mount it like this mkdir /media/somedir sudo mount -t cifs //servername/sharename /media/somedir The problem is that once I restart the machine the ...
0
votes
1answer
118 views

How to prevent automount (autofs) changing protection of indirect map mountpoint

How do I prevent autofs (automount) from changing the protection of its owned mountpoint. # chmod 2771 /cust # ls -ld /cust drwxrws--x. 2 root root 4096 Mar 13 14:43 /cust # systemctl start autofs # ...
1
vote
1answer
526 views

Deconfigure RAID1 and mount the second hard drive in Debian

The dedicated server running on Debian has two 512 SSDs, both part of a single RAID1 disk array. There are many guides for that without losing any data on the disk but could not find the complete one ...
0
votes
1answer
158 views

Cryptsetup Device Timeout When Automounting Through Systemd

For some reason systemd gives timeout in one of my cryptsetup devices when trying to mount it. Here are the Units and script: udev rules: ACTION=="add", KERNEL=="sd[a-z][0-9]", ATTRS{serial}=="...
1
vote
1answer
446 views

Bash scripting: How to tell if a partition can be mounted?

Situation: Writing automated file mounting using Python on Linux. No Pythonic way that I can find to do it so using system calls (which technically means I am doing bash scripting, just that I am ...
2
votes
0answers
272 views

How to automount SSHFS shares for a user upon login?

My question is how to mount SSHFS shares as the user (not root) upon demand or upon user login using only tools that are in my distro's core repos. I'm using Arch. I don't mind writing a small script, ...
1
vote
1answer
48 views

Mounting shared directory at boot in CentOS (VirtualBox)

this seems to be a common question but I still can't find an answer that works. I have two CentOS VMs running under VirtualBox 5.2.6. I've successfully mounted a directory from VM1 onto VM2, and ...
0
votes
1answer
310 views

How to dynamically re-mount a network share if it's there?

Is there any way to automatically check if a network share is currently available or not, and if the state changed not only (un)mount it but perform any arbitrary other action? My best guess would be ...
1
vote
2answers
3k views

Format drives as NTFS and automount in Debian

I am trying to completely erase and format all my drives except /dev/sda (my main SSD with Debian on it). I'm getting a few errors, and I'm not entirely sure I'm doing it correctly. $ lsblk sdb ...
2
votes
2answers
40 views

Execute command before auto mounting a disk drive

I have many external hard drives that often I need to run sudo ntfsfix /dev/sdf2 on after coming from a windows boot. I do shutdown windows, but still this error persists. I would like to have this ...
0
votes
1answer
1k views

Bypassing auto mount at boot time

I have set several folders to mount at startup into fstab. This works fine. However, I would like to be able to bypass the mounting process in some occasions. Typically, when I know the remote ...
3
votes
1answer
3k views

How to deal with freezes caused by autofs after network disconnect

I mount four servers (3 via cifs, 1 via sshfs) using autofs. auto.master /- /etc/auto.all --timeout=60 --ghost auto.all /mnt \ /server1 -fstype=cifs,rw,credentials=/etc/.smbcredentials....
0
votes
1answer
895 views

How to auto-mount HDD within encrypted /home partition/directory?

My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of ...
0
votes
1answer
277 views

Arch Linux - How could I decrypt and automount multiple encrypted drives during init?

I have two encrypted drives (one SSD for booting and a hard drive for storage) I need both to be unlocked and mounted before all of the runlevel programs/services. Else some of my services would freak ...
1
vote
1answer
2k views

Issues with autofs “problem reading master map, maximum wait exceeded”

I am trying to mount a cifs partition using autofs. After a lot of trial and errors, I finally manage to get it mounted (the main issue I ran into is that in the instructions, here, this line in the ...
1
vote
2answers
34 views

Is there any way to automatically copy a file to any mounted drive?

Basically, I have a small file that I'd like to back up onto various storage devices. Is there any way to make that happen automatically whenever a new drive is mounted (be it a hard disk on boot, or ...
0
votes
1answer
493 views

systemd: stop .automount unit without unmounting the filesystem

Is there a way that I can stop a .automount without unmounting the filesystem? I just want to prevent any future automounting, but I don't want to unmount the currently mounted filesystem. Why can't ...
1
vote
2answers
526 views

Possible to mount to “/mnt/” instead of “/run/media/$USER/” on Linux?

Can the mount path be changed to "/mnt" since this is a system only used by a single person. Edit, seems this is using udisks2
0
votes
1answer
345 views

Linux getent automount?

I just got a user account on a server with its nsswitch pointing at ldap. Something is wrong with my home folder (I don't have one). Generally the home folders are mounted by automount/autofs and ...
0
votes
0answers
367 views

How can I script mounting an SFTP server (suitable for desktop access)?

I have a script that opens a remote file in a local desktop application: nohup geany sftp://user@$HOST:22/var/log/nginx/error.log >/dev/null 2>&1 & (Note that the hostname is ...
0
votes
0answers
24 views

Unwanted permanent umount [duplicate]

The problem I've got a simple question: what's the difference between ejecting flash drive using GNOME Files (formerly known as Nautilus) button (see image below) and umount command? Before you will ...
3
votes
1answer
2k views

What command does nemo use to mount drives

I use Linux Mint Cinnamon. I'd like to know what command does nemo use to mount drives when you click on an unmounted drive on the explorer sidebar. I am asking because I need to automount some ...
0
votes
1answer
83 views

systemd-mount: find mount details given mountpoint

How do I find out what systemd wants to mount on an autofs mount point? For example, if I have /media/backup mounted by systemd-mount: $ grep backup /proc/mounts systemd-1 /media/backup autofs rw,...
1
vote
0answers
87 views

Autoremounting of a SD card after unmount

I connected a SD card to my notebook, which got auto mounted by the Operating system. After that I unmounted all the partitions, and wrote a modified raspian image directly to the device. Since new ...
-1
votes
1answer
1k views

Autofs won't mount a mount that Automount -f -v will

I had an issue today that dinged my sanity pretty hard, so I'm posting it so some poor bastard who follows in my idiotic footsteps will maybe find solace. Running Autofs on RHEL7. Basic CIF mount. ...
1
vote
3answers
2k views

Start / stop systemd automount on a single mountpoint

Given a mountpoint (directory) name, how do I start / stop the systemd automounter only on that mountpoint? I want a solution which works even if the mountpoint: is currently mounted has [^0-9A-Za-z]...
1
vote
2answers
578 views

Access files on Samsung GT-S5230 (Avila)

I'm a new (still new) linux user (Fedora, LXDE). The phone I currently use is Samsung Avila, or Samsung Star (Samsung GT-S5230, http://www.samsung.com/pl/consumer/mobile-devices/other-phones/others/...
2
votes
1answer
577 views

Systemd keeps trying to mount non present fstab-defined disk even without automount

I have 2 drives that I normally use with my Raspberry Pi, but I usually only have one plugged in, though I may need to use the other one at times, they have 500 GB and 4 TB, I created the mount points ...
1
vote
0answers
660 views

Mounting afp share via fstab crashes boot boot process but works after boot

I just migrated my NFS shares to AFP shares. It looks like it works like it should so I added the records to my fstab: afpfs#afp://username:password@192.168.1.100/Transfer /home/andy/NAS/Transfer ...
0
votes
1answer
77 views

Auto swallow and eject cd (from the commandline)

I am trying to close and eject cd from the commandline. The purpose is to rip a lot of audio cds with abcde. I use eject and eject -t commands to open and close the cd drive. I mount my cdrom with ...
0
votes
1answer
273 views

Cannot create folders and files anywhere but my /home directory

I use Debian Testing with KDE 5. I cannot create files or folders except my /home/semko dir. (User ´semko´ is I -the sole user of my PC. And I would like to have access to all my drives) On /home/...
0
votes
0answers
95 views

Writes to an automounted directory are extremely slow

Writes on an automounted filesystem take an extremely long time. Whether it's a mvn clean or a tar -xvzf hugetarball.tar.gz the operation takes 15 minutes for every 1 minute the operation would ...
2
votes
1answer
1k views

How to execute a script after every systemd automount?

I am trying to setup a system such that a script gets executed everytime any USB storage device is mounted (in this case, automounted by systemd). Based on a few references here, here and here, ...
0
votes
0answers
306 views

Auto mount attached drives with specified PARTUUID using udev?

I used to do auto-mounting with udev like this: # cat /etc/udev/rules.d/10-aaa.rules KERNEL=="sda1", SUBSYSTEM=="block", RUN+="/etc/mymount.sh" # cat /etc/mymount.sh #!/bin/sh if [ "$ACTION" = "add" ...
2
votes
1answer
3k views

Run script in the host when starting virtual machine with virt-manager

This is related to my question on Ask Ubuntu: Add physical partition to QEMU/KVM virtual machine in virt-manager (see "Updates" near the end, if needed). Is there a nice way to run any arbitrary ...
6
votes
2answers
9k views

Systemd automount vs autofs

I recently found that (among others) network shares can be automatically mounted on access. In Ubuntu there are two options either using autofs or the automount feature of systemd. Could perhaps ...
3
votes
3answers
4k views

Disable auto-mounting in Ubuntu 16.04

I'm working on creating an Ubuntu variant that has a lot of forensic analysis tools etc installed. However I can't seem to find out how to disable auto-mounting at all..I want it to NEVER mount ...
0
votes
1answer
2k views

When is an usb device mounted as sdb and when as sdc?

I had a script last week that expected my usb to be sdc, I was using this command usb_path=`lsblk | grep sdc1 | awk '{print $7}'` but then I came back and saw that the stick was empty, because the ...