LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 03:48 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,510

Rep: Reputation: Disabled
Usually, on most distros, you set it to automount somewhere in the system menu.
 
Old 09-12-2021, 05: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, 06:15 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,772

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Try:
https://docs.xfce.org/xfce/thunar/us...ives_and_media
 
Old 09-12-2021, 07: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, 08:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,772

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
It does not look like gvfs has been installed. Try:
sudo apt install gvfs
 
Old 09-12-2021, 08: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, 09:15 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,772

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
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-12-2021, 11:33 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 12: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, 12: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



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 08:42 PM
usb device detection, manual insertion card(smart card) reader problem, zapkhiel Linux - Hardware 4 07-17-2009 08:50 AM
Running a script when auto-mounter detects USB thumb-drive insertion... Bane73 Linux - Desktop 4 10-24-2008 03:08 AM
How to detect insertion/removal of flash card in usb reader? logularjason Linux - Hardware 9 06-24-2006 03:11 AM
SuSe Linux 9.2 Freezes After Insertion of USB Flash Drive deepgrewal SUSE / openSUSE 13 04-13-2005 01:55 AM

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

All times are GMT -5. The time now is 01:29 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