Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Trouble mounting usb stick

Need help with peripherals or devices?
Post Reply
Message
Author
arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

[SOLVED] Trouble mounting usb stick

#1 Post by arzgi »

Debian 9.4, xfce.

I made some file owner modification for files on usb stick, changed owner of file to test_user. As a result, /media/$Me
was owned by that_test user.

Code: Select all

drwxr-x---+  3 test_user test_user 4096 huhti 29 16:35 $Me
I deleted test user, changed /media to 777 rights, but still when I plug usb stick, I get error of Read-only system:

Code: Select all

Error creating mount point '/media/$Me/usb-stcik': Read-only system
Same, if I try to resume acl trying setfacl, it is read only system.

I can mount usb stick manually, which is a dejavu experience from many years ago :shock:

How could I restore it back to state, when usb stick was mounted when plugged in?
Last edited by arzgi on 2018-04-29 17:09, edited 2 times in total.

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Trouble mounting usb stick

#2 Post by peter_irich »

Auto mounting and rights are not a related things. Also it is not matter rights to directory used as mount point.
Auto mounting is tweaks from menu, in "Settings".
You can create the any directory on usb-stick , far example "nobody" and set its owner nobody:nogroup and its rights 775,
than any user belong to nogroup will be able to write in this dirctory.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Trouble mounting usb stick

#3 Post by bw123 »

Code: Select all

$ ls -ld /media /media/*/
mount points here look like this

drwxr-xr-x 4 root root

is /media located on ro ?
resigned by AI ChatGPT

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Trouble mounting usb stick

#4 Post by arzgi »

bw123 wrote:

Code: Select all

$ ls -ld /media /media/*/
mount points here look like this

drwxr-xr-x 4 root root

is /media located on ro ?
Good point, I had not thought of it. Two thins going wrong, and you can think latter has caused it all...

In /etc/fstab option noatime had been written naotime, which caused partition to be mounted read only. Fixing that, and usb-stick mounts again without additional hassle.

Problem solved, thank you very much bw123!!

Post Reply