Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 10-25-2007, 01:14 PM   #1
grayfox
Connoisseur
grayfox doesn't littergrayfox doesn't littergrayfox doesn't litter
 
Posts: 68
Karma: 203
Join Date: Oct 2007
Device: Razr/iLiad
Cleaning up CF's used on a mac

Mac owners have a habit of cluttering up disks that will be used on other
systems with files like .DS_Store ._.DS_Store and ._SOmeName.

Every time a folder is opened on a mac, at a minimum, a .DS_Store file
will be created.

The following commands are useful :

Code:
    # cd to where ever your CF card is mounted on your mac 
    cd /Volumes/CFILIAD

    # find all files with name .DS_Store and delete the rascals
    # from the volume
    find . -name \.DS_Store | xargs rm  
 
    # find all files in directorys in and below the current 
    # and remove all files that start with a ._
    find . -name \._\*  | xargs rm

    # Remove all files and directories in directories in and below the current
    # that look like .Trashes
    find . -name \.Trashes | xargs rm -rf

Its is a good idea to drop off the xargs stuff first to see exactly
which files will be feed to xargs an then to the rm or rm -rf command.

Note the .Trashes files are directories and so one needs to add the -rf
to the rm command.

After you have cleaned up the card you can back it up to a folder
on your Mac by using a simple rsync command.
Code:
#!/bin/sh
# Note this does not delete files from the target
#  Add --delete to delete files on the target that are not on the source
rsync -av --delete /Volumes/CFILIAD/ /Users/jerry/CardBackup
Please read the man pages before trying these commands...

Jerry
grayfox is offline   Reply With Quote
Old 10-25-2007, 03:28 PM   #2
nekokami
fruminous edugeek
nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.
 
nekokami's Avatar
 
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
Thanks!
nekokami is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 Cleaning the display Mike_73 Sony Reader 11 02-08-2010 05:28 AM
Cleaning screen brontus Sony Reader 7 02-15-2009 05:38 PM
Screen cleaning melw Bookeen 7 10-02-2008 11:52 AM
Cleaning the reader pilotbob Sony Reader 19 11-27-2007 05:41 PM


All times are GMT -4. The time now is 11:47 AM.


MobileRead.com is a privately owned, operated and funded community.