LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-17-2008, 04:48 AM   #1
hcccc
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
How to scanning a mounted hard disk


I have a server in office which cannot be turned off. I want to know does the hard disk has bad sectors or not.

I must not turn off the server or unmount the disk. Does it is any tools let me scanning the hard without poweroff and unmount.


Thank you very much!

Last edited by hcccc; 01-18-2008 at 12:33 AM.
 
Old 01-17-2008, 05:51 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I have a server in office which cannot not be turned off.
You experience an irrational urge to turn the server off whenever you see it is switched on? This is a problem man: get someone to duck-tape you to your chair.

Quote:
I want to know does the hard disk has bad sectors or not.
man fsck

Quote:
I must not turn off the server or unmount the disk.
Then... what happens if you discover bad sectors?

Anyway, the following looks promising:
http://smartmontools.sourceforge.net/

The easiest way to avoid downtime to check the filesystem is to use a failover drive or server.

Last edited by Simon Bridge; 01-17-2008 at 05:53 AM.
 
Old 01-17-2008, 06:15 AM   #3
Jirka11
LQ Newbie
 
Registered: Jan 2008
Posts: 24

Rep: Reputation: 15
Absolutly you need to unmount the partition which you want to scan by fsck, so if it's root partition you will need to switch the server off and propably boot from some CD and test it by fsck /dev/sdXX

_____________________________________________
My IP address
 
Old 01-18-2008, 12:38 AM   #4
hcccc
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Jirka11 View Post
Absolutly you need to unmount the partition which you want to scan by fsck, so if it's root partition you will need to switch the server off and propably boot from some CD and test it by fsck /dev/sdXX

_____________________________________________
My IP address
But I cannot turn off my server. Do it have some tool for check bad sectors. I do not need to fix it, only check is OK.
 
  


Reply



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
USB External Hard Disk cannot be mounted csvke Linux - Hardware 7 10-10-2008 03:59 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
Scanning Disk or Disk Repairing mhkhalqani Linux - Hardware 4 09-30-2005 09:28 AM

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

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