You are not logged in.

#1 2022-06-07 16:11:01

rafaellancas
Member
Registered: 2022-05-31
Posts: 86

[SOLVED] Is there a way to automount a flash drive?

I would love to be able to automount my flash drives without having to put my password every single time, and I also would like to know why it takes soooooooooo long to mount it. In windows, I plug it and it's mounted, I can copy files to and from it easily, but on Arch it just takes forever to mount or to unmount, and sometimes it copies the files, sometimes it doesn't. It's really annoying. Is there a way to fix the permissions for flash drives?

I tried installing udisks, udiskie, udisks2 and others like these but none of them work properly, I'm having to reboot to windows every time I need to use a flash drive.

Last edited by rafaellancas (2022-06-29 02:59:30)

Offline

#2 2022-06-07 17:06:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [SOLVED] Is there a way to automount a flash drive?

rafaellancas wrote:

I tried installing udisks, udiskie, udisks2 and others like these but none of them work properly,

These would most likely be the tools to use depending on what WM / DE you are using.  But which WM/DE do you use?  How did you configure udisks and friends (simply installing them is not sufficient)?  How do they not work properly?

How long is too long in your other unrelated problem that should be in it's own thread?  What errors do you see in the journal when this mounting takes too long?  How much data were you trying to move from/to the flash drive in these incidences?  Is it just unmounting after transfering data that takes a long time, or does mounting too?

For fixing permissions of the drives, this should be yet another thread ... with some information.  What are the permissions now?  Why do you think they need "fixing"?  What's broken?  What filesystems are used on these drives?  What is the airspeed velocity of an unladden swallow?

EDIT: Note that you've been instructed previously by a moderator:

V1del wrote:

For the future please make distinct topics per question so different trouble shooting steps don't intermingle in the discussion.

Last edited by Trilby (2022-06-07 17:08:32)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-06-07 17:53:34

rafaellancas
Member
Registered: 2022-05-31
Posts: 86

Re: [SOLVED] Is there a way to automount a flash drive?

Trilby wrote:
rafaellancas wrote:

I tried installing udisks, udiskie, udisks2 and others like these but none of them work properly,

These would most likely be the tools to use depending on what WM / DE you are using.  But which WM/DE do you use?  How did you configure udisks and friends (simply installing them is not sufficient)?  How do they not work properly?

How long is too long in your other unrelated problem that should be in it's own thread?  What errors do you see in the journal when this mounting takes too long?  How much data were you trying to move from/to the flash drive in these incidences?  Is it just unmounting after transfering data that takes a long time, or does mounting too?

For fixing permissions of the drives, this should be yet another thread ... with some information.  What are the permissions now?  Why do you think they need "fixing"?  What's broken?  What filesystems are used on these drives?  What is the airspeed velocity of an unladden swallow?

EDIT: Note that you've been instructed previously by a moderator:

V1del wrote:

For the future please make distinct topics per question so different trouble shooting steps don't intermingle in the discussion.

Right! I'm sorry about the complaining. I'll go by parts:

I didn't configure udisks, udiskie and udisks2, I just installed them. I"ll check the wiki for instructions on how to configure them.
It takes like 1-2 minutes to mount the flash drives and they do not unmount unless I go to the partition manager.
I'm on KDE.

I would like to focus mainly on the automount part, I'll make new topics for the other complaints.


Thank you so much for your patience, support and hard work.

Offline

#4 2022-06-07 20:24:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] Is there a way to automount a flash drive?

You're not supposed to require root or other permissions to mount an external drive in an active session.
Do you try to open/mount them from dolphin?

loginctl session-status

About "takes so long but not on windows": those are either dbus timeouts (session broken, see above) or the drive has the dirty bit set and gets fsck'd.
Typical reasons would be unclean umounts, also under windows ("remove safely")
Also see the 3rd link below (mandatory)

Offline

#5 2022-06-08 01:27:15

rafaellancas
Member
Registered: 2022-05-31
Posts: 86

Re: [SOLVED] Is there a way to automount a flash drive?

seth wrote:

You're not supposed to require root or other permissions to mount an external drive in an active session.
Do you try to open/mount them from dolphin?

loginctl session-status

About "takes so long but not on windows": those are either dbus timeouts (session broken, see above) or the drive has the dirty bit set and gets fsck'd.
Typical reasons would be unclean umounts, also under windows ("remove safely")
Also see the 3rd link below (mandatory)

Thank you! I reinstalled udisks and everything seems to work fine now. I'll read the links to know more about d-bus.

Offline

#6 2022-06-08 05:49:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] Is there a way to automount a flash drive?

This sounds and pretty much only makes sense if you're running partial updates. Don't.
https://wiki.archlinux.org/title/System … nsupported

Offline

#7 2022-06-09 08:20:58

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: [SOLVED] Is there a way to automount a flash drive?

@rafaellancas:  Make sure to edit your original post and prepend the title with [SOLVED]; e.g. [SOLVED] Is there a way to automount a flash drive?


Arch Linux with Openbox & Tint2

Offline

Board footer

Powered by FluxBB