You are not logged in.

#1 2013-05-13 02:44:36

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

[solved] xfce thinks USB is read-only when copying files

Still building my new desktop wink

I have a 32gb USB3 flash drive; when I plug it into the system, it is auto-mounted and `mount` confirms it is read-write:

/dev/sdd1 on /run/media/fukawi2/32GB-USB3 type vfat (rw,nosuid,nodev,relatime,uid=1537,gid=1537,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

Writing new files/folders works fine in Thunar; right-click Create Folder or Create Empty File creates the files and I can delete the files too.

Trying to copy existing files (from my ~) throws and error though: "The destination is read-only". Doesn't matter what files/folders, it doesn't like it. Which I find very very strange.

So does anyone know what xfce has been smoking on my machine? wink

Offline

#2 2013-05-13 02:46:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] xfce thinks USB is read-only when copying files

What are you using to automount?

Offline

#3 2013-05-13 03:29:03

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

WonderWoofy wrote:

What are you using to automount?

According to mount: uhelper=udisks2

Offline

#4 2013-05-13 03:39:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] xfce thinks USB is read-only when copying files

fukawi2 wrote:
WonderWoofy wrote:

What are you using to automount?

According to mount: uhelper=udisks2

Whoops... I thought I had scrolled over all the way. I guess not.

Is the outcome the same if you try to mount manually?

Offline

#5 2013-05-13 03:45:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

apoc ~ # mount -o uid=1537 /dev/sdd1 /media/USB
apoc ~ # ll /media/
total 16K
drwxr-xr-x 2 root    root   0 May 13 12:00 backup
drwxr-xr-x 5 fukawi2 root 16K Jan  1  1970 USB

Now I can't write to it at all, even though I'm logged in as 'fukawi2' (I have to be, there's no other users. Opening terminal and checking `whoami` confirms too) and you can see perms are 755 owned by 'fukawi2'

EDIT: I can write to it thru the terminal as 'fukawi2' (`touch /media/USB/test` works)

Last edited by fukawi2 (2013-05-13 03:46:21)

Offline

#6 2013-05-13 04:00:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] xfce thinks USB is read-only when copying files

That is really funky... and this only happens with this one stick?

Offline

#7 2013-05-13 04:02:24

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

WonderWoofy wrote:

That is really funky... and this only happens with this one stick?

/me test another flash drive (USB 2.0 this time)... Nope, same behaviour with both.

Offline

#8 2013-05-13 04:03:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [solved] xfce thinks USB is read-only when copying files

Anything interesting in the logs?  What does mount say about how the volume is mounted?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2013-05-13 04:11:16

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

ewaller wrote:

Anything interesting in the logs?  What does mount say about how the volume is mounted?

mount output in the OP.

dmesg shows:

[ 7534.240524] usb 4-1: new SuperSpeed USB device number 9 using xhci_hcd
[ 7534.253738] usb 4-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
[ 7534.266574] scsi19 : usb-storage 4-1:1.0
[ 7535.340820] scsi 19:0:0:0: Direct-Access              USB DISK 3.0     PMAP PQ: 0 ANSI: 4
[ 7536.278280] sd 19:0:0:0: [sdd] 61754880 512-byte logical blocks: (31.6 GB/29.4 GiB)
[ 7536.278516] sd 19:0:0:0: [sdd] Write Protect is off
[ 7536.278519] sd 19:0:0:0: [sdd] Mode Sense: 35 00 00 00
[ 7536.278724] sd 19:0:0:0: [sdd] No Caching mode page present
[ 7536.278729] sd 19:0:0:0: [sdd] Assuming drive cache: write through
[ 7536.280292] sd 19:0:0:0: [sdd] No Caching mode page present
[ 7536.280296] sd 19:0:0:0: [sdd] Assuming drive cache: write through
[ 7536.299904]  sdd: sdd1
[ 7536.988884] sd 19:0:0:0: [sdd] No Caching mode page present
[ 7536.988888] sd 19:0:0:0: [sdd] Assuming drive cache: write through
[ 7536.988891] sd 19:0:0:0: [sdd] Attached SCSI removable disk

journalctl shows:

May 13 14:06:02 apoc.322.phshq.net kernel: usb 4-1: new SuperSpeed USB device number 9 using xhci_hcd
May 13 14:06:02 apoc.322.phshq.net kernel: usb 4-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
May 13 14:06:03 apoc.322.phshq.net kernel: scsi19 : usb-storage 4-1:1.0
May 13 14:06:03 apoc.322.phshq.net slim[439]: thunar-volman: Unsupported USB device type.
May 13 14:06:03 apoc.322.phshq.net slim[439]: thunar-volman: Unsupported USB device type.
May 13 14:06:04 apoc.322.phshq.net kernel: scsi 19:0:0:0: Direct-Access              USB DISK 3.0     PMAP PQ: 0 ANSI: 4
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] 61754880 512-byte logical blocks: (31.6 GB/29.4 GiB)
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Write Protect is off
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Mode Sense: 35 00 00 00
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] No Caching mode page present
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Assuming drive cache: write through
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] No Caching mode page present
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Assuming drive cache: write through
May 13 14:06:05 apoc.322.phshq.net kernel:  sdd: sdd1
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] No Caching mode page present
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Assuming drive cache: write through
May 13 14:06:05 apoc.322.phshq.net kernel: sd 19:0:0:0: [sdd] Attached SCSI removable disk
May 13 14:06:05 apoc.322.phshq.net slim[439]: thunar-volman: Unknown block device type.
May 13 14:06:05 apoc.322.phshq.net slim[439]: (xfdesktop:900): GLib-GIO-CRITICAL **: g_file_get_path: assertion `G_IS_FILE (file)' failed
May 13 14:06:06 apoc.322.phshq.net udisksd[963]: Mounted /dev/sdd1 at /run/media/fukawi2/32GB-USB3 on behalf of uid 1537

Searching for the thunar-volamn error finds this thread:
https://bbs.archlinux.org/viewtopic.php?id=111867

I have gvfs and it's optionals installed:

pacman -Q | grep gvfs
gvfs 1.16.1-2
gvfs-afc 1.16.1-2
gvfs-smb 1.16.1-2

And I start xfce using dbus-launch in ~/.xinitrc (not sure if this is still the 'right' way?)

exec dbus-launch --exit-with-session startxfce4

Offline

#10 2013-05-13 04:17:28

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

OK, I just remembered I hadn't rebooted since -Syu this morning.

Rebooting seems to have solved it. Thanks for the input guys!

Offline

#11 2013-05-13 04:20:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,594

Re: [solved] xfce thinks USB is read-only when copying files

Sounds like this post belongs in the Newbie forum.

big_smile

Online

#12 2013-05-13 04:21:41

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

Scimmia wrote:

Sounds like this post belongs in the Newbie forum.

Yeah probably... I'm not used to having to restart to get things working... I don't need to on servers and I don't use Windows tongue

Offline

#13 2013-05-13 04:23:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] xfce thinks USB is read-only when copying files

fukawi2 wrote:

Yeah probably... I'm not used to having to restart to get things working... I don't need to on servers and I don't use Windows tongue

With windows you don't need to restart anyway, as the machine will just do it for you.  Probably at the most inconvenient moment possible.

Offline

#14 2013-05-13 04:23:54

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [solved] xfce thinks USB is read-only when copying files

Touché my friend wink

Offline

Board footer

Powered by FluxBB