Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Permissions and USB key drives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Permissions and USB key drives
Authored by: thecube on May 24, '04 03:25:26PM

One easy way of getting sensible permissions when transferring files from a Windows PC to unix is to compress the file(s) before copying them from the PC to your external disk. I use zip/unzip which produces sensible permissions when unpacking on unix. I expect tar/gzip/bzip2 etc would do the same.



[ Reply to This | # ]
Permissions and USB key drives
Authored by: BradMacPro on May 24, '04 05:28:11PM

spare disk image is great for protecting Mac OS X files on the DOS volumes of USB flash drive, but not useful for use in Mac OS 9. I binhex or zip files I need useful in OS 9 and 10. DOS volumes are not kind to Mac files of many types. Mostly applications (updaters) are what I put on my Lexar JumpShot Pro



[ Reply to This | # ]
Zip removes resource forks
Authored by: SOX on May 25, '04 01:18:02AM

plain tar,zip and bzip2 remove resource forks and meta data. you can use the apple Zip archive which preserves these. But none of these is as simple as a sparse image which does not require you to have to unzip, untar and delete the archives. also it gives you drag/drop and file level control over what you are copying over.



[ Reply to This | # ]
Zip removes resource forks
Authored by: mickeysattler on Dec 22, '10 04:08:57PM
Here in almost-2011 it seems that tar no longer strips resource forks. Here's how I tested it on a folder containing pictures which have preview thumbnail resource fork data:

$ du -s pix-w-resources/
69752	pix-w-resources/
$ tar cf foo.tar pix-w-resources/
$ rm -rf pix-w-resources
$ tar xf foo.tar
$ du -s pix-w-resources
69752	pix-w-resources
$
I stumbled over this because I'm *trying* to strip resource fork data from the bazillions of photos I have which are taking up space. What *does* strip resources is:

$ find pix-w-resources -type f -name \*.jpg -print -exec cp /dev/null {}/..namedfork/rsrc \;
Which empties the resource fork to 0-length for all file with a name ending in ".jpg". Tailor as necessary, make backups beforehand, etc.

[ Reply to This | # ]