- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Check Hard Disk for damaged sectors
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 08:29 AM
02-10-2010 08:29 AM
Howto check Hard Disk for damaged sectors?
I've tried to format 80GB IDE Hard Disk using gparted, but it was to quick.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 01:31 PM
02-10-2010 01:31 PM
Solutiondd
dd if=/dev/sda of=/dev/null bs=1024
If you have i/o errors, you have bad sectors.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 04:52 PM
02-10-2010 04:52 PM
Re: Check Hard Disk for damaged sectors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 08:42 PM
02-10-2010 08:42 PM
Re: Check Hard Disk for damaged sectors
http://grc.com
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 10:26 PM
02-10-2010 10:26 PM
Re: Check Hard Disk for damaged sectors
To check if a harddisk is in good shape,
you can use its SMART capabilities:
smartctl -t long /dev/hda
To check for bad sectors, use
badblocks -sv /dev/hda
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2010 08:26 AM
12-19-2010 08:26 AM
Re: Check Hard Disk for damaged sectors
badblocks -sv /dev/hda
just checking (reading) without damaging data from the Hard disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2010 01:11 AM
12-20-2010 01:11 AM
Re: Check Hard Disk for damaged sectors
The man page say's so (on ext2 and ext3)
Only the -n and -w (mutually exclusive) will write to disk ...
-w BEWARE WILL DESTROY ALL THE DATA ON YOUR DISK,
-n is "safer"
------- extract from man page badblocks -----
-n Use non-destructive read-write mode. By default only a non-
destructive read-only test is done. This option must not be
combined with the -w option, as they are mutually exclusive.
------- End of extract from man page --------
Just to test this i tried badblocks -sv on a spare disk (ext2 with some data on it), be patient this does take a long time.
# badblocks -sv /dev/sdb
Checking blocks 0 to 17716607
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.
In my this case no badblocks and my filesystem did survive this test !
as a side point how reliable is this I don't really know and lot of other thinks beside bad blocks could be wrong with a hard disk the controller electronic could also be wrong!
Enjoy life.
Jean-Pierre Huc