PDA

View Full Version : [ubuntu] Anyone know how r repair hdd bad sectors ??



Tracy177
September 5th, 2010, 11:40 AM
ubuntu 10.04 i checked disk mgr and i foud info about hhd that it has a few bad sectors.

i tried to run a test but it fails.

is there any chance to repair those bad sectors without formating hdd ?

cogier
September 5th, 2010, 11:49 AM
Even reformatting the hard drive will not repair bad sectors. Bad sectors are marked as bad as they are unusable. Modern disks do not normally have bad sectors these days.

If you have more that a couple of percent bad then you may be heading for disk failure - Back it up!

Tracy177
September 5th, 2010, 11:51 AM
Even reformatting the hard drive will not repair bad sectors. Bad sectors are marked as bad as they are unusable. Modern disks do not normally have bad sectors these days.

If you have more that a couple of percent bad then you may be heading for disk failure - Back it up!


modern disks :) the disk i hae is year old wdc blue

i know i cant repair but the thing is that if ubuntu or part of it i isnatalled in a bad sectors it will boot slower work slower right ?

even solid sate disks will have bad sectors

Kyluke
September 5th, 2010, 11:55 AM
Check out
http://www.hiren.info/pages/bootcd
(Download URL) http://www.hirensbootcd.net/download.html
I'm a pc technician and I use that at work.

HDAT2 4.53 & Hard Disk Regenerator are the two tools I use to fix bad sectors on a disk.

The process might take a long time but in my experience it has fixed the hard drives.
Plus there are bunch of other very handy tools on that disk.

Simply download the software, burn the ISO to a CD and boot from the CD.

Jazzy_Jeff
September 5th, 2010, 12:46 PM
You can download a program from Western Digital to test your drive to see if it is on it's way out. While it is true all hard drives have bad sectors, if it is getting too many the hard drive may fail soon. Better to be safe than sorry.

da burger
September 5th, 2010, 12:55 PM
Hey I don't know if this is still relevant but I think a while ago I heard something about disk manager giving false positives about bad sectors. You might want to read up on that before trying to any repairs. (Of course you should already have a backup of any data you can' afford to lose, if you don't look into something simple with rsync now).

Tracy177
September 5th, 2010, 01:12 PM
Hey I don't know if this is still relevant but I think a while ago I heard something about disk manager giving false positives about bad sectors. You might want to read up on that before trying to any repairs. (Of course you should already have a backup of any data you can' afford to lose, if you don't look into something simple with rsync now).


i have western digital hdd 500gb (widows files and ubuntu) other internal has 320gb (windows) the same western digital. the external is connected trought sata.

internal doesnt show any bad sectors just the external one. i tried to use tool from western digital and it fail to test smart the same if i scan using windows tool.

in the tool from WDC is thing to scan and repair bad sectors so i started it completed it, took about 2 hours than there shwoed info if i want to reapir bad sectors i pressed yes it showed some error and didnt repair dont know why.
maybe it is cuz of i have on that hdd ubuntu and other windows files.

i dont want to remove ubuntu and than repair it and install ubuntu again it will take me a week to do that:)

i also tried tool from win 7 dvd there is an option to scan and repair that one took to scan about half a day at the end didnt show any errors.

just under ubuntu and tool from western digital show a few bad sectors


the 500gb hdd is just year old
and the internal hdd is 4 months old


i have one more question !!!

can i copy all ubuntu and wondows files from 500gb hdd to 320gb hdd than format that drive use the tool from west digit scan it repair it and than copy and paste all this ubuntu and windows files back to 500gb hdd. will it work ? will ubuntu boot after i restart ? and the other thing i have made a pertition on 500gb hdd the partition has 50gb but i cant see it under windows.

L Campbell
September 5th, 2010, 02:23 PM
Check out
http://www.hiren.info/pages/bootcd
(Download URL) http://www.hirensbootcd.net/download.html
I'm a pc technician and I use that at work.

HDAT2 4.53 & Hard Disk Regenerator are the two tools I use to fix bad sectors on a disk.

The process might take a long time but in my experience it has fixed the hard drives.
Plus there are bunch of other very handy tools on that disk.

Simply download the software, burn the ISO to a CD and boot from the CD.

Hi, when I go to the download page I cannot seem to find how to download the file.

Help please.

TIA

bkratz
September 5th, 2010, 03:09 PM
Go to where it says

+ Direct HTTP Mirror + Torrent + Torrent Magnet

at the bottom and select one. I had trouble finding it too!!

realzippy
September 5th, 2010, 05:05 PM
can i copy all ubuntu and wondows files from 500gb hdd to 320gb hdd


Have to run a LiveCD,then you can do it with dd:

dd if=/dev/sda of=/dev/sdb

dumps sda to sdb. Details about DD (DiscDump):

http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/How_To_Do_Eveything_With_DD

----------------------------------------------------------------

...has 50gb but i cant see it under windows.


Windows cannot read the linux filesystem,but Linux can read NTFS.

philinux
September 5th, 2010, 05:14 PM
ubuntu 10.04 i checked disk mgr and i foud info about hhd that it has a few bad sectors.

i tried to run a test but it fails.

is there any chance to repair those bad sectors without formating hdd ?

How many bad sectors?

3rdalbum
September 5th, 2010, 05:20 PM
The disk contains some spare sectors. If you start getting bad sectors, the disk will automatically copy the data from that sector to a spare sector.

If you start getting bad sectors then the disk is on its way out. If it runs out of spare sectors, then your disk won't just be "slower" - it will start losing your data, which is not what you want.

Bad sectors cannot be repaired.

Back up all your data and put the disk into the bin.

da burger
September 5th, 2010, 05:54 PM
can i copy all ubuntu and wondows files from 500gb hdd to 320gb hdd


Have to run a LiveCD,then you can do it with dd:


dd if=/dev/sda of=/dev/sdb

Surely that command won't work since the receiving drive is smaller than the source drive.

L Campbell
September 5th, 2010, 06:14 PM
Go to where it says

+ Direct HTTP Mirror + Torrent + Torrent Magnet

at the bottom and select one. I had trouble finding it too!!



Thanks, that worked perfectly.

philinux
September 5th, 2010, 06:22 PM
http://en.wikipedia.org/wiki/Bad_sector

realzippy
September 5th, 2010, 08:54 PM
Surely that command won't work since the receiving drive is smaller than the source drive.

..thats why the next line (you did not quote) contains the link to


http://www.linuxquestions.org/linux/...ything_With_DD

Anyway edited the post,preventing anybody to run this command (meant as "concept") without
having read the link to discdump.
Thanks.

philinux
September 5th, 2010, 08:59 PM
Lets just take a reality check here. A few bad sectors don't mean a disc is dying. If they are increasing on say a daily basis then I would back up and replace the drive.