http://partedmagic.com/ Dit is een goede bootable cd om te formateren, de hd leegmaken etc.
Bij 10.04 zit ook oppervlakte kontrolle van je hd. Bij "disk utility" op smart duwen bij je hd, daar staat oppervlakte kontrolle bij.
Of op de oude manier:
sudo badblocks -nvs /dev/sda
sda is de hardeschijf of sd of cf kaart.
Read-only Test
This is a non-destructive read-only test which can be run on disk even if it contains a mounted filesystem. It simply verifies that each block can be read; it does not test for write errors.
* sudo badblocks -s -v -c 10240 /dev/sdx
o -s = show progress
o -v = verbose mode
o -c 10240 - check 10K blocks at a time
Read-write Test
This test is non-destructive read-write test which reads each block, writes it, then verifies it. It should not be used on block devices with mounted filesystems as it can lead to filesystem corruption.
* sudo badblocks -n -s -v -c 10240 /dev/sdx
o -n = non-destructive read-write mode
o -s = show progress
o -v = verbose mode
o -c 10240 - check 10K blocks at a time
Write-mode Test
Using this command will erase all data on the device so only use it if that is what you want. This will write a few patterns to each block, verifying that each one is written and read correctly.
* sudo badblocks -w -s -v -c 10240 /dev/sdx
o -w = destructive write-mode test
o -s = show progress
o -v = verbose mode
o -c 10240 - check 10K blocks at a time
Prepare a disk for encryption
The command will completely erase the data on a disk and replace it with random data. This is often a preferred way to prepare a disk for encryption as it is faster than other methods of filling a disk with random data and serves the purpose of checking the disk for errors before the encryption process.
* sudo badblocks -w -t random -s -v -c 10240 /dev/sdx
o -w = destructive write-mode test
o -t random = write random data onto the disk
o -s = show progress
o -v = verbose mode
o -c 10240 - check 10K blocks at a time