LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2005, 12:52 PM   #1
Waerner
Member
 
Registered: May 2005
Location: Örebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Rep: Reputation: 15
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!
 
Old 10-25-2005, 01:14 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
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.
 
Old 10-25-2005, 02:17 PM   #3
Waerner
Member
 
Registered: May 2005
Location: Örebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks alot mate, that made the trick

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

Thanks
 
Old 10-25-2005, 03:00 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 10-26-2005, 02:18 AM   #5
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
look into smarmontools as well.
It will help you to know if your HDD is nearing end of life
 
Old 10-28-2005, 09:54 AM   #6
Waerner
Member
 
Registered: May 2005
Location: Örebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Original Poster
Rep: Reputation: 15
Alright, I'll try these things! Thanks alot =)
 
  


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
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 06:00 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 12:04 AM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM
mounting CD, CDRW... /dev/cdrom -> /dev/hda kersten78 Slackware 9 09-23-2004 11:53 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:12 AM.

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