Automount USB drive

Kernels & Hardware, configuring network, installing services

Automount USB drive

Postby questlinq » 2017-09-26 14:27

Hello,

I can't automatically mount USB drive on Debian Stretch minimal install. So far I've tried - pmount, udev and fstab and can't get any of these packages to mount my USB device.
Is there any other option that I could try out?
questlinq
 
Posts: 6
Joined: 2017-09-19 08:51

Re: Automount USB drive

Postby None1975 » 2017-09-26 15:15

I think, you can install file manager PcManFM. It is lightweight file manager, with automounting support.
OS: Debian 9.1 / WM: Openbox
Debian Wiki | DontBreakDebian
User avatar
None1975
 
Posts: 163
Joined: 2015-11-29 18:23
Location: Lithuania

Re: Automount USB drive

Postby questlinq » 2017-09-26 16:28

@None1975

I'm using this setup as a NAS server, therefore I need a simple solution to my mounting problem. I've tried out the suggested and still fails to automount USB devices.
questlinq
 
Posts: 6
Joined: 2017-09-19 08:51

Re: Automount USB drive

Postby reinob » 2017-09-26 17:45

If the mount is defined with the "auto" option in /etc/fstab systemd *should* mount it whenever it is plugged in.
(With sysvinit the semantics were different: "auto" meant to try to mount it when booting).

So something like:
Code: Select all
UUID=bla-bla /mnt/usb auto auto,nofail 0 2

should work.

Note that I haven't tested it. I don't (want to) automount USB at all.
reinob
 
Posts: 510
Joined: 2014-06-30 11:42

Re: Automount USB drive

Postby questlinq » 2017-09-26 18:01

@reinob

Now it works, thank you for your time and help.
questlinq
 
Posts: 6
Joined: 2017-09-19 08:51

Re: Automount USB drive

Postby oswaldkelso » 2017-09-26 18:24

I used this info when I ran rox-filer on it's own on my Dragora machines.

http://hakerdefo.blogspot.co.uk/2014/06 ... ory_3.html

II think this is the thread that he refers to viewtopic.php?f=6&t=114844&

I've since started using rox in conjunction with spacefm so udevil takes care of it now.

https://ignorantguru.github.io/udevil/
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1078
Joined: 2005-07-26 23:20
Location: UK


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable