Skip to content

oh lazyweb- problem copying files with : in them to n800

[Not so much lazyweb as rushed/paniced/damnI'mtryingtopackandstillhaveatleastalittlecelebrationtonightweb...]

I’m trying to copy a large number of oggs from my HD to two vfat-formatted SDHC cards in my N800, mounted over USB. (16G worth of files, to be exact.) As far as I can tell, copying files with : in them (e.g., about 10% of my ogg files) to the target drive causes cp and nautilus to choke. I’m guessing this is vfat’s fault, but the N800 doesn’t seem to like it when I format the cards as ext2.

So… anyone have any suggestions on how to either rename the files (lots of them) temporarily in such a way as to make them copiable, or otherwise work around vfat, or (maybe ideally) how to use a more modern fs altogether on sd cards that will be used only in the n800? Pointers ASAP much appreciated as I leave for NC on Sunday and would like to have my oggs on the n800 by then :)

11 Comments

  1. chris

    try this:

    a batch file containing:

    mv $1 `echo $1 | tr “:” “-”`

    save as ‘uncolon’.

    and then:

    find . -name “*:*”

    to check you’re only finding the files you’re after. finally

    find . -name “*:*” -exec uncolon {} \;

    nasty.

    :-)

    Posted on 11-May-07 at 5:07 pm | Permalink
  2. Gabriel

    qmv is a neat tool for editing all the filenames in a directory with your favorite editor.

    Posted on 11-May-07 at 5:24 pm | Permalink
  3. The music management program quodlibet has a rename by tag feature that you could use to rename all your music files into any other format like //.ogg (This example would remove song titles from the oggs.) It also has a checkbox that strips non-Windows compatible characters in filenames.

    Posted on 11-May-07 at 5:29 pm | Permalink
  4. Looks like the blog automatically strips anything that looks like html tags.

    Originally //.ogg had artist, album, and tracknumber inside greater than and less than signs. So if I try it again using html escapes it should be:
    <artist>/<album>/<tracknumber>.ogg

    Posted on 11-May-07 at 5:33 pm | Permalink
  5. find -depth -name ‘*:*’ -exec rename -n ‘y/:/_/’ {} +

    (adjust -n and replacement for flavor)

    …temporarily? cp -lr into a temp tree first I guess.

    Posted on 11-May-07 at 5:44 pm | Permalink
  6. *cough* :\ (test before you post, grasshopper) …should have -execdir rather than -exec there, so renaming dirs on the way works out the first time, too.

    Posted on 11-May-07 at 5:57 pm | Permalink
  7. rsync is ported on the N800, you also have to install openssh, you’ll get 500kbyte/s over wifi. You can restart as many times as you want

    Otherwise I would just partition the card with one small FAT and one big ext3 FS, I’ve never done it but some report it works.

    Posted on 11-May-07 at 6:08 pm | Permalink
  8. Easytag can move and rename MP3s based on artist/album/track/etc. It’s in the Ubuntu universe repo.

    Posted on 11-May-07 at 6:40 pm | Permalink
  9. Abbas Khan

    This is a problem i have dealt with, so far i have found (2) reasons this is caused.

    Reasons:
    ———-
    (1). Any directory you copy with a space at the end to a fat drive fails — so the folder “folder1 ” will fail.
    (2). Any folder/file with the same name in same directory but diff caps will fail to fat. e.g. “folder1″ & “Folder1″ will fail to copy.

    Look for these files using some python/bash magic and rename them & your cp should go fine.

    I learned this the hard way deleteing most of my GF’s info (before formatting) thinking it copied fine in terminal b/c cp doesn’t report any errors.

    Posted on 11-May-07 at 7:13 pm | Permalink
  10. This could be this very annoying bug that probably affects anybody copying their music to audio players:
    http://bugzilla.gnome.org/show_bug.cgi?id=309584
    It seems fairly easy to fix if someone has the time.

    Posted on 12-May-07 at 5:15 am | Permalink
  11. Murray: yeah, that is it.

    I’ll take a look at quodlibet and google more aggressively for maemo and ext3, I guess.

    Posted on 12-May-07 at 7:25 am | Permalink

3 Trackbacks/Pingbacks

  1. Planet Pgc on 11-May-07 at 6:00 pm

    Kramer auto Pingback[...] Luis Villa: oh lazyweb- problem copying files with : in them to n800 [...]

  2. Planet Mg on 12-May-07 at 7:27 am

    Kramer auto Pingback[...] Luis Villa: oh lazyweb- problem copying files with : in them to n800 [...]

  3. Advogato - Recent Blog Entries on 13-May-07 at 12:37 am

    Kramer auto Pingback[...] Syndicated 2007-05-11 20:59:06 from Luis Villa’s Blog [...]