Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Sep 2014, 00:11
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
how to scan hard drive for bad sectors
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
eXistenZ

Joined: 14 Sep 2009
Posts: 14
Location: Egypt

PostPosted: Sat 29 May 2010, 11:06    Post subject:  how to scan hard drive for bad sectors  

I wanna know if there is a good and simple utility that runs with puppy linux and allow me to detect hard drive bad sectors and fix them.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sat 29 May 2010, 11:10    Post subject:  

I remember this has been discussed here already, but don't know where and when exactly.
Maybe you can find the posts with the puppysearch link in my sig.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9113
Location: Stratford, Ontario

PostPosted: Sat 29 May 2010, 11:50    Post subject:  

Do some research on the command
Code:
e2fsck -c /dev/sdxy

Note that the target partition must be unmounted when you run e2fsck, so you will need to boot with the "puppy pfix=ram" option.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sat 29 May 2010, 14:02    Post subject:  

Embarassed How could I forget that obvious one.
rcrsn51 is right. The referenced command can take care of this.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sat 29 May 2010, 15:08    Post subject: Re: how to scan hard drive for bad sectors  

eXistenZ wrote:
I wanna know if there is a good and simple utility that runs with puppy linux and allow me to detect hard drive bad sectors and fix them.

You need a low-level diagnostic program for correct testing HDD's surface.
The bad sectors are different: some of them may be recovered but some - never.
I never heard of linux programs for such purposes but I know about programs for
DOS.
Which model of HDD You have?

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 29 May 2010, 16:14    Post subject:  

Quote:
I never heard of linux programs for such purposes but I know about programs for
DOS.


I thought Linux folks cared about their HDDs. Is such things top secret held by the makers of hdds then? or why else doesn't such exists.

I want to be totally free of Ms things.

Maybe there exist FreeDOS programs on some rescue CD?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
linuxsansdisquedur


Joined: 13 Jan 2009
Posts: 250
Location: South of France

PostPosted: Sat 29 May 2010, 17:09    Post subject:  

when fdisk do not repair hd problem Shocked you can try low level test Shocked
last time my hdd needed low level diagnostic program from my hd maker Confused ... I came to puppy because total disk failure ...and i began a new live hard disk free Wink

_________________
le max avec le min
Back to top
View user's profile Send private message 
Colonel Panic


Joined: 16 Sep 2006
Posts: 1513

PostPosted: Sat 29 May 2010, 17:14    Post subject:  

The best way I know of to "treat" an old hard drive is (or was) Gibson Research's "Spinrite", but that's not free or cheap (if it's still available - it's been years since I last saw it).

Failing that, Norton Utilities used to do a program called "Calibrate" in their Utilities suite which did a similar job. I used it once or twice in the past.

_________________
Stone Pentium IV (2.4 GHz), 2 GB of RAM, 160 GB hard drive running Puppy Slacko 5.9.3, Puppy EmSee v2.2, Puppy 4.31 Workhorse, Puppy Boxpup 4.31, Puppy Carolina 1.2, Puppy Legacy OS2 LTS, Puppy Diamond 528_512 (full) and Puppy Upup Raring 3.9.9.2.
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Sat 29 May 2010, 17:33    Post subject: Re: how to scan hard drive for bad sectors  

PANZERKOPF wrote:
You need a low-level diagnostic program for correct testing HDD's surface.

PANZERKOPF is correct. Some of the programs offered by the hardware vendor do, in fact, run under Linux but ALL are proprietary versions because they address the drive logic circuits directly.

If you have a Seagate drive, there is a Seagate utility (free) for testing, diagnostics and low level formatting.

If you have a Fujitsu drive, same thing.

If you have a Western Digital drive, same thing.

If you have ... yeah, same thing!

Check the web and download the image to build a CD for testing your particular hard drive. The biggest issue will be that most will assume you do that using a Windows PC and provide a suitable image. After building the CD from the image file you won't need Windows. If you're lucky your hdd manufacturer will supply an ISO image and you can use burniso2cd to make your CD.

FWIW, e2fsck is a file system checker and not a drive sector diagnostic. It's action is to look for inconsistencies in the file system tables in an ext2 file system (the 'e2' part of the name), not to check hard disk sectors for bad reads and writes. It may indicate problems in a given table, which may be due to problems with the drive, but it will never locate the specific sector or attempt to recover it at the hardware level. Still, it is a very useful utility for what it does.

Hope that helps.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Sat 29 May 2010, 18:05    Post subject:  

Detecting bad hard drive sectors is one thing;
"Repairing"......another.

http://forums.techarena.in/hardware-peripherals/1092536.htm

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sat 29 May 2010, 18:07    Post subject:  

nooby wrote:

I thought Linux folks cared about their HDDs. Is such things top secret held by the makers of hdds then? or why else doesn't such exists.
I want to be totally free of Ms things.
Maybe there exist FreeDOS programs on some rescue CD?

About secrets:
Standard ATA commands are no secret but each HDD also has it's own specific commands which are manufacturer's secret. Standard testing programs use
only standard ATA commands and such testing is enough for usual user.
But if You want to test a HDD in advanced "technological mode", You need to
know these commands and also a structure of HDD.
For example: Linux has a "hdparm" utility which sends and receives ATA commands to/from HDD.
One of the best program for testing HDD in standard mode is "victoria" (Have attached here). Runs under FreeDOS.
P.S.
This program is freeware.
vcr333re.zip
Description 
zip

 Download 
Filename  vcr333re.zip 
Filesize  108.49 KB 
Downloaded  363 Time(s) 

_________________
SUUM CUIQUE.

Last edited by PANZERKOPF on Sat 29 May 2010, 18:25; edited 1 time in total
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sat 29 May 2010, 18:23    Post subject:  

rjbrewer wrote:
Detecting bad hard drive sectors is one thing;
"Repairing"......another.

You are right, "Repairing" is not a correct word but "replacing"
is more correct. Smile Each HDD has few reserved sectors which can be used instead
of damaged sectors. All sectors are ordered in special tables.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
Skipper_the_eye_child

Joined: 03 Feb 2010
Posts: 33

PostPosted: Sat 29 May 2010, 19:38    Post subject:  

Smartmontools won't fix bad sectors, but will pick them up. This guide tells you how to manually reallocate bad blocks:
http://smartmontools.sourceforge.net/badblockhowto.html

And rather more straight forward, here's a HOWTO on using smartctl to run tests on SMART enabled hard drives:
http://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3444
Location: West Lothian, Scotland, UK

PostPosted: Sat 29 May 2010, 19:51    Post subject:  

I've been using the following with success:
"To erase a HDD, and at the same time remap any bad blocks to have them taken out of use:
e.g.
"
badblocks -svw /dev/sdc
badblocks -svw /dev/sda

Where sda or sdc is the HDD identifier."
Got at http://www.murga-linux.com/puppy/viewtopic.php?t=38632

The OP didn't say whether the process was to be non-destructive.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9113
Location: Stratford, Ontario

PostPosted: Sun 30 May 2010, 00:27    Post subject:  

From the e2fsck man page:
Quote:
-c
This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory. If this option is specified twice, then the bad block scan will be done using a non-destructive read-write test.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0904s ][ Queries: 12 (0.0098s) ][ GZIP on ]