8

I use Xubuntu. When I plug in my USB, I can simply mount and open it by clicking on its icon, but when I want to mount it from the command line, it needs root permission.

Why? And how can I mount my USB (the command line) without root permission? I can't put it in /etc/fstab, because it needs root permission.

Note: I don't want to mount an ISO file. My question was marked as duplicated but the target question had no valid answer. If you want to flag as duplicated, please first check the target question, and then add the duplicated flag. Thanks.

Mohammad Kholghi
  • 881
  • 1
  • 14
  • 31
  • Check that answer, somebody put the mount line in `/etc/fstab`. You JUST can edit it using root permission. @PabloBianchi – Mohammad Kholghi Jul 09 '19 at 09:23
  • However, thanks to you, I answered that question too;) @PabloBianchi – Mohammad Kholghi Jul 09 '19 at 09:40
  • Possible duplicate of [How to auto-mount from command line?](https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line). – Melebius Oct 01 '19 at 08:17
  • @Melebius FYI We are *unable* to edit the "duplicate target" list - those are handled automatically by the system based on flags. Your comment here alone to add the link to the other potential duplicate was sufficient enough, – Thomas Ward Oct 01 '19 at 13:58
  • @ThomasWard Really? It’s mentioned as the first option on https://meta.stackexchange.com/questions/306326/allow-users-to-suggest-edits-to-the-duplicate-list. – Melebius Oct 01 '19 at 15:28
  • @Melebius yes, but that meta post is a **feature request**. It's not a list of current functionality. – Thomas Ward Oct 01 '19 at 15:50
  • @ThomasWard OP says: _“Here are the options I **have**…”_ And what about this? https://meta.stackexchange.com/questions/291824/gold-tag-badge-holders-and-moderators-can-now-edit-duplicate-links – Melebius Oct 02 '19 at 06:18

1 Answers1

12

Using udisksctl mount -b /dev/sdXY we can mount without root permission, just like what gui does.

Mohammad Kholghi
  • 881
  • 1
  • 14
  • 31