Fedora Linux Support Community & Resources Center
  #1  
Old 29th March 2010, 04:55 PM
GODhack Offline
Registered User
 
Join Date: Apr 2008
Posts: 196
linuxfedorafirefox
FAT32 file names

I ended up with file in FAT32 in maybe French name and that file is impossible to copy etc.
Quote:
09 Myst?rique Sign [Yuki].mkv
Kinda bug report, but i wonder maybe I have to install something?
Reply With Quote
  #2  
Old 29th March 2010, 05:16 PM
Adunaic's Avatar
Adunaic Offline
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 883
linuxfedorafirefox
Re: FAT32 file names

When you say impossible to copy etc. do you mean by command line? in which case you will need to "escape" some of the characters (including the space) by putting a \ infront of them. Can you do anythign to it through the GUI?
Reply With Quote
  #3  
Old 29th March 2010, 05:31 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,119
linuxfedorafirefox
Re: FAT32 file names

Try:
Code:
mv /path/to/09\ Myst*.mkv /path/to/09\ Mystic\ Sign.mkv
If the ".mkv" is supposed to be ".mp3", then make it so. This is a POSIX issue, illegal characters in a directory and/or filename on a FAT or NTFS filesystem.

---------- Post added at 12:31 PM CDT ---------- Previous post was at 12:24 PM CDT ----------

Here are the "illegal" characters:
Code:
?    [    ]    /    \    =   +    <    >    :    ;    "    ,    *
You could also keep Yuki in the filename by either leaving out the square brackets or replacing them with parenthesis.
Code:
mv /path/to/09\ Myst*.mkv /path/to/09\ Mystic\ Sign\ \(Yuki\).mkv
And keep in mind that the SPACE character is "illegal" in Linux and must be "escaped" using the backslash "\" to use it.

Last edited by PabloTwo; 30th March 2010 at 02:00 PM.
Reply With Quote
  #4  
Old 29th March 2010, 06:28 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,097
linuxfedorafirefox
Re: FAT32 file names

Or you put quotes (') around the file name...

Works for all but files that start with a minus character '-', as that tends to get
interpreted as command options. If this is a problem put './<string>' for the file,
which directs the name to the current directory (the './' part)
Reply With Quote
  #5  
Old 29th March 2010, 07:21 PM
GODhack Offline
Registered User
 
Join Date: Apr 2008
Posts: 196
windows_7firefox
Re: FAT32 file names

ty, but I know all that well. Even with all this or in GUI copy fails. Even some programs (ex. rtorrent) fail to work with that file. In ext4 everything ok, but in fat32 not.
I am forced to stick with wind0ze while I deal with that file.
Correct name is:
Quote:
09 Mystérique Sign [Yuki].mkv
Try to create file with this name in ext4 and move to fat32 and U will see.

Last edited by GODhack; 29th March 2010 at 07:25 PM.
Reply With Quote
  #6  
Old 29th March 2010, 07:53 PM
Adunaic's Avatar
Adunaic Offline
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 883
linuxfedorafirefox
Re: FAT32 file names

Okay, I created a file called that in ext4 and moved it to FAT32. I have no problem renaming copying etc. Although this only proves that FAT32 has no problem with the name.

Perhaps the fault lies somewhere else. When you copy it do you get an error? How big is the file? What is the out put of:
file 09\ Mystérique Sign\ \[Yuki\].mkv

---------- Post added at 06:53 PM CDT ---------- Previous post was at 06:34 PM CDT ----------

Another thought: How did you mount the partition? and what version of linux/fedora are you using? I remember reading somewhere about the fact that older linux-fat drivers could not handle files with a name larger than 8 characters + 3 optional characters.
Reply With Quote
  #7  
Old 29th March 2010, 09:28 PM
GODhack Offline
Registered User
 
Join Date: Apr 2008
Posts: 196
linuxfedorafirefox
Re: FAT32 file names

/etc/fstab
Code:
#
# /etc/fstab
# Created by anaconda on Sat Dec  5 02:25:28 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_vyto-lv_root /                       ext4    defaults        1 1
UUID=48105aa5-9232-4c4c-bd1a-8dae7f6e16da /boot                   ext4    defaults        1 2
/dev/mapper/vg_vyto-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

/dev/sda4               /mnt/sda4               vfat    users,noauto    0 0
Fedora 12.
Now I am trying to play around with that file more...
I kinda noticed real problem:
Problem is that I use TAB auto-complete and it inputs ? incorrectly instead that e'.
That is not all... if file is inside dir copy fails too. Better check my test log yourself:
Code:
[vytautas@Vyto ~]$ cp The\ Melancholy\ of\ Haruhi\ Suzumiya\ 09\ Myst\?rique\ Sign\ \[Yuki\].mkv /mnt/sda4/
cp: cannot create regular file `/mnt/sda4/The Melancholy of Haruhi Suzumiya 09 Myst?rique Sign [Yuki].mkv': Invalid argument
[vytautas@Vyto ~]$ mkdir test
[vytautas@Vyto ~]$ mv The\ Melancholy\ of\ Haruhi\ Suzumiya\ 09\ Myst\?rique\ Sign\ \[Yuki\].mkv 
mv: missing destination file operand after `The Melancholy of Haruhi Suzumiya 09 Myst?rique Sign [Yuki].mkv'
Try `mv --help' for more information.
[vytautas@Vyto ~]$ mv The\ Melancholy\ of\ Haruhi\ Suzumiya\ 09\ Mys*.mkv 
mv: missing destination file operand after `The Melancholy of Haruhi Suzumiya 09 Myst?rique Sign [Yuki].mkv'
Try `mv --help' for more information.
[vytautas@Vyto ~]$ mv The\ Melancholy\ of\ Haruhi\ Suzumiya\ 09\ Mys*.mkv test/
[vytautas@Vyto ~]$ mv test/ /mnt/sda4/
mv: cannot create regular file `/mnt/sda4/test/The Melancholy of Haruhi Suzumiya 09 Myst?rique Sign [Yuki].mkv': Invalid argument
[vytautas@Vyto ~]$
Also rtorrent hasing fails. probably reason is same ? instead e'. Ktorrent also complains about missing file. Dolphin behaves OK still shows ? in name.

Last edited by GODhack; 29th March 2010 at 09:37 PM.
Reply With Quote
  #8  
Old 29th March 2010, 11:27 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,097
linuxfedorafirefox
Re: FAT32 file names

If it is a single file, do the following to make a rename-

mv * newname

What you likely have is an international file name - this is NOT an ASCII based file
name. The "characters" may easily have 3 byte values, which can cause a lot
of peculiar handling issues.
Reply With Quote
  #9  
Old 30th March 2010, 10:42 AM
GODhack Offline
Registered User
 
Join Date: Apr 2008
Posts: 196
windows_7firefox
Re: FAT32 file names

Problem is that file is part of torrent. I can not rename it now.
F* who wrote that name: on wind0se there is problems too.
Reply With Quote
Reply

Tags
fat32, file, names

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FAT32 case insensitive directory names (but trying to preserve case) Wangberg Using Fedora 4 13th October 2007 11:38 PM
problem with file names rogerdv Using Fedora 3 16th May 2005 06:25 PM
File names gcblig Using Fedora 1 8th May 2004 10:27 AM


Current GMT-time: 12:47 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat