Questions tagged [automounting]

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

8
votes
3answers
11k views

Automount USB drives with no GUI requirement (halevt replacement)

For minimal installations of Debian, I have been using halevt to enable automounting of USB drives. Halevt is reliable and requires no configuration aside from installing the package. Now, halevt has ...
10
votes
5answers
27k views

Automounting USB sticks on Debian

I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted. What I've done is ...
23
votes
3answers
64k views

How does _netdev mount option in /etc/fstab work?

I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab? Does systemd alter this behavior? ...
8
votes
1answer
7k views

How to set default auto mount options for removable media?

I have quite a bit of removable media (flash drives, external hard drives, etc) that I want to adjust auto mount options for. How does one do this? Is there something similar to /etc/fstab?
18
votes
4answers
54k views

automount nfs: autofs timeout settings for unreliable servers - how to avoid hangup?

I'm running a small server for our flat share. It's mostly a file server with some additional services. The clients are Linux machines (mostly Ubuntu, but some others Distros too) and some Mac(-Book)s ...
17
votes
6answers
42k views

How to mount removable media in /media/<LABEL> automatically when inserted, without any desktop environment?

I have a Debian sid system (Wheezy) (and same for arch), without any desktop environment (and no Xorg at all). I can mount my SD-cards, USB sticks, external HDD by label into a specified directory in ...
12
votes
1answer
13k views

What is the difference between mounting in fstab and by mounting in file manager

..and what are the consequences of the different methods? I have been trying some things with the mounting of an sda2 partition. Mounting in fstab, not mounting in fstab but from the file manager. ...
10
votes
2answers
892 views

Triggering an action when a specific volume is connected

I have a USB key that contains my keepass2 password database and I'd like to perform some actions when it is plugged into my computer, namely: Auto-mount it to some specific location When the ...
6
votes
1answer
5k views

Udev rule is not being used?

I'm setting up udev to handle my external USB hard drive when it gets plugged in and removed (no mounting yet). So far, I've made two new rules in /etc/udev/rules.d/10-local.rules to log adding/...
2
votes
1answer
1k views

How to auto mount an ssh file system on demand with an RSA key

I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi). I can do this with sshfs (auto mount in fstab) when I set up a blank ...
29
votes
3answers
36k views

Does mount always require root privileges? [duplicate]

I was under the impression that any sort of call to mount requires root privileges. But recently I was told "You should instead create appropriate entries in /etc/fstab so that the filesystems can be ...
6
votes
2answers
8k views

Automount not disabling in Ubuntu 12.04 or 13.04

I'm trying to disable the automounting of any usb device. I have this working in Ubuntu 10.04, but I'm trying to do the same in either 12.04 or (ideally) 13.04 but not having any luck. Everywhere I ...
6
votes
3answers
12k views

How can I create a udev rule to mount a USB drive read only?

I'm trying to set a particular USB drive to always mount read only. If I plug it in, it is seen as sdb with a single partition, sdb1. Here are some relevant udevadm lines (not the entire output of ...
4
votes
2answers
2k views

USB storage devices aren't automatically mounted when inserted on a fresh install of Debian 6.0

I installed Debian 6.0 (squeeze) a few days ago on my machine. I installed the default GNOME desktop, standard settings. Unfortunately, I just noticed that when I plug in USB storage devices (external ...
3
votes
1answer
4k views

Can I automate mounting a cifs share without storing my password in plaintext?

I currently use a script which contains commands along the lines of sudo /sbin/mount.cifs $SERVER_SHARE $MOUNT -o username=$DOMAIN_$USER,uid=$USER,gid=$USER,file_mode=0664,dir_mode=0775 to mount my ...
2
votes
0answers
446 views

Integration of `afuse` with `sshfs` as a (systemd?) user-daemon spawned from login or first shell

To facilitate working with remote files, I setup afuse with sshfs to run from my .bashrc. It works, after bash init all my remote trees from ~/.ssh/config/ are mounted on-demand under ~/scp/, but ...
1
vote
0answers
774 views

Automount local drives on boot and hot-plug

I am trying to automatically mount all readable internal and external drives on boot and on hot-plug if they are not already mounted, preferably as a non-root user. I cannot use fstab to do this ...
0
votes
1answer
497 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 ...
33
votes
3answers
117k views

How to automatically mount an USB device on plugin-time on an already running system?

I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device UUID=B864-497A /media/...
12
votes
4answers
16k views

Mounting USB disks automatically (How it works)

Background: I am trying to mount a usb disk as read only but my ubuntu install is mounting it rw when I plug the disk in. I can unmount the disk manually and remount it manually as read only with ...
10
votes
2answers
44k views

How to edit /etc/fstab properly for network drive?

I'm trying to automatically mount a network drive at startup by editing /etc/fstab but doesn't work. If I execute this líne, sudo mount.cifs //192.168.0.67/test /home/pi/test -o username=myname,...
12
votes
5answers
2k views

How does mounting on the GUI work “under the hood”

UPDATE Please correct me if I'm wrong: For working on my computer, with a GNU/Linux Distribution named Debian, I know two ways to enter a command, start an application, open a file, etc.: a Command ...
8
votes
2answers
2k views

Suggestions needed for udev, udisks, autofs, notification setup for a complete automounting solution on Linux

Continuing on Automounting plugged devices in linux, which left things a bit basic. Running Gentoo, I'm automounting a combination of local and network devices on my laptop with autofs-5.0.4-r5. Doing ...
6
votes
1answer
3k views

Preventing mounting some partition by user (gnome+udisk)

I'd like to prevent automounting one partition (known UUID etc. ) on one external harddrive. Others should be automounted. Distro is 'modern' (uses lots of beta software) and uses udisk+udev for ...
9
votes
2answers
407 views

Automounting plugged devices in linux

Auto-mounting seems to be a bit of a messy thing in linux. The options to automount ranges from autofs, udev, hal or even filemanagers. What is the best-practice method to enable automounting on ...
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!...
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 ...
5
votes
4answers
6k views

Detect if a (NTFS) drive is mounted or not. If not then mount it

I want to sync an USB drive with a folder located on a NTFS partition which is not mounted at boot time. I have found a command to do that: rsync -axu /media/USB/folder /home/user/folder. But I have ...
4
votes
3answers
2k views

Removable USB stick listed as non-removable in /sys/block?

In my question Bash script to output path to USB flash memory stick I got stuck on a problem nobody else seems to be having. (The issue also impedes my desire to use this answer: https://unix....
1
vote
1answer
3k views

How to automount sshfs? [duplicate]

I am trying to auto mount a remote resource through sshfs but is not working for me. I have read all of this, this, this and this before ask to see if I can get the solution for my issue but it didn't ...
1
vote
1answer
259 views

Mounting Windows 8.1 partition in fstab fails even when FastBoot is turned off

I'm using Arch Linux, and with this in my fstab for mounting my Windows partition: /dev/sda2 /media/windows ntfs-3g josh,exec 0 0 it panics and goes into emergency mode on boot. I turned off ...
1
vote
2answers
1k views

How to get my USB stick to auto-mount?

I used to be able to have my USB stick auto-mount when I plugged it in, on my GNOME desktop. After some fiddling with my system, it doesn't happen anymore. I now have to resort to doing this using the ...
4
votes
1answer
2k views

How do I auto-mount internal HDD partitions to dynamic mount points?

I would like to auto-mount some partitions the way USB drives and external HDDs are currently mounted on my system. I understand that to auto-mount internal HDDs at startup, I need to place it in the ...
4
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....
3
votes
3answers
878 views

Debian VirtualBox auto mount fails on startup but works after login: mounting failed with the error: No such device

I have a VirtualBox Debianx64 system installed and I was trying to share a host folder to it. Following a tutorial, I came to a mount command: sudo mount -t vboxsf -o rw,uid=1000,gid=1000 [Virtual ...
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 ...
3
votes
3answers
4k views

Tab completion hangs

When I first open a terminal, or open a new one after not having used one for a while, any kind of tab completion in my home directory (for example, ls and Tab) takes several seconds. I have seen this ...
1
vote
1answer
310 views

Where is my tablet's memory card mounted on laptop?

I connected my Asus fonepad7 tablet to my laptop via usb. My laptop automatically detects it & opens. But I'm unable to find where the memory card of my tablet mounted on laptop. Just see below, ...
1
vote
1answer
2k views

Debian squeeze post-installation automount problem, USB port confused for /dev/cdrom0

Usually when I install Linux on a laptop, I use the following command $ dd if=installcdrom.iso of=/dev/sdX where sdX is the inserted, unmounted USB stick (sdb usually), and installcdrom.iso is a CD-...
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 ...
1
vote
2answers
583 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/...
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 ...
0
votes
1answer
543 views

CentOS 7 SSHD and automounted home directories?

Create a home directory export on a separate server. Create a second, local home directory on the test CentOS 7 server. Make sure the local and NFS homedirs have the same UID, GID and permissions. Put ...
0
votes
2answers
1k views

Disable USB partition from auto-mounting on Gnome 3.16

I have a Sony PRS-T1 ebook reader which is based on Android 2.2. When I connect it to my PC, it shows up as two USB partitions: READER and SETTING. The latter is a read-only partition, only useful the ...