Posts: 148
chrispop99
Joined: 21 Apr 2011
#1
(1) On both 32- and 64-bit, using rox-icewm, inserting a USB thumb drive generates an error message:

Code: Select all

File doesn't exist or I can't access it: /media/USB
The media still mounts, and can be accessed from SpaceFM.

I don't believe this error happened in Beta releases. It doesn't happen when using space-icewm.

(2) On both 32- and 64-bit the external device widget on the panel gives unreliable results, often indicating the drive is being written to when that isn't the case. It is necessary to unmount the drive first, which limits the widgets usefulness.

I also saw this in Beta releases.

Chris
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
What filetype is the USB formatted to?
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#3
Chris

Does your usb drive have a label with a space in it? Check /media in rox to see if it's mounted (I bet it is)

The various commands to open the file managers in automount-antix need changed so that the %d is quoted so the file names expand when they have spaces. I'm traveling at the moment and do not have net access on my pc. It's the OPTION_USB and OPTION_OPTICAL lines with exec commands that need the xhange.

I think the usb unmounter tool has the same issue.
Last edited by dolphin_oracle on 14 Jun 2016, 11:01, edited 1 time in total.
Posts: 148
chrispop99
Joined: 21 Apr 2011
#4
anticapitalista wrote:What filetype is the USB formatted to?
FAT32
Posts: 148
chrispop99
Joined: 21 Apr 2011
#5
dolphin_oracle wrote:Chris

Does your usb drive have a label with a space in it? Check /media in rox to see if it's mounted (I bet it is)
It does have a space in it. I altered a spare one to have no space, and mounting/unmounting then works as expected on ROX.

It was already mounting. (I did say so in my original post.)

Chris
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
d_o you mean these 2 lines to look like this in /usr/local/bin/automount-antix

OPTION_USB='--exec-on-drive"desktop-defaults-run -fm"%d""'

OPTION_OPTICAL='--exec-on-disc"desktop-defaults-run -fm"%d""'
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#7
Those are the right lines. I've been messing with it this morning and I can't quite get it to work but I've always had problems with passing quotes.

I'be got to start driving again so I'll be offline. I might get home.tonight early enough to mess with it if you don't get it first.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#8
fix sent to anti for mount points with spaces. thanks chris!
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
Should hit the repo soon
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#10
possible fix for the unplugdrive toolbar thingy are winging their way to anti for testing.
Posts: 148
chrispop99
Joined: 21 Apr 2011
#11
anticapitalista wrote:Should hit the repo soon
This morning's updates fixed the USB 'spaces in filename when using ROX' problem.

Chris
Posts: 1,139
masinick
Joined: 26 Apr 2008
#12
BTW, I looked up a few references that may be helpful for those wanting to learn more about quoted strings, and also about considerably different default behaviors of various"sh"-based shells over the past 30 years:

1. Quoting Variables - The Linux Documentation Project
Quoting Variables. When referencing a ... This prevents reinterpretation of all special characters within the quoted string ... Within a script, though, ...

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.tldp.org/LDP/abs/html/quotingvar.html"
linktext was:"http://www.tldp.org/LDP/abs/html/quotingvar.html"
====================================


2. String Operations in Shell
String Operations in Shell - Softpanorama
String Operations in Shell. News. ... juxtaposition and using double quoted strings. ... and you may be surprised at how many Bourne and C shell scripts there are ...

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://softpanorama.org/Scripting/Shellorama/Reference/string_operations_in_shell.shtml"
linktext was:"http://softpanorama.org/Scripting/Shell ... hell.shtml"
====================================


3. UNIX SHELL Quote Tutorial

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.grymoire.com/Unix/Quote.html"
linktext was:"http://www.grymoire.com/Unix/Quote.html"
====================================



This third tutorial may be the easiest to understand, but it should be applicable, even though it hails from"UNIX", rather than"Linux" roots. __{{emoticon}}__