The tool behind Disk Utility's volume checking is fsck_hfs, which can also be run from the command line. The key to fast volume checking is a sufficiently large cache for the volume structures in memory, which Disk Utility obviously doesn't supply. This example uses 2.2 GB cache in RAM:
sudo fsck_hfs -f -c 2200m /dev/disk2
For a full 1TB Time Machine backup disk with many millions of files, this completes in about 10 minutes. A nice side effect is that this also puts less stress on the disk, as most reads are served from the cache.
Adding the little shell script below to your command line tools can make your life a lot easier. It takes the volume name as the single argument. The drive is unmounted during ...
Source: http://feeds.macosxhints.com/click.phdo?i=842d30dbef76768b0c526c996807d80c
apple news release apple sale apple daily news hk mac computer help
No comments:
Post a Comment