Questions tagged [automounting]

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

Automounting is a service that's typically done my a daemon. Software and/or daemons that provide automounting as a service are classified as automounters.

Links

FREQUENTLY ASKED QUESTIONS:

437 questions
49
votes
3 answers

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? Also, what does delay_connect option to sshfs…
Piotr Dobrogost
  • 4,116
  • 5
  • 35
  • 46
49
votes
3 answers

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/usbstick vfat…
Foo Bar
  • 3,462
  • 7
  • 21
  • 28
35
votes
3 answers

Does mount always require root privileges?

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 mounted by unprivileged users"... which is…
Trevor Boyd Smith
  • 3,772
  • 12
  • 36
  • 44
24
votes
2 answers

How does Linux know which USB hard drive is which?

Currently I have Linux Mint installed on my PC with a USB hard drive partition mounted as /home. This is working well. If I install a second USB hard drive, is there any chance Linux will get confused between the two, and try mount the second hard…
misha256
  • 547
  • 1
  • 5
  • 14
24
votes
3 answers

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,password=123 it works great. But I don't know how to…
user6354
  • 343
  • 1
  • 2
  • 4
23
votes
1 answer

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. So far, if I am right, I learned that by mounting…
DutchArjo
  • 747
  • 3
  • 8
  • 21
20
votes
2 answers

Is there anyway to automatically mount a filesystem when I open a symbolic link to a directory on that filesystem?

I am using Arch with Xfce. Recently, I have created a symbolic link to a directory on a filesystem. But I don't want to mount the filesystem during boot or manually mount it before I open the symbolic link. Is there anyway to auto-mount that…
Brainchild Ho
  • 301
  • 2
  • 7
19
votes
6 answers

How to mount removable media in /media/

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 /media/ manually with mount / umount and the…
cedbeu
  • 572
  • 2
  • 4
  • 12
19
votes
3 answers

How to auto mount / permanently mount external devices on NixOS

I have a USB stick and an NTFS hard drive partition that I'd want to use in NixOS. On some other distribution, I'd mount it using ntfs-3g in /mnt. But on NixOS, the directory doesn't exist; I suppose NixOS has some other canonical way and/or place…
stefkin
  • 328
  • 1
  • 2
  • 9
18
votes
2 answers

/etc/fstab: meaning of "nofail" if "noauto" is already specified

From my understanding of /etc/systemd options, noauto means that the device will not be mounted at boot time (or with mount -a). Is there any situation where adding nofail changes the behaviour if noauto is already given, or is it totally…
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
18
votes
1 answer

systemd: How do I automount a USB filesystem using /etc/fstab?

I want my USB filesystems to automount when I connect the device. How do I setup automount with systemd via /etc/fstab?
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
18
votes
4 answers

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 in between (but they're not important for the…
Brutus
  • 365
  • 1
  • 2
  • 8
16
votes
5 answers

Mounting all partitions on hard disk automatically on Linux Mint

Issue I have a Linux Mint installation. Every time that I boot, I need to manually mount the two partitions on my computer(New volume D and Drive C). If I don't do this, these drives don't show up anywhere. I want to know if there is some way to…
IcyFlame
  • 334
  • 1
  • 4
  • 12
15
votes
3 answers

How do I automount usb drives in Linux (Debian)?

With every new release the way to automount USB drives in Linux seems to change (fortunately I'm using Debian, so I'm only losing a few days on this every 2 years). We used to have usbmount, udisks, udisks2, udisks-glue, pmount, custom udev rules,…
Circonflexe
  • 279
  • 1
  • 2
  • 7
15
votes
4 answers

How to stop auto mounting of devices in Ubuntu?

I have an Ubuntu 16.04 LTS desktop system that I use to rescue disk drives (using dd or ddrescue). Whenever I plug in a disk drive it is automatically mounted and shown in the file manager. I don't want this because I am afraid of the disk to be…
nn4l
1
2 3
29 30