|
General Hardware General hardware related questions. |
|
Thread Tools | Display Modes |
|
|||
How do I check an entire HDD?
I want to run something like fsck or chkdsk or whatever on a blank hard drive (just had it written with 0s several times) to check if anything is wrong. Do I have to format it with something first? If so does it matter if I format it on ext3, NTFS, etc.?
|
|
|||
What are you rambling about? if you believe your disk is failing you will know.. errors will appear in the dmesg when you're reading/writing to or from it.
You can use dd(1) to do arbitrary I/O like that, no filesystem needs to exist on the drive. Assuming the disk is sd2, use the raw character device (..unbuffered) to avoid kernel caches.. rsd2c spans the entire disk, ignore the read error when it reaches the end of the disk. $ sudo dd if=/dev/rsd2c of=/dev/null bs=64k If it succeeds you should not see any kernel messages (..white text on blue), this isn't an absolute guarantee though. Note; that most drives cache reads & writes in hardware... and internally remap bad sectors, this can cause "soft errors" which are detected in the kernel. Other factors include bad IDE/SATA cables, overloaded power supplies, physical turbulence (..shaking a laptop roughly), solar flares, and C-x M-c M-butterfly.. |
|
|||
Quote:
I configure ^T (CTRL+T) to send that signal in my .profile. $ stty status ^T Code:
$ sudo dd if=/dev/rsd2c of=/dev/null bs=64k ^T load: 0.37 cmd: dd 25514 [physio] 0.00u 0.06s 0% 57k 1540+0 records in 1540+0 records out 100925440 bytes transferred in 1.822 secs (55386132 bytes/sec) |
|
|||
you have also this one :
http://hddguru.com/software/2005.10.02-MHDD/ i use it at Work to test hard disk (corrupted sector). |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cloning an entire drive? | spiderpig | OpenBSD General | 12 | 14th August 2019 09:49 AM |
please check my pf.conf | gosha | OpenBSD Security | 10 | 30th January 2009 12:32 AM |
check for badblocks | ccc | FreeBSD General | 5 | 30th October 2008 07:00 PM |
how to check package dependencies? | bsdnewbie999 | OpenBSD Packages and Ports | 5 | 31st July 2008 04:05 AM |
backing up an entire system | mwotsch | FreeBSD General | 5 | 14th July 2008 03:00 PM |