LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-12-2021, 03:08 AM   #1
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Rep: Reputation: Disabled
How can I configure my system to mount usb drives at insertion (not at boot)


I'm running ubuntu 20.04. I want my usb drives to automatically mount when I plug them in. If Windows can do this, I'm sure ubuntu can too.
 
Old 09-12-2021, 04:48 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,707

Rep: Reputation: Disabled
Usually, on most distros, you set it to automount somewhere in the system menu.
 
Old 09-12-2021, 06:24 PM   #3
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Usually, on most distros, you set it to automount somewhere in the system menu.
Where would that be in ubuntu 20.04 running xfce?
 
Old 09-12-2021, 07:15 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,355

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Try:
https://docs.xfce.org/xfce/thunar/us...ives_and_media
 
Old 09-12-2021, 08:16 PM   #5
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
This would have been the perfect solution to my problem if not for the following message on my Thunar..File Manager Preferences..Advanced tab..Missing dependencies:

It looks like gvfs is not available.
Important features including trash support,
removable media and remote location browsing
will not work.

I've been digging for a solution to this, but so far I've come up empty.
 
Old 09-12-2021, 09:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,355

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
It does not look like gvfs has been installed. Try:
sudo apt install gvfs
 
Old 09-12-2021, 09:48 PM   #7
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
It does not look like gvfs has been installed. Try:
sudo apt install gvfs
I tried that and got:

Code:
...gvfs is already the newest version (1.44.1-1ubuntu1).
 
Old 09-12-2021, 10:15 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,355

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Quote:
It looks like gvfs is not available.
Important features including trash support,
removable media and remote location browsing
will not work.
Not making this easy... There is a bunch of gvfs stuff and if something isn't installed I don't know where to look at the moment.
 
Old 09-13-2021, 12:33 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,

even if gvfs is installed, something needs to actually start it.
If you run a file manager such as nautilus gvfsd will probably be
started viat the gvfd-daemon.service systemd unit.

If you are not running such a file manager you may find that udiskie
is a better option. This the approach that I use.

Evo2.
 
1 members found this post helpful.
Old 09-13-2021, 01:25 AM   #10
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

even if gvfs is installed, something needs to actually start it.
If you run a file manager such as nautilus gvfsd will probably be
started viat the gvfd-daemon.service systemd unit.

If you are not running such a file manager you may find that udiskie
is a better option. This the approach that I use.

Evo2.
Is there a way to launch udiskie when a usb is inserted?
 
Old 09-13-2021, 01:42 AM   #11
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Never mind. I didn't realize that if I just autostart udiskie at login it will solve my problem.

Thanks for all your help!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run a script at usb insertion? ahmad2080 Programming 3 09-21-2010 09:42 PM
usb device detection, manual insertion card(smart card) reader problem, zapkhiel Linux - Hardware 4 07-17-2009 09:50 AM
Running a script when auto-mounter detects USB thumb-drive insertion... Bane73 Linux - Desktop 4 10-24-2008 04:08 AM
How to detect insertion/removal of flash card in usb reader? logularjason Linux - Hardware 9 06-24-2006 04:11 AM
SuSe Linux 9.2 Freezes After Insertion of USB Flash Drive deepgrewal SUSE / openSUSE 13 04-13-2005 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration