LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I un-protect my USB? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-un-protect-my-usb-4175491018/)

gael33 01-12-2014 06:05 AM

How do I un-protect my USB?
 
How do I un-protect my USB?


Since I upgraded to LM16 Cinnamon I appear not to have ownership of my USB drives. I cannot copy or paste files to any of my USB drives.
How do I un-protect my USB drives (the drives tell me I am not the owner)?
I tried going into properties and change the settings without success. Going through the Terminal and typing Nemo is successful but rather long-winded and inconvenient.
I guess that some kind person will give me the answer :)

aus9 01-12-2014 06:35 AM

Hi

I use Debian but see if this helps?

udev is the daemon used for mounting of removeable disks including usb stick/drives

but it needs a rule and my rule set comes from a package called udisks (and udisks2)

have a look and see if you have /lib/udev/rules.d/80-udisks*.rules

2) it also helps to have a file manager that will allow "auto mounting" disks to appear in your FM

I have used SpaceFM, PCVManFM Thunar and they are similar in that you need to go into the file manager's settings and find settings like

--mount removeable disks on insertion


etc

3) but I also have kernel polling enabled but lets leave that to a LM expert to comment on later

4) since you mention a terminal you should be able to get root powers and do something about the folder?

Code:

sudo su
chown -R slainte:slainte /media/*

might work

YMMV

gael33 01-12-2014 06:57 AM

Quote:

Originally Posted by aus9 (Post 5096601)
Hi

I use Debian but see if this helps?

udev is the daemon used for mounting of removeable disks including usb stick/drives

but it needs a rule and my rule set comes from a package called udisks (and udisks2)

have a look and see if you have /lib/udev/rules.d/80-udisks*.rules

2) it also helps to have a file manager that will allow "auto mounting" disks to appear in your FM

I have used SpaceFM, PCVManFM Thunar and they are similar in that you need to go into the file manager's settings and find settings like

--mount removeable disks on insertion


etc

3) but I also have kernel polling enabled but lets leave that to a LM expert to comment on later

4) since you mention a terminal you should be able to get root powers and do something about the folder?

Code:

sudo su
chown -R slainte:slainte /media/*

might work

YMMV

Thanks for your help, much appreciated.
How does this look compared to yours?

gael33@gael33 ~ $ sudo ls -lh /media /media/gael33
[sudo] password for gael33:
/media:
total 36K
drwxr-x---+ 2 gael33 gael33 4.0K Jan 3 12:27 gael33
lrwxrwxrwx 1 gael33 gael33 4 Dec 16 16:17 usb -> usb0
drwxrwxrwx 2 gael33 gael33 4.0K Dec 16 16:17 usb0
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb1
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb2
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb3
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb4
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb5
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb6
drwxr-xr-x 2 gael33 gael33 4.0K Dec 16 16:17 usb7

/media/gael33:

gael

Habitual 01-12-2014 07:07 AM

A relevant post at forums.LinuxMint.com has some "history"

gael33 01-12-2014 07:08 AM

I'm totally baffled by this. Although it looks like I have access to my usb drive(s) it still needs root permissions through the editor to paste files etc to my usb stick ... even when I wish to remove the stick, it still requires my password to remove it safely.
Any ideas anyone?

gael

dandev 01-12-2014 03:22 PM

Did you try the chown command? What about just doing chmod 777

gael33 01-12-2014 04:33 PM

Quote:

Originally Posted by dandev (Post 5096789)
Did you try the chown command? What about just doing chmod 777

If you look at earlier posts you will see that I used the chown command.
I tried typing just sudo chmod 777 but unfortunately it did nothing

gael33@gael33 ~ $ sudo chmod 777
[sudo] password for gael33:
chmod: missing operand after ‘777’
Try 'chmod --help' for more information.
gael33@gael33 ~ $

The question is ... did I miss out something from the command line?

gael

andy78 01-12-2014 05:06 PM

Linux mint with any windows manager is an easy to use desktop no matter of any window manager.
In the lates relase the added users & groups panel.

Most likely its enoug to use that to and add to to the "removable media" or "usb" group to hav full access every time you attache your usbstick.
Check the avaible groups and you will figure it out, i can't rememebr the full name.

aus9 01-12-2014 05:35 PM

try

Code:

sudo su
chown -R gael33:gael33 /media
chmod 775 -R /media



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