|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix | |
ubuntu 9.10 - failing hard disk bad sectors error
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||
|
New to Overclock.net
|
hey there guys,
__________________im having some strange problem i have just installed ubuntu 9.10 and it is saying my hard disk is failing and there are bad sectors. is there a program i can use to fix these bad sectors or is there another way around this? would really appreciate your help thanks
|
||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
*cough* Stock *cough*
![]() |
You can use something like windows' chkdsk to close off those bad sectors but I don't think you can repair them.
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||||
|
Linux Lobbyist
![]() |
You don't need Windows to check a disk for badblocks. Linux comes with a utility called "badblocks" as well as various filesystem tools like fsck.
First thing I would do, if you have a lot of time, is run fsck on the disk (warning this will take a whole day on a modern disk). In order to do this, the disk must be unmounted. So, the best way to do it is boot from the Ubuntu LiveCD and then open a terminal and type: Code:
sudo fsck -pcfv /dev/sda This command will force automatic bad block checking and it will automatically mark all known bad sectors as bad so that they wont "interfere" in the future. After you boot back into the OS, I would make sure that smartmontools is installed: Code:
sudo apt-get install smartmontools Code:
sudo smartctl --test=long /dev/sda Code:
sudo smartctl -a /dev/sda Code:
man fsck man smartmontools
__________________
Secure Your Network With Tomato Linux File Permissions HOWTO Secure Ubuntu With AppArmor"I can't bring myself to try Linux Mint because they keep naming the OS after ex-girlfriends or women I've had bad run ins with. Cassandra was a sexual harassing shift manager. And Felicia was a stalker who knew how to turn a good day into a hellish experience in 0-60." -- Anub1s from BBR forums
|
||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
PC Gamer
![]() |
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|