largedisk - compare for data corruption on USB
largedisk.sh target_disk correct_size
The largedisk test examines whether the disk capacity can be recognized by the system correctly. This test compares the correct size of the hard drive that is entered by user and the size that is automatically recognized by the system.
The largedisk test displays both the real size and detected size.
- target_disk
- Specifies the disk name under test. The disk entered should be FDISK partition 0, for example, c2d0p0 or c1t1d0p0.
- correct_size
- Specifies the correct disk capacity followed by unit K, M, or G.
The disk size recognized by the system is sent to stdout. If the size entered by the user is 5% larger or 5% smaller than the size recognized by the system, the return value is 1. Otherwise return value is 0.
1 minute
Note: If this test is being run in conjunction with any other tests, the duration may be longer.
# largedisk.sh c0t0d0p0 80G
Copyright 2005 Sun Microsystems, Inc. All rights reserved.