Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Automount USB drive

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
questlinq
Posts: 69
Joined: 2017-09-19 08:51

Automount USB drive

#1 Post by questlinq »

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?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: Automount USB drive

#2 Post by None1975 »

I think, you can install file manager PcManFM. It is lightweight file manager, with automounting support.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

questlinq
Posts: 69
Joined: 2017-09-19 08:51

Re: Automount USB drive

#3 Post by questlinq »

@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.

reinob
Posts: 1196
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Automount USB drive

#4 Post by reinob »

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.

questlinq
Posts: 69
Joined: 2017-09-19 08:51

Re: Automount USB drive

#5 Post by questlinq »

@reinob

Now it works, thank you for your time and help.

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1494
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 59 times

Re: Automount USB drive

#6 Post by oswaldkelso »

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 http://forums.debian.net/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/
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

Post Reply