LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 09-26-2018, 08:12 PM   #1
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Rep: Reputation: Disabled
Unhappy Unauthorized to unmount USB drive


I just installed Bodhi Linux 5.0.0 onto an Acer Notebook yesterday. After doing updates and getting Apps installed I decided to move some files via USB flashdrive from my PC (Makulu Lindoz) to install on the Bodhi Notebook. All went well,,created Document folder, Music folder etc., and moved the items into Bodhi. It uses the PCManfm as it's filemanager which I am unfamiliar with since I have previously been a Linux Mint user. When I select either "unmount volume" or "eject removable media" I get an error message that says: "Not authorized to perform operation". All I can do is shut it down to remove it. I would prefer NOT to have to do this thru the terminal each time, is there a setting I am missing to enable me to simply "click & eject" ?
Much appreciation,
Lighthorse
 
Old 09-27-2018, 02:18 PM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 2,679

Rep: Reputation: Disabled
Often there is Preferences under the Edit menu, you may be able to alter the behaviour in there.

Failing that, you should be able to unmount it from the command line using sudo or the root account.

(No need to shutdown the computer to disconnect/unmount it. )
 
Old 09-27-2018, 02:24 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 7,159

Rep: Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436
linux, PCmanFM pluging in usb sticks. I just plug in and unplug. its called hot plugging. maybe if you give yourself sudo no passwd because mount and unmount is a root user thing, it may elevate that, or look at your polkit rules for hot plugging that too maybe what is causing this.
 
1 members found this post helpful.
Old 09-27-2018, 09:56 PM   #4
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Unable to unmount USB- Not Authorized

Fatmac, thanks for your feedback, I have been to the Edit preferences and there is nothing there to enable "unmount", although it does mention "during unmount....." so I would assume it is already an option to do so. I need someone physically running Bodhi to advice me if they are having the same issue and if and how they were able to resolve it. I am well aware that I can use the terminal to accomplish the task as I mentioned in my previous post, I prefer not to and would think I wouldn't have to.
I'll keep digging for info and help.
 
Old 09-27-2018, 10:04 PM   #5
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5.0
Posts: 160

Rep: Reputation: 23
maybe see the totsl thread for changing permissions

https://www.linuxquestions.org/quest...ns-4175638595/
 
1 members found this post helpful.
Old 09-27-2018, 10:10 PM   #6
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Talking Unable to unmount USB- Not Authorized

BW-userx,
Thanks for your response albeit over my head. I will do some research into Polkit and see if I can figure out how to change permissions.

Background: I am a 64 yr old woman who has built 3 Linux systems from hardware compatibility up and installed and configured 7 various distros. I gained an AA in Computer Technology back in 1992 and built an 8088. Life changed after a major vehicle crash that broke my back and I had been out of touch with the field up until about 5yrs ago when I gave up on Windows OS. I have never been a programmer, so much of this is over my head, though I continue to learn on my own and from the help of others such as yourself. I appreciate any further thoughts or direction you might be able to point me towards. Until then, I guess I'll ask "The Google" to splain me some stuff, like how to find them darned permissions !
 
Old 09-27-2018, 10:19 PM   #7
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Wink Unable to unmount USB- Not Authorized

Hemlocktree,

Now that link looks helpful, I will check it out. In changing permissions, will this link be pertinent to ALL distros ? That's how "newbie" I am ! Looks like I have my homework cut out...right after the residual headache from yesterday dissipates.

Thanx again
 
Old 09-27-2018, 10:20 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,181
Blog Entries: 24

Rep: Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846Reputation: 3846
I am going out on a limb and speculate that the mounted drive is owned by root and that's why user can't unmount it. Looking at the "properties" of the drive in a file manager or the command

Code:
ls -l /path/to/USB/drive
should reveal who owns it.

https://linuxnewbieguide.org/how-to-...te-permission/
 
1 members found this post helpful.
Old 09-27-2018, 10:23 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 7,159

Rep: Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436
Quote:
Originally Posted by Lighthorse View Post
BW-userx,
Thanks for your response albeit over my head. I will do some research into Polkit and see if I can figure out how to change permissions.

Background: I am a 64 yr old woman who has built 3 Linux systems from hardware compatibility up and installed and configured 7 various distros. I gained an AA in Computer Technology back in 1992 and built an 8088. Life changed after a major vehicle crash that broke my back and I had been out of touch with the field up until about 5yrs ago when I gave up on Windows OS. I have never been a programmer, so much of this is over my head, though I continue to learn on my own and from the help of others such as yourself. I appreciate any further thoughts or direction you might be able to point me towards. Until then, I guess I'll ask "The Google" to splain me some stuff, like how to find them darned permissions !
this is an old file I saved for this reason and used for same in I forget what distro's,
hopefully it will circumvent you having to research it. The only thing I'd do is research how polkit rules match this one as this file is a few years old, and that your system is using polkit, (has it installed).


this file is before systemD, old. and I have not had to use it in a few years, I think it was used on a Debian system. I've since moved away from that Distro. I just keep it in my dropbox account for just in case situations.


Code:
#[Allow Automount]
#Identity=unix-group:plugdev
#Action=org.freedesktop.udisks2.filesystem-mount
#ResultAny=yes
#ResultInactive=yes
#ResultActive=yes

# place in 
#create dir if needed
#/etc/polkit-1/localauthority/50-local.d/automount.pkla


[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
as far as using Bodhi, it is an unsupported Disto, the maintainer/owner bailed out and basically removed everything on his sight about it. I got rid of my install of it when I seen that.

Last edited by BW-userx; 09-27-2018 at 10:33 PM.
 
Old 09-27-2018, 10:35 PM   #10
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Wink Unable to unmount USB- Not Authorized

Hemlocktree,
Having read the link to the thread in your previous reply, I should add that I do not have an issue with "mounting" a USB flashdrive or moving files from it to my system or from the system back to the flashdrive.
The system simply will not allow me to "unmount" it...and yes I am aware that I can accomplish this in the terminal but would rather click "umount" and get on with the day so to speak. It just seems to me it should be a fully functional aspect of the system for a user ?
I am also investigating "hotplugging" as BW-userx has suggested, as I always thought just ripping it out would damage the USB drive.
 
Old 09-27-2018, 10:40 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 7,159

Rep: Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436
as long as no read or write is being done on the medium it should not hurt it. though clicking on that little arrow to unmount it and getting an you're not authorized to unmount it very strange to say the lest. Especially when it mounts it by just plugging it in. That is just strange behavior.

I've never encountered such a thing on any distros I've ever installed. if it gives you too much grief I'd suggest moving on to a different disto, their are plenty more to pick from.
 
Old 09-27-2018, 10:41 PM   #12
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Wink Unable to unmount USB- Not Authorized

BW-userx,

So all of that code gets copied and pasted into the terminal ? Which line do I need to look at and can it be changed there ? I appologize, you are all being so kind to try to help me and right now my limited 3% of brain matter is swimming !
I am fairly fearless, afterall it is a new insatll and the worst that can happen is I crash it and have to start over eh ? Old lady with nuthin' but time but a little overwhelmed. )
Need to put myself on pause until tomorrow and look at all of this with fresh eyes in the morning.
 
Old 09-27-2018, 10:52 PM   #13
Lighthorse
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Wink Unable to unmount USB- Not Authorized

Bw-userx,

I just now noticed your comment about how the owner baled on the project. Really Bodhi 5.0.0 the new release ? I swear it said it was supported for 5yrs. I may have to rethink this OS. I know I do not like Linux Lite, perhaps Puppy ? This is a small Acer Notebook 1.6ghz that I just want a small OS on to take with me on the fly, that works basically "out of the box." Any suggestions there ?
I have been running Linux Mint for 5 yrs and now have Makulu LinDoz on my desktop. I had installed ChaletOS on the Acer and liked it, but it too is no longer supported.
Thanks for all your help !
Lighthorse
 
Old 09-27-2018, 10:55 PM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 7,159

Rep: Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436Reputation: 1436
Quote:
Originally Posted by Lighthorse View Post
BW-userx,

So all of that code gets copied and pasted into the terminal ? Which line do I need to look at and can it be changed there ? I appologize, you are all being so kind to try to help me and right now my limited 3% of brain matter is swimming !
I am fairly fearless, afterall it is a new insatll and the worst that can happen is I crash it and have to start over eh ? Old lady with nuthin' but time but a little overwhelmed. )
Need to put myself on pause until tomorrow and look at all of this with fresh eyes in the morning.
first open a open a terminal and issue this command to see if that directory is present.

Code:
ls /etc/polkit-1/localauthority/50-local.d
or 
ls /etc/polkit-1
and all you see is rules.d then
Code:
sudo mkdir -p /etc/polkit-1/localauthority/50-local.d
I use nano it is termanal based.
Code:
sudo nano /etc/polkit-1/localauthority/50-local.d/automount.pkla
it creates a blank file by that name automount.pkla in that terminal with nano open, copy all of the text off of here, then in the terminal ctrl+shitf+v or middle mouse button (depending on what terminal you are using) to paste it into file (nano). then ctrl+x to close it, you'll get a message save modified buffer press 'y' then hit enter key to save it. you have to be root or sudo to write to that side of system.

if you do not have nano installed, I hope you don't have to use vi. you can though some might disagree, use something like mousepad, or kwrite to do the same. using a terminal,

Code:
sudo (plain (flat file) text editor program name)  /etc/polkit-1/localauthority/50-local.d/automount.pkla
paste it into that then save it.

Last edited by BW-userx; 09-27-2018 at 11:05 PM.
 
Old 09-28-2018, 02:17 AM   #15
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Rep: Reputation: Disabled
I've had this happen if I sudo pcmanfm, as when it mounts the USB drive it does so as root and then other apps can't do stuff right. It sounds to me like the drive is probably mounted as root, it wouldn't hurt to try running pcmanfm as root and see if you can unmount it then, at least to confirm that's your issue.

I think gparted can unmount usb drives if it's run as root too as a possible alternative.
 
  


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
[SOLVED] Can't unmount usb flash drive Gregg Bell Linux - Newbie 1 12-13-2015 09:09 PM
[SOLVED] usb thumb drive unmount and remount by itself standerby Linux - Hardware 13 07-14-2011 08:50 AM
Can't unmount after I unplugged usb drive on accident xmrkite Linux - Software 2 10-26-2010 12:59 PM
Cannot unmount usb drive without sudo mg92865 Linux - Newbie 10 12-30-2007 11:56 AM
Unmount USB Drive stevsom Linux - General 2 05-15-2005 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 10:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration