You are not logged in.
Happy New Year everybody.
Having strange issue with usb drive connected to my laptop. Have not done for a long time, I believe never since migrated onto systemd, i.e. no udev is installed anymore.
Mounting usb drive via kde/dolphin seem to work fine but neither can my (less privileged) user nor root write to drive:
ERROR:
[root@limob64_acer 5271004B02F56D17]# touch test.txt
touch: cannot touch ‘test.txt’: Permission denied
[root@limob64_acer 5271004B02F56D17]SYSTEMD:
[root@limob64_acer ~]# systemctl status udisks2
udisks2.service - Disk Manager
Loaded: loaded (/usr/lib/systemd/system/udisks2.service; static)
Active: active (running) since Mi 2014-01-01 09:00:29 CET; 10h ago
Docs: man:udisks(8)
Main PID: 577 (udisksd)
CGroup: /system.slice/udisks2.service
└─577 /usr/lib/udisks2/udisksd --no-debug
Jan 01 09:00:29 limob64_acer udisksd[577]: udisks daemon version 2.1.1 starting
Jan 01 09:00:29 limob64_acer udisksd[577]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jan 01 09:00:29 limob64_acer systemd[1]: Started Disk Manager.
Jan 01 18:06:32 limob64_acer udisksd[577]: Mounted /dev/sdb2 at /run/media/jochen/5271004B02F56D17 on behalf of uid 1001
Jan 01 19:09:55 limob64_acer udisksd[577]: Cleaning up mount point /run/media/jochen/5271004B02F56D17 (device 8:18 is not mounted)
Jan 01 19:09:55 limob64_acer udisksd[577]: Unmounted /dev/sdb2 on behalf of uid 1001
Jan 01 19:14:35 limob64_acer udisksd[577]: Mounted /dev/sdb2 at /run/media/jochen/5271004B02F56D17 on behalf of uid 1001
Jan 01 19:18:17 limob64_acer udisksd[577]: Cleaning up mount point /run/media/jochen/5271004B02F56D17 (device 8:18 is not mounted)
Jan 01 19:18:17 limob64_acer udisksd[577]: Unmounted /dev/sdb2 on behalf of uid 1001
Jan 01 19:26:13 limob64_acer udisksd[577]: Mounted /dev/sdb2 at /run/media/jochen/5271004B02F56D17 on behalf of uid 1001
[root@limob64_acer ~]#MOUNT - mounted read-write:
dev/sdb2 on /run/media/jochen/5271004B02F56D17 type ntfs (rw,nosuid,nodev,relatime,uid=1001,gid=100,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1,uhelper=udisks2)CREDENTIALS:
Dirs & files mounted do have correct credentials. Only upstream credentials look a bit weird but I doubt I should change those else 'other' would become write access. Despite I doubt those changes would be permanent but rather temporarily until reboot only.
[root@limob64_acer ~]# ls -ld /run
drwxr-xr-x 24 root root 760 1. Jan 18:06 /run
[root@limob64_acer ~]# ls -ld /run/media
drwxr-xr-x 3 root root 60 1. Jan 18:06 /run/media
[root@limob64_acer ~]# ls -ld /run/media/jochen/
drwxr-x---+ 3 root root 60 1. Jan 19:26 /run/media/jochen/
[root@limob64_acer ~]# ls -ld /run/media/jochen/5271004B02F56D17/
drwx------ 1 jochen users 4096 20. Okt 12:14 /run/media/jochen/5271004B02F56D17/
[root@limob64_acer ~]#
[root@limob64_acer 5271004B02F56D17]# ls -l
total 522568
drwx------ 1 jochen users 0 7. Sep 2011 virtualbox
[root@limob64_acer 5271004B02F56D17]#KERNEL:
[root@limob64_acer 5271004B02F56D17]# uname -a
Linux limob64_acer 3.12.0-1-ARCH #1 SMP PREEMPT Wed Nov 6 09:06:27 CET 2013 x86_64 GNU/Linux
[root@limob64_acer 5271004B02F56D17]#Having udisks2 installed.
Someone having any idea what's going on or experiencing same issue? Shouldn't USB devices be plug&play these days - at least it used to be (udev).
Of course, I tried Google but findings where either udev related or not mounting at all, which is working for me.
Edit: Beautification
Edit2: Solved
Last edited by schimpfj (2014-01-01 19:19:00)
Offline
Why are you using such an old kernel?
Also, please use code tags https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
dev/sdb2 on /run/media/jochen/5271004B02F56D17 type ntfs
Are you using ntfs-3 ?? Out of the box, Arch does not support writing to NTFS file systems. Most USBs (out of the wrapper) are vfat. Maybe that is why it has worked in the past.
Edit: Snaked by jasonwran -- again. Good catch on the old kernel.
Last edited by ewaller (2014-01-01 19:04:44)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Wouldn't call this an old kernel but maybe for a rolling release... Will consider upgrade. But I rather think ewaller's hint re ntfs-3 points to the right direction. Will work on this (not today though, wasn't expecting that fast response). Thx both
Offline
As to the kernel, you are right -- it is not that old. It is an indication that, perhaps, people are performing partial upgrades. That is the root of a great many problems. Those of us who hang out here treat that as a warning flag.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Actually fix suggested by ewaller was easier than thought. Installed ntfs-3, no additional config required - fixed! Thx again for the good solution & very swift response!
Offline