LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Checking disk with DD (https://www.linuxquestions.org/questions/linux-general-1/checking-disk-with-dd-743251/)

SBN 07-27-2009 08:51 PM

Checking disk with DD
 
Hey guys is it ok to check disk with dd:

dd if=/dev/hda1 of=/dev/null bs=1024k

Wont this destroy the data on the disk?

karamarisan 07-27-2009 08:55 PM

What this will do is read the entire partition one megabyte at a time and write it to /dev/null, which essentially means that it does nothing. It will not destroy data, though if you got some characters mixed up, it might. If you're in doubt about a command, always read the manpages before doing anything else.

Now, what brought this up? There are utilities that do these things more directly. If you're concerned about the consistency of your filesystem, `man fsck`; if you're worried about the health of the drive, read up on SMART data and smartctl (though this only does so good a job of predicting failures).

SBN 07-28-2009 03:50 AM

Thanks for the info:)


All times are GMT -5. The time now is 10:10 AM.