LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2006, 04:38 PM   #1
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Rep: Reputation: 30
Hard Drive analysis


I have a laptop thats abuot 3 years old it used to run windows XP.

the other day while copying some files over the LAN onto the laptop i got the blue screen of death, had to reboot yadah. when it booted up i got a invalid boot.ini error. yadah yadah it turned out every file on the disk was corrupt. i tried to do some things to "recover" the data. nothing worked so i decided to format and install XP on it again.

i put in the windows xp cd and begna to boot up, while doing the pre install steps and checks it said it would not install because there were errors on the hard drive. so i thought maybe i need to replace the hard drive maybe it went bad.

i tried to run some self booting tools to see if i could verify the issue. i got mixed results, either the tool would crash while running or report no problems.

so i had another idea. I should install linux on it (CentOS) and see what happens.

well it worked! i even used it some it seems to work fine. I don't know if linux detected bad sectors on the disk, or isn't aware of them or what. but I'd like to run some sort of detailed hard drive anayalsis tool that will be able to detect any problems on the hard drive. could someone recomended me some/a few?

(i tried some of the commands that come with it to do disk checks but I have not been able to do it succesfully, most likely because I couldn't figure out the right arguments to send.

Thanks,
danny
 
Old 12-07-2006, 04:53 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If you boot from a liveCD like knoppix, you could run the badblocks program on each of the hard disk partitions. This will do a surface scan of the media and report any bad blocks it finds.

That or you could try one of the commercial products like spinrite.
 
Old 12-08-2006, 09:33 PM   #3
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i have linux installed, i just need something to test the hard drive with.

i tried knoppix i cant seem to find a hard drive test utility
 
Old 12-08-2006, 11:56 PM   #4
tshrinivasan
Member
 
Registered: Jan 2006
Location: Chennai, Tamil nadu, India
Distribution: Debian Etch Testing
Posts: 117

Rep: Reputation: 16
use badblocks and fsck

man badblocks
man fsck

use QTparted to edit your partitions.
you can remove all your partitions and recreate them
 
Old 12-09-2006, 02:57 PM   #5
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
ive tried using both but i cant figure them out even with al the examples on google, is there a graphical interface for badblocks or anything?
 
Old 12-10-2006, 06:04 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What did you try, and did you get some error message or something?
 
Old 12-15-2006, 08:06 PM   #7
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i alwyas get "bad block size" even though i know its the correct one (found the blocksize by using the fdisk -lu /dev/hda command)
 
Old 12-16-2006, 04:37 AM   #8
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
can you copy-paste the command and output, then the output of dmesg?
 
  


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
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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