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

Click here to return to the 'Prevent Spotlight from indexing external hard drives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent Spotlight from indexing external hard drives
Authored by: TvE on May 04, '10 01:19:31PM
It is very "optimistic" to hardcode filenames. Personally I change the name of my boot disks to represent the hostname of the Mac, making it easier to prevent mistakes ;-)

I have a script that measures disk usage on external disks (ie NOT the boot volume) and I use this test command to filter out the boot volume:
if [ ! -L "$file" ]; then	# No symlinks (=> do not measure the boot disk)

PS You can read more about the command "test" (or "[" as it is called ;-) here:
Edited on May 04, '10 01:23:18PM by TvE

[ Reply to This | # ]