LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2012, 12:38 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
Scan bad sector


I use RHEL linux server , I would like to check if the server have had server , can advise is there any command / tool can do that ?

Thanks.
 
Old 01-12-2012, 12:56 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
Quote:
I would like to check if the server have had server , can advise is there any command / tool can do that
I am going to take a guess from the thread title, that you want to check a disk for bad sectors?
If so, i would start with badblocks.
Code:
badblocks -sv /dev/sdx
You can use "mkfs -c" to check for bad sectors, and then not use them when creating a filesystem, but this would require destroying the existing filesystem.
 
Old 01-12-2012, 01:09 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Original Poster
Rep: Reputation: 30
Thx ,

does the volumn need to be umount before run this command ? Thanks
 
Old 01-12-2012, 01:16 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
you CAN, but its not a good idea, even if the fs is mounted read only.

I would suggest reading the man page for badblocks before using it.
 
Old 01-18-2012, 07:41 PM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Original Poster
Rep: Reputation: 30
thx reply , I use the command badblocks to check ,there are some bad block found .

I checked my vendor , this bad block is come from the raid set , most likely not from the HD bad block .

can advise if I use Raid 5 , how can I check the HD bad block ?

Thanks.
 
Old 01-19-2012, 04:51 AM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,220

Rep: Reputation: Disabled
Quote:
Originally Posted by ust View Post
I use RHEL linux server , I would like to check if the server have had server , can advise is there any command / tool can do that ?
To see how's your HDD's surface doing use this:
http://www.real-world-systems.com/do...en_manual.html
http://hddguru.com/software/2005.10.02-MHDD/
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bad sector check user100 Linux - Hardware 1 10-08-2010 02:13 PM
How can I find out which sector that is bad Ralfredo Linux - General 2 07-13-2010 08:48 AM
scan for sector errors on hard disks psirek Linux - Software 1 04-19-2006 04:58 PM
how can i partition around a bad sector ? nephish Linux - Hardware 13 12-02-2005 08:45 AM
Software to run bad sector scan??? bruno buys Linux - Software 5 09-04-2004 11:05 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration