LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Check for physical errors on /dev/hda? (https://www.linuxquestions.org/questions/linux-newbie-8/check-for-physical-errors-on-dev-hda-376782/)

Waerner 10-25-2005 12:52 PM

Check for physical errors on /dev/hda?
 
Hello, I have to ask - is there any way to check a whole volume for physical errors like broken sectors? In Win you can use CHKDSK, and I got a tip to use fsck on my Ubuntu-machine. But as I'm running ReiserFS, someone told me I couldn't use it because it's an jounarl filesystem.

And even if I try, I get the error "Partition /dev/hda is mounted with write permissions, cannot check it." And I guess I can't unmount it when I've booted my system on it? :)

Thank you!

Tuttle 10-25-2005 01:14 PM

go to your lowest runlevel ("telinit 1" I think), then remount your filesystem readonly:
Code:

mount -o remount -o ro /
Tehn try running fsck on it. :)

Waerner 10-25-2005 02:17 PM

Thanks alot mate, that made the trick :D

But it didn't found any errors, so I guess I have to replace the hdd anyway.

Thanks :) :)

AwesomeMachine 10-25-2005 03:00 PM

You goto the website of your hard drive manufacturer and get their diagnostic utility. You make a floppy, and boot from it. Then, the diagnostic utility will find all bad sectors, which is usually none, and remap them to good sectors. You don't lose any data, and it is fast.

Emmanuel_uk 10-26-2005 02:18 AM

look into smarmontools as well.
It will help you to know if your HDD is nearing end of life

Waerner 10-28-2005 09:54 AM

Alright, I'll try these things! Thanks alot =)


All times are GMT -5. The time now is 11:21 AM.