LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-23-2004, 04:19 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
Command to check hard drive


Hi folks,

RH8.0

Which will be an effecive command checking the harddrive and fixing errors found.

# hdparm -tT ???
# fsck /dev/hda ???

Remark:
#df
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2             37389260  15048948  20441028  43% /
/dev/hda1                46636      9290     34938  22% /boot
none                    256976         0    256976   0% /dev/shm
TIA

B.R.
satimis
 
Old 06-23-2004, 04:27 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
It all depends on what errors you have. If you have filesystem corruption, then yes - fsck is what you'll want to use. hdparm -tT measures the throughput speed of the disk but doesn't really check for errors. For monitoring SMART data (for hardware failure notices) you can use smartctl from the smartmontools suite.


Håkan
 
Old 06-23-2004, 04:57 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi Håkan,

Tks for your advice.

At present there is no error warning on running my OS.

Previously on one or two occasions the OS could not start hanging on 'Welomme to...' at booting. I switched off the computing and tunred it on again. It booted straight forward. I wonder whether there is any error on the OS. Therefore I want to render a complete check.

B.R.
satimis
 
Old 06-23-2004, 10:24 AM   #4
naren
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
hi,
U can use the utility 'badblocks' check the man page for this ...

n comin to fsck, the file scanner tool... U have to unmount the partisions
 
Old 06-25-2004, 03:42 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi naren

Quote:
U can use the utility 'badblocks' check the man page for this ...

n comin to fsck, the file scanner tool... U have to unmount the partisions
Are there other tools to check irregularities on hard drive and/or OS without unmounting the partitions

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NMI, Machine check errors=bad hard drive? robber49 Linux - Hardware 1 04-08-2005 08:59 PM
How to I check a Linux formated hard drive for bad sectors NewtoLinuxWorld Linux - Hardware 1 02-27-2004 04:46 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM
hard-drive check cmandan Linux - General 1 10-02-2003 03:44 PM
command for hard drive space in megs Goatdemon Linux - General 6 11-05-2002 06:20 PM


All times are GMT -5. The time now is 05:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration