Tips for rsyncing MP3s from Linux to FAT32 USB external hard-drive

Posted by Larry Karnowski Mon, 21 Jul 2008 00:22:00 GMT

Here are some important lessons I learned about accurately copying MP3s (or really any kind of file) from a Linux ext3 filesystem to an external USB hard-drive using FAT32.

  • When mounting the USB hard drive, be sure to use iocharset=utf8 in your mount options. (To be safest, I put this in my /etc/fstab so I won't forget it.) Otherwise you will have problems creating directories or files that have European or Asian characters in their names. I had some real problems with all the Mexican, Celtic, and Yako Kanno albums I own. Rsync will just flat out refuse to create them without this option. (And forget the Icelandic heavy metal. It's right out.)

  • Similarly, when mounting, you might want to include the "shortname=mixed" mount option too. Although I personally didn't have a big problem with this, several posts I read online mentioned that rsync might try to upload a file multiple times. The issue is that since FAT32 stores both a short-name (remember the 8.3 names?) and a long-name, the filesystem can get confused occasionally. Again, I didn't see this myself. I used the option, though, with no trouble.

  • Lastly, don't use the standard "rsync -a" (archive) flag. It tries to maintain user and group ownership, and FAT32 doesn't support either so you get a lot of "chown NO PERMISSION" errors, etc. Basically, you're making rsync do more work than it has to. Similarly, the "-a" option also tries to preserve symlinks which FAT32 doesn't support. I'm not really sure what would happen in that case, probably more warnings. Instead use "rsync -rt" to recurse through each subdirectory and to maintain the file's last modified time. That's about all FAT32 will let you do!

Hope this helps! Keep rockin'!

Tags , , , , , , ,  | 13 comments

Comments

  1. Elliott said 3 months later:

    Hey I appreciated these tips. I'm using Ubuntu exclusively, and have a FAT32 external HDD for backup... I use fat so I can recover files from Windows or Mac machines, because I don't know anyone else who uses Linux.

    I'm a little worried that the utf8 option in fstab will make files unreadable in other operating systems -- is this true? Have you tried accessing those files on other OS's? I know MS-DOS doesn't allow a good number of funky characters (*, !, etc.), will utf8 interfere?

    Thanks, Elliott.

  2. Elliott said 3 months later:

    To follow up...

    When I mount the file system as utf-8 my dmesg is showing this message:

    FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

    Is this not a little worrisome?

  3. janco said about 1 year later:

    I also use linux but i am a beginner,thank you for the article.

  4. SEO said about 1 year later:

    Linux source code is freely available to everyone. Those who have slight idea about Linux always misunderstand things. Linux itself may not be free. The source code is free if you purchase any Linux distribution like RedHat or Ubuntu. Linux might cost you but you will get a source code free with Linux distribution. You are free to edit that source code as long as you follow the guidelines under GNU's General Public License.

  5. cheap laptop said about 1 year later:

    You can do an Internet search for "list of linux cds" or "list of linux dvds" and buy the Linux OS and have it delivered to you by mail very cheaply.

  6. ucvhost said about 1 year later:

    you can search in google

  7. Chapel Hill Homes said about 1 year later:

    Thanks for sharing the information.It is definitely going to help me some time.

  8. Watch Series said about 1 year later:

    While television series appearing on TV networks are usually commissioned by the networks themselves,their producers earn greater revenue when the program is sold into syndication.

  9. watches uk said about 1 year later:

    not bad cheers for that

  10. whole life insurance said about 1 year later:

    To follow up...

    When I mount the file system as utf-8 my dmesg is showing this message:

    FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

    Is this not a little worrisome?

  11. Wordpress Development said about 1 year later:

    I like this..

  12. web development in hampshire said about 1 year later:

    web development in hampshire

  13. Event Hire said about 1 year later:

    Contact HRIA for safety barrier equipment hire, event hire, hire equipment, equipment for hire, party hire, construction hire, tool hire, event hire, floodlight hire, exhibition hire, trailer hire, excavator hire, chair hire, table hire, plant hire, truck hire, scaffolding hire, scaffold hire, wedding marquee hire, truck hire, Ute hire, hire a Ute, generator hire, access equipment hire, hire conference, and many more.

(leave url/email »)

   Comment Markup Help Preview comment