PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 05:21:19 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Format HD checking bad sectors [Solved]  (Read 1012 times)
Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« on: September 20, 2011, 08:33:23 AM »

In the process of partitioning a HD to install PCLinuxOS from a Live USB GParted just stalled, after that on rebooting Windows XP made some "fixes". The result is Win XP could not boot, files are backed up so I just formatted the drive but Win XP disk failed after loading; used again Gparted and rebuilt partition table, partitioned and formatted.

Win XP disk refused to play again after loading.

It seems to me that the disk has bad sectors but nor GParted nor the PCLinuxOS control center gives me the option to check for bad sectors while formatting (I'm sure it did before  Huh )

The computer is a netbook Compaq CQ10 150 GB HD

Do I have any option using PCLOS or do I need another tool?

Thank you
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #1 on: September 20, 2011, 09:10:51 AM »

Hi Crow,

HP notebook/latptop generally do have a built in function in BIOS to make a short test of the hard disk, not sure about your specific model, but you can check.

About bad blocks, assuming the disk is a relatively recent model, your best option is to perform a S.M.A.R.T. test, which is much much faster than a scanning for badblocks.

I'm not sure that scanning for badblocks make any sense these days, because SATA disks are designed to automatically replace bad sectors (using some spare storage on the same disk) when some error occurs. Once the spare blocks are exhausted your best choice is to replace the hard disk.

Anyway, to check the disk using S.M.A.R.T. technology you need the command smarctl, provided by the packaged smartmontools, available in repo non available on a brand new PCLinuxOS ISO image:

smartmontools-5.41-1pclos2011
gsmartcontrol-0.8.6-1pclos2011

gmsartcontrol is a graphics interface to smartctl, your best option is to install both packages, available there are a general healt status, a short test (2 minutes) a long test (1 or more hours), please note that SMART status is based on data collected along the whole life of the hard disk, not only data collected at test time.

graphics interface:
gsmartcontrol

from command line:
smartctl -H /dev/sdX (general healt status)
smartctl -t short /dev/sdX (perform a short test)
smartctl -t long /dev/sdx (perform a long test)
smartctl -l selfest (list and status about already performed tests)

if you want to perform a scan for bad blocks, the command is badblocks, is available on the official live ISOs, and can be used directly from command line, see man badblocks for further details:
badblocks  /dev/sdaX

or you can use fsck on ext2/3/4 partitions (that in turn will call badblocks):
fsck -f -c /dev/sdaX (read-only test)
fsck -f -c -c /dev/sdaX (read-write test)

Regards
AS



Logged
Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« Reply #2 on: September 20, 2011, 09:21:06 AM »

Thank you I will try as soon as I get home
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11992

┌∩┐(◕_◕)┌∩┐


« Reply #3 on: September 20, 2011, 09:33:01 AM »

I believe when installing PCLinuxOS there is an option for bad sector checking during the format stage.
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« Reply #4 on: September 20, 2011, 10:08:02 AM »

I believe when installing PCLinuxOS there is an option for bad sector checking during the format stage.

Probably I saw it there  Sad
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« Reply #5 on: September 21, 2011, 01:26:50 PM »

Just want to thank As and Menotu,after several intents in which Linux worked recognizing the drive but not XP, it turned to be that the nettbook needed XP SP3 or later and we were using XP SP2   Undecided    live and learn!

Thank you again for your time.
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #6 on: September 21, 2011, 01:28:42 PM »

 Wink Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM