[SOLVED] Trouble mounting usb stick

Getting your soundcard to work, using Debian on non-i386 hardware, etc

[SOLVED] Trouble mounting usb stick

Postby arzgi » 2018-04-29 13:03

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.
arzgi
 
Posts: 134
Joined: 2008-02-21 17:03
Location: Finland

Re: Trouble mounting usb stick

Postby peter_irich » 2018-04-29 14:07

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.
peter_irich
 
Posts: 1227
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Trouble mounting usb stick

Postby bw123 » 2018-04-29 14:24

Code: Select all
$ ls -ld /media /media/*/


mount points here look like this

drwxr-xr-x 4 root root

is /media located on ro ?
User avatar
bw123
 
Posts: 3079
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Trouble mounting usb stick

Postby arzgi » 2018-04-29 17:08

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!!
arzgi
 
Posts: 134
Joined: 2008-02-21 17:03
Location: Finland


Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable