You are not logged in.

#1 2012-06-05 08:48:30

namelessbody
Member
Registered: 2012-06-05
Posts: 3

flash-drive automount. can read but cannot write.

I've just met strange problem with flash-drive.
I use this code https://wiki.archlinux.org/index.php/Ud … if_present
to make automount works.
So the problem is I can read data from mounted flash-drive, but cannot write.
I don't see any errors, though. It seems like a wrote some data, but actually, when I re-mount my flash-drive, all I wrote seems to be disappeared.
ps: I've tried it with another flash drive, and tried to copy files as root. Sadly, it didn't help.

Offline

#2 2012-06-05 10:03:02

DarkCerberus
Banned
From: Holsworthy, Devon
Registered: 2011-12-31
Posts: 252

Re: flash-drive automount. can read but cannot write.

What about creating this polkit to mount usb flash drives.

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no

And place it in the /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla  -  It's from the archlinux wiki - then logout and log back into the desktop environment.

Last edited by DarkCerberus (2012-06-05 10:03:29)


Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago.  ---  Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way

Offline

#3 2012-06-05 13:33:43

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: flash-drive automount. can read but cannot write.

If you are trying to mount ntfs filesystems: maybe it is mounted as type 'ntfs' instead of 'ntfs-3g'.

Offline

#4 2012-06-07 11:56:24

namelessbody
Member
Registered: 2012-06-05
Posts: 3

Re: flash-drive automount. can read but cannot write.

Terminator wrote:

If you are trying to mount ntfs filesystems: maybe it is mounted as type 'ntfs' instead of 'ntfs-3g'.

Filesystem of mounted devise is vfat

DarkCerberus wrote:

What about creating this polkit to mount usb flash drives.

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no

And place it in the /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla  -  It's from the archlinux wiki - then logout and log back into the desktop environment.

Yes, I did what you said, but it didn't help.

Offline

#5 2012-06-07 12:13:52

namelessbody
Member
Registered: 2012-06-05
Posts: 3

Re: flash-drive automount. can read but cannot write.

I just removed what I added from wiki https://wiki.archlinux.org/index.php/Ud … if_present,
and I loaded Mate-Desktop-Environment and reading/writing appears to be fine now.

Although, I usually do not use DE and simply load DWM from my .xinitrc.

So, is it possible to make writing works normal without using DE?

Offline

#6 2012-06-07 14:15:27

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: flash-drive automount. can read but cannot write.

It is possible, that's how I do it.  I run DE'less and used the exact same udev rule you linked above, automount works fine and I can read/write as my normal user, no permission problems.

I'm not sure where your problem lies, possibly to do with policykit/consolekit issues.  I don't have anything to do with them, not sure they are even installed, they definitely don't run.

Other than that maybe check if your user is in the storage group.  I don't even know if this is used any more or if it has any affect, but I always do it anyway smile

Offline

#7 2012-06-07 15:11:41

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: flash-drive automount. can read but cannot write.

If you tried using the rule posted by DarkCerberus, you need to be in the storage group.

Offline

#8 2013-08-13 23:45:20

Kirinthos
Member
Registered: 2013-08-08
Posts: 3

Re: flash-drive automount. can read but cannot write.

Terminator wrote:

If you are trying to mount ntfs filesystems: maybe it is mounted as type 'ntfs' instead of 'ntfs-3g'.

Hey Terminator, Thanks, I didn't even realize that on my fresh install i didn't grab ntfs-3g tools -- saved me the hassle


To begin to know, we must first admit that we do not.

"Simplicity is the ultimate sophistication" -Leonardo Da Vinci

Offline

#9 2013-08-14 00:20:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: flash-drive automount. can read but cannot write.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB