You are not logged in.

#1 2013-05-18 08:35:49

queenmedley
Member
From: Busan / S.Korea Busan
Registered: 2005-06-15
Posts: 68

usb mount permission problem

I use udev, and udevil.
After pacman -Syu  , I can't write or delete a file in usb.
When i insert usb, auto mount is excuted, but permission is something worng.


- Queen Medley

Offline

#2 2013-05-18 10:56:11

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: usb mount permission problem

Maybe you forgot to reboot after a kernel update.
uname -r
vs
pacman -Q linux

Offline

#3 2013-05-18 11:20:46

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: usb mount permission problem

what filesystem, what permissions and what is the exact error? Also post the `mount` line for the usb stick.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2013-05-18 14:38:39

queenmedley
Member
From: Busan / S.Korea Busan
Registered: 2005-06-15
Posts: 68

Re: usb mount permission problem

[wonhae@queen ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=4072960k,nr_inodes=1018240,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
/dev/sda3 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda6 on /home type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /media/sdb1-usb-SanDisk_Cruzer_4 type vfat (ro,nosuid,nodev,noexec,noatime,uid=1000,gid=100,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

-----------------------------------------------------
the problem is reading is possible, writing and deling permission is not.
and I gid is "users" (100).
Before updating, the problem was happened.


- Queen Medley

Offline

#5 2013-05-18 16:02:59

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Re: usb mount permission problem

It's mounted readonly, so permissions should be ok. Take a look at dmesg.

Last edited by gonX (2013-05-18 16:03:27)


since 2009

Offline

#6 2013-05-18 20:04:17

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

Re: usb mount permission problem

What are the permissions for /media/? That folder shouldn't normally exist, so I'm guessing you created it.

Offline

#7 2013-05-19 12:23:12

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: usb mount permission problem

Just remount it read-write (check if there is a physical button/switch on the stick too)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2013-05-20 12:57:55

queenmedley
Member
From: Busan / S.Korea Busan
Registered: 2005-06-15
Posts: 68

Re: usb mount permission problem

dmesg is...
--------------------------------------------------------------------------------------------------------------
[  543.447722] usb 4-1.2: new high-speed USB device number 5 using ehci-pci
[  543.533675] scsi7 : usb-storage 4-1.2:1.0
[  544.534914] scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
[  544.535999] sd 7:0:0:0: [sdb] 15695871 512-byte logical blocks: (8.03 GB/7.48 GiB)
[  544.536715] sd 7:0:0:0: [sdb] Write Protect is off
[  544.536728] sd 7:0:0:0: [sdb] Mode Sense: 45 00 00 08
[  544.537437] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.537449] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.543039] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.543048] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.547177]  sdb: sdb1
[  544.550037] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.550052] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.550062] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  576.877306] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[  578.546640] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
[  578.546644] FAT-fs (sdb1): Filesystem has been set read-only
----------------------------------------------------------------------------------------------------------------
I use openbox and spaceFM filemanager.
Before update, I could write a file in usb.


- Queen Medley

Offline

#9 2013-05-20 13:03:43

queenmedley
Member
From: Busan / S.Korea Busan
Registered: 2005-06-15
Posts: 68

Re: usb mount permission problem

I found some solution....
Another Usb is worked well. I can make or delete a files.
I think my sandisk usb stick has some problem..(I can delete or make file in windows7)


queenmedley wrote:

dmesg is...
--------------------------------------------------------------------------------------------------------------
[  543.447722] usb 4-1.2: new high-speed USB device number 5 using ehci-pci
[  543.533675] scsi7 : usb-storage 4-1.2:1.0
[  544.534914] scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
[  544.535999] sd 7:0:0:0: [sdb] 15695871 512-byte logical blocks: (8.03 GB/7.48 GiB)
[  544.536715] sd 7:0:0:0: [sdb] Write Protect is off
[  544.536728] sd 7:0:0:0: [sdb] Mode Sense: 45 00 00 08
[  544.537437] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.537449] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.543039] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.543048] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.547177]  sdb: sdb1
[  544.550037] sd 7:0:0:0: [sdb] No Caching mode page present
[  544.550052] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[  544.550062] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  576.877306] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[  578.546640] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
[  578.546644] FAT-fs (sdb1): Filesystem has been set read-only
----------------------------------------------------------------------------------------------------------------
I use openbox and spaceFM filemanager.
Before update, I could write a file in usb.


- Queen Medley

Offline

#10 2013-05-20 17:01:07

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Re: usb mount permission problem

There's nothing wrong with the stick itself. It's the filesystem that doesn't get properly unmounted, as stated in dmesg. Unmount it, then run fsck on it and try again:

# umount /dev/sdb1
# fsck.vfat -a /dev/sdb1

The -a flag indicates that all errors will be attempted to be repaired.

Last edited by gonX (2013-05-20 17:01:46)


since 2009

Offline

Board footer

Powered by FluxBB