You are not logged in.

#1 2014-06-09 13:22:04

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

cant write on usb-device

hello,

when i try to copy something onto my usb-drive, i get the error

 Error creating directory: Operation not permitted

i just installed udisks to have an automount, maybe there is something i have to configure?

greets lizzy

Offline

#2 2014-06-09 14:31:56

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: cant write on usb-device

Hello
You didn't give enough informations:
file system type of the drive
how do you mount it
how do you intend to copy to it (CLI, file manager, ...)

It's better to use systemd-logind and be sure to be in an active session; the command

        loginctl show-session $XDG_SESSION_ID

should have a line with 'Active=yes'

See also https://wiki.archlinux.org/index.php/Udisks#Udisks for available tools to facilitate operations on removable devices.

Cheers.

Offline

#3 2014-06-09 21:30:03

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

Re: cant write on usb-device

hello,

berbae wrote:

file system type of the drive

fat32

berbae wrote:

how do you mount it

just opened it in the file manager, i guess it was automounted by udisks


berbae wrote:

how do you intend to copy to it (CLI, file manager, ...)

i just copy pasted in the file manager

barbae wrote:

loginctl show-session $XDG_SESSION_ID

loginctl show-session $XDG_SESSION_ID
Id=c1
Name=lizzy
Timestamp=Mo 2014-06-09 18:11:43 CEST
TimestampMonotonic=64745628
VTNr=1
TTY=tty1
Remote=no
Service=login
Scope=session-c1.scope
Leader=231
Audit=0
Type=tty
Class=user
Active=yes
State=active
IdleHint=yes
IdleSinceHint=1402330304070471
IdleSinceHintMonotonic=64825211

thanks for your help, im gonna read the article in more detail now!

lizzy

Offline

#4 2014-06-10 00:52:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: cant write on usb-device

caravanlizzy wrote:

just opened it in the file manager, i guess it was automounted by udisks...
i just copy pasted in the file manager

Which file manager?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-06-10 00:58:43

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

Re: cant write on usb-device

pcmanfm

Offline

#6 2014-06-10 01:03:47

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

Re: cant write on usb-device


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-06-10 07:34:38

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

Re: cant write on usb-device

i see, that article helps, but i still have some problems. i was trying to change the device-format with gparted, but i always get the error

daemon is inhibited

trying the same on my ubuntu pc, there is no problem at all.
then i tried to give writing acces to non-root users according to the arch wiki

https://wiki.archlinux.org/index.php/US … ge_Devices

but i get the error:

 mount -o gid=users,fmask=113,dmask=002 /dev/sdb1 /mnt/usbstick
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

and by the way, the format is not fat32 anymore. im not ven able to format to fat32 in gparted, am i missing some packages?

greets a lot

lizzy

Offline

#8 2014-06-10 07:45:54

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

Re: cant write on usb-device

What filesystem is on the drive then?

This thread is a mess. Are you trying to mount a USB drive or reformat it? Please slow down and read the documentation  and then work your way through it methodically. Haphazardly trying different things in the hope that something sticks is not a formula that will ever deliver any satisfactory result.

The gparted error throws up lots of results in a search; please make some effort to research error messages before posting.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-06-10 07:48:37

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

Re: cant write on usb-device

alright, so ill take my time! my aim is to get usb devices working in general!

the new filesystem is ext4! thanks!

Last edited by caravanlizzy (2014-06-10 07:49:02)

Offline

#10 2014-06-10 10:14:15

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: cant write on usb-device

caravanlizzy wrote:

my aim is to get usb devices working in general!

the new filesystem is ext4!

If you want to use the usb device elsewhere on a non-linux machine, choosing fat32 would be a better choice.
You need the 'dosfstools' package and create your filesystem with 'mkdosfs'.
For using the disk, take time to read the wiki on removable devices, and search threads about this in the forums.
Personally I would recommend using an udisks wrapper or udevil or another tool in the link I gave you in my answer above.

Last edited by berbae (2014-06-10 10:16:18)

Offline

#11 2014-06-23 21:41:42

caravanlizzy
Member
Registered: 2013-10-07
Posts: 91

Re: cant write on usb-device

okay,

i managed to run all my external devices. there is only one problem left. whenever i try to change anything about the format, partition table etc...of my usb-drive with gparted, i get the error:

daemon is inhibited

lizzy

Offline

Board footer

Powered by FluxBB