LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-27-2009, 08:51 PM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
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?
 
Old 07-27-2009, 08:55 PM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
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).
 
Old 07-28-2009, 03:50 AM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
Thanks for the info
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking disk space misterdanny Linux - Software 5 04-21-2009 03:20 PM
disk checking at startup Greebstreebling Debian 13 06-05-2007 02:06 PM
Checking Disk Space thru console boyblitz Linux - Newbie 2 04-06-2004 11:39 AM
Checking disk space timberwolf Linux - General 9 12-04-2003 01:18 AM
Checking free disk space hackersapien Linux - Newbie 2 08-05-2003 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration