You are not logged in.

#1 2010-09-26 12:56:29

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Write permission in external usb stick

I've recently installed the Gnome desktop and I can't manage to write to external usb sticks, concretely the one i'm using right now is a FAT32 filesystem. Nautilus does well automounting the drive but neither as normal user nor root I can write anything to it, although I can write to fixed FAT32 partitions.

I paste some configuration files:

.xinitrc has the following line: exec ck-launch-session gnome-session
rc.conf has the following daemons: syslog-ng dbus hal @networkmanager @alsa
My normal and root users are in the storage group

Any idea?

Offline

#2 2010-09-26 13:46:04

Halcyon22
Member
Registered: 2010-07-30
Posts: 33

Re: Write permission in external usb stick

Do you have dosfstools and mtools installed? What are the permissions where the disk is mounted?

Offline

#3 2010-09-26 14:10:28

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

The disk is mounted at /media/

The permisions are ls -l:
drwx------ 5 aitorkun users  8192  1 gen  1970 A43C-A598

The installation of that packages didn't solve the problem tongue

Offline

#4 2010-09-26 14:20:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write permission in external usb stick

drwx------ means the owner has all the needed rights. You can try and mount it manually with some other permissions.
Maybe it's mounted read-only?

Offline

#5 2010-09-26 14:23:33

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

Yes but, if want to mount it automatically?

Offline

#6 2010-09-26 14:27:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write permission in external usb stick

aitorkun wrote:

Yes but, if want to mount it automatically?

Have you tried manually? if it works, this means you should check the automounting configs,
It's hard to believe that root can't write anything to it. What's the output of

mount | column -t

?

Offline

#7 2010-09-26 14:35:03

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

Oh my God, mounting manually neither works (normal user and root) o.O

The output of the command is this:

proc              on  /proc                     type  proc                   (rw,relatime)
sys               on  /sys                      type  sysfs                  (rw,relatime)
udev              on  /dev                      type  devtmpfs               (rw,nosuid,relatime,size=10240k,nr_inodes=215400,mode=755)
/dev/sda1         on  /                         type  ext4                   (rw,commit=0)
devpts            on  /dev/pts                  type  devpts                 (rw)
shm               on  /dev/shm                  type  tmpfs                  (rw,nosuid,nodev)
fusectl           on  /sys/fs/fuse/connections  type  fusectl                (rw)
gvfs-fuse-daemon  on  /home/aitorkun/.gvfs      type  fuse.gvfs-fuse-daemon  (rw,nosuid,nodev,user=aitorkun)
/dev/sda3         on  /media/Data               type  vfat                   (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sdc          on  /media/A43C-A598          type  vfat                   (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,flush)

Offline

#8 2010-09-26 14:39:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write permission in external usb stick

Saying 'doesn't work' doesn't work ;P Posting the error message might be more helpful. If the message tells you to check e.g. dmesg, do so and post the results.

A weird name: A43C-A598. What kind of stick is it?
I know nothing about Gnome and udiscs so I'm not sure if I can help here.

Last edited by karol (2010-09-26 14:42:41)

Offline

#9 2010-09-26 14:42:37

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

When I try to create a dir: mkdir: no s'ha pogut crear el directori «/media/A43C-A598/hola»: El sistema de fitxers és només de lectura

It's written in catalan, a translation would be: The directory couldn't be created: The file system is read only.

A43C-A598 is a mp4, i'll try with another usb stick tongue

Offline

#10 2010-09-26 14:44:24

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

I've tried with a pendrive, and I can write in it, although it has also a strange name: 3420-4F80.

So it seems it's a particular problem...

Offline

#11 2010-09-26 14:44:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write permission in external usb stick

I know nothing about Gnome and udisks so I'm not sure if I can help here.
Next time, run

LC_MESSAGES=C <command>

so that it 'speaks' English.

I think the names are some kind of id, you need to check the automount settings on how are the mountpoints in /media created.

Is that pendrive also a vfat filesystem?

Last edited by karol (2010-09-26 14:46:13)

Offline

#12 2010-09-26 14:46:55

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

Look what I get when I insert my mp4: (dmesg)

sd 12:0:0:0: [sdc] Attached SCSI removable disk
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem has been set read-only
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)
FAT: Filesystem error (dev sdc)
    fat_get_cluster: invalid cluster chain (i_pos 0)

Maybe a format will help tongue

Offline

#13 2010-09-26 14:47:43

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

@karol, yes, it is fat

Offline

#14 2010-09-26 14:50:17

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

How can I check that automount settings?

Offline

#15 2010-09-26 14:54:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Write permission in external usb stick

aitorkun wrote:

How can I check that automount settings?

Sorry, I have absolutely no idea.
http://wiki.archlinux.org/index.php/GNO … n_Nautilus
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy may be a good place to start.

Offline

#16 2010-09-26 14:55:32

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

I think I know how to solve the problem:

http://ubuntuforums.org/archive/index.php/t-546036.html

Offline

#17 2010-09-26 15:02:52

aitorkun
Member
From: Barcelona, Catalonia
Registered: 2010-09-26
Posts: 15
Website

Re: Write permission in external usb stick

Ok, the link before didn't work for me but I managed to solve it nowadays, I explain the solution:

I had to format my mp4 tongue

Problem solved.

Regarding to the topic of the names, I've discovered that if the disk has label, it's automatically mounted in /media/<label>, if not in /media/<id>

Thank you very much!

Offline

#18 2010-11-15 11:48:32

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: Write permission in external usb stick

I'm having the same problem, the link did not work for me neither and I cannot format my disk because of my data on it.
There has got be another way to solve this.

Offline

#19 2010-11-16 00:48:35

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Write permission in external usb stick

The alphanumeric "A43C-A598" and "3420-4F80" are UUIDs.  You can look up UUID on Wikipedia.

To check and fix errors on a drive with a fat or vfat filesystem, you can run, on an unmounted device:

# fsck -a -w -v /dev/sdXN

The X and N are to be replaced with the actual drive device designations.  See the manpages for dosfsck or fsck.vfat for all the available options.

If you would prefer to attempt the filesystem repairs with a graphical tool, I suggest GParted.

If all else fails, you can try to repair the filesystem with MS Windows.  If there's an error, that operating system will often repair it automatically, when the device is first plugged in.  If it isn't, try the instructions given on this site: http://www.associatedcontent.com/articl … .html?cat=.

Offline

Board footer

Powered by FluxBB