blog advertising is good for you


blog advertising is good for you
User login
Jon asks:

Question

Having trouble with various mp3 players and files copied from mac osx 10.3,
when copied they appear to gain a ghost file which has the same title but begins with a full stop, this ghost file does not appear on the mac listing for memory cards/ flash device but does appear on external device file listing. It cannot however be deleted and crashes the devices every time you play/ skip tracks, how can i get rid of this ghost file/ prevent it being created in the first place?

Answer

Those are Apple-Double encoded resource forks and Finder metadata for the file, such as its HFS type and creator codes and other information. Resource forks do a lot of things on a Mac and are still rather important in a lot of ways, and the dot-underscore files on DOS/UFS volumes (like a memory device or non-Apple MP3 player) are an encoded version of that.

So you can’t tell Mac OS X to not do it, sadly, as it’s a core part of the Carbon file-access APIs (so claims Apple). You can, however, periodically remove them if you’re amenable to running a shell command.

The shell utility find can also nix files it finds, so do something like this:

$ find /Volumes/YourMP3Player/ -name '._*' -delete

That should get rid of the files on the device and allow for proper operation.

You may be thinking “Well, let’s just run that on this other volume as well..” but you would be an idiot. Do not do that. This data is important for non-HFS disk formats and lets them store Mac files properly. If you remove it without understanding what you’re doing you’re liable to destroy data you actually wanted. You can do this to an MP3 player or folder of MP3s or JPEGs or similar data-fork-only formats, but very little else.

Average rating
(0 votes)
Reply
The content of this field is kept private and will not be shown publicly.
1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.