LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2006, 03:12 AM   #1
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Rep: Reputation: 15
How do i check bad sectors in redhat 9


Hi Everyone ,

How can check for the bad sector in redhat 9
or linux operating system

Thanks & Regards
winxandlinx
 
Old 05-29-2006, 04:09 AM   #2
erdwin
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 2

Rep: Reputation: 0
badblocks
man 8 badblocks

Use it as root.
 
Old 05-29-2006, 05:21 AM   #3
winxandlinx
Member
 
Registered: May 2006
Posts: 141

Original Poster
Rep: Reputation: 15
Hi Erdwin,

just new to linux ,can you explain somewhat breifly
 
Old 05-30-2006, 08:28 AM   #4
erdwin
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 2

Rep: Reputation: 0
The badblocks command operates just like any other commands that associated with partition table, for instance fdisk, mkfs, parted ...
in which take a partition number as its parameter.

So suppose that you wanna check your first partition on primary disk, just issue

# badblocks -n -v /dev/hda1

'-n' parameter will do non destructively checking, and '-v' will give you verbose output. Output would be shown where the bad of block occured.

# man 8 badblock
Will give you more complete reference about badblocks.
 
  


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 sectors tuxombie Linux - Hardware 3 01-29-2005 01:05 PM
How to I check a Linux formated hard drive for bad sectors NewtoLinuxWorld Linux - Hardware 1 02-27-2004 03:46 AM
bad sectors on harddrive Lindquist Linux - Hardware 1 01-28-2004 04:41 PM
Check bad sectors on install in 9.2 Klay Mandriva 1 12-15-2003 03:15 PM
Bad sectors blystovski Linux - Software 1 10-17-2001 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:07 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