LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-24-2004, 12:12 PM   #1
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
Cannot copy filename with colon to floppy


Strange problem just surfaced. I tried to copy a folder of ROX application icons to a floppy and got these errors:

Copying /home/mellor/Apps/ROX-Filer/ROX/MIME/mime-application:pgp.png as /mnt/floppy/mime-application:pgp.png
cp: cannot create regular file `/mnt/floppy/mime-application:pgp.png': Invalid argument
Failed to copy '/home/mellor/Apps/ROX-Filer/ROX/MIME/mime-application:pgp.png'

The errors appear to be triggered by the colons in the filenames. The folder is copied with the ones without colons and the folder name is changed to lower case! Same copying to PCMCIA and usb mass storage, but no problems copying within the hard drive. Can anyone help please - I have no idea what to do.

Well, well. I see the colons have been replaced with smileys! I will try to get rid of them

Last edited by JohnKFT; 09-24-2004 at 12:13 PM.
 
Old 09-24-2004, 06:25 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
what fs is the floppy?
 
Old 09-24-2004, 06:45 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
You can try a few things. One great way to eliminate syntax errors (I'm not sure if this is one. Kodon might be right in thinking the FS is the limitation) is to use bash's autocomplete to type most of the filename.

You enter the command

cp

then the first few letters of the filename and hit tab. it'll autocomplete as much as is unique.

You may also try using quotes around the filename.
You can also combine the two techniques: cp "file<tab>" /dest/in/ation

--Shade
 
Old 09-24-2004, 09:24 PM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Normally when you try to copy file name with special characters or spaces, you can use backslash (\)

For example:
/home/my file.doc

cp /home/my\ file.doc /floppy

so if you have special character like colon(;

you can try
cp /home/my\:file.doc /floppy

BUT I do know that the FAT filesystem do have some limitations.
 
Old 09-25-2004, 08:35 AM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
I have checked the FAT limitation on a Windoze ME machine. Yes, you can't use colon in FAT filesystem.
 
Old 10-02-2004, 05:57 AM   #6
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks everyone for the useful information. After some fiddling about I discovered I could simply compress all the files into a tarball, copy that, then uncompress it. No problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy grub onto floppy caesium5 Suse/Novell 2 08-24-2005 07:22 PM
how can i copy to floppy Pacemaker Linux - Software 3 04-25-2004 04:07 PM
How to copy a file to floppy and list file on floppy device kabeko Linux - Newbie 3 12-09-2003 11:36 PM
copy floppy? jrclare Linux - Newbie 7 06-30-2002 08:24 PM
How do you copy a floppy? keirobyn Linux - General 1 01-20-2002 10:24 PM


All times are GMT -5. The time now is 05:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration