VFAT USB-KEY mounted Issue

Hi all friends !

I’ve got many files with colons in their names and I’d like to save them onto a USB-KEY.

It seems that I can’t write them (answer of ‘cp’ : “Invalid argument”).

The USB-KEY is automatically mounted as a VFAT file-system on an OpenSuse 11.1

One example (among a great number …) Moose::Cookbook::Basics::Recipe9.3pm

question 1 : Is it “normal” ?
question 2 : How to deal with that ?

Thanks to you in advance !:frowning:

Hi
Question 1 Yes
Question 2 You will have to use
's eg;


cp Moose\:\:Cookbook\:\:Basics\:\:Recipe9.3pm /media/someusbdevice/


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 10 days 21:44, 2 users, load average: 0.46, 0.45, 0.19
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

I believe Fat won’t let you as it is an invalid character, apparently you cant use : or ? going on this …

https://lists.ubuntu.com/archives/ubuntu-users/2007-May/115345.html

You would have to do a rename something like … or use a gui rename think KRename

for file in *; do mv "$file" $(echo $file | sed -e 's/:\+\|?/_/g'); done

@malcomlewis I found I could cp on ext3 using :

Hi
I knew there was a reason I avoided fat filesystems… :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 10 days 23:35, 2 users, load average: 0.16, 0.25, 0.18
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

thanks to all !

In fact I cannot rename files because they are parts of a Perl-module-distribution and all could break if I renamed.

another last solution : build a tar-file containing all the “bad-named” files. But it’s just good fro storage, not using.

however, thanks!

> another last solution : build a tar-file containing all the “bad-named” files. But it’s just good fro storage, not using.

You could build an ISO file and mount it using loopback to get read access to individual files.

Do you need to read the stick on Windows? If not, format it ext2 (not ext3, for some reason to do with journals and flash I forget), then you’re doing things the right way.