[SOLVED] No user write access to reformatted USB stick

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] No user write access to reformatted USB stick

Postby tarazed » Aug 19th, '14, 01:38

Mageia4 x86_64 up-to-date
An old chestnut has just cropped up. Trouble with a new USB3.0 Transcend 8GB flash drive, formatted as DOS. Decided to reformat it and picked up instructions by browsing the forums.

This is what I did:
Code: Select all
dd if=/dev/zero of=/dev/sdc bs=4096
parted /dev/sdc mklabel gpt          # just a guess
parted /dev/sdc mkpart primary 2048s 8G
diskdrake                                      # reformatted as ext4 -> ext3
e2label /dev/sdc1 Grumium

So far so good. Unplugged and plugged in the device and ran "df -h" to check that the new partition was visible.
As user lcl:
Code: Select all
cd /run/media/lcl/Grumium
touch Grumium

Ouch! root access only, for writes. Nothing in fstab for the drive or another mounted USB3.0 drive which has no problems with hot-plugging. mtab shows that the "good" drive has no user option but the "bad" drive has user_xattr in the list.
I changed the disk label from gpt to msdos at some stage without affecting its behaviour.
What to do? How can I enable user write access?
Last edited by tarazed on Aug 19th, '14, 20:11, edited 1 time in total.
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: No user write access to reformatted USB stick

Postby benmc » Aug 19th, '14, 04:03

Hi

If you are using Dolphin either console as " SU" or run command : kdesu dolphin

it will take about 5-10 sec to load- much slower than your usual snappy loading.
at the dolphin header at the right drop down menu - set show menu [from memory ]
highlight the drive on the bottom left of the panel - don't need to access it.
set properties from root to your user name - 2 boxes

regards

Benmc
benmc
 
Posts: 1218
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: No user write access to reformatted USB stick

Postby tarazed » Aug 19th, '14, 08:51

Thanks for the response. Not at all familiar with KDE, dolphin or file managers. Will switch desktops and try that out.
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: No user write access to reformatted USB stick

Postby tarazed » Aug 19th, '14, 11:06

Well, I did try KDE and made no headway with dolphin. I think what you were describing is basically the pathway to diskdrake, which I used from a terminal in mate. Will have one more go at that rather than bin the device. Thanks.
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: No user write access to reformatted USB stick

Postby tarazed » Aug 19th, '14, 11:26

Nope, even with the disk unmounted in expert mode and setting the user permission property I still cannot write to the device. One thing to note is that the other hotplugged device is treated differently. Right-clicking on the desktop icon brings up a menu with "unmount" near the bottom. For the drive giving the trouble this option is "eject", which works for an ordinary user.
In mtab: good drive has
Code: Select all
ext4, options = rw,nosuid,nodev,relatime,data=ordered

bad drive has
Code: Select all
ext3 options = rw,nosuid,nodev,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: No user write access to reformatted USB stick

Postby tarazed » Aug 19th, '14, 20:11

Red-faced again. The problem had to be the mount point and sure enough it had been created under root. :oops: Changed the ownership and surprise, surprise it worked fine for the user. To make sure that things ran smoothly after that I deleted the mount point and hotplugged the device again and the mount point was recreated with user ownership. Two days that took!
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest