LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 05: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 01:33 AM.
 
Old 01-17-2008, 06:51 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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 06:53 AM.
 
Old 01-17-2008, 07: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, 01: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


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
USB External Hard Disk cannot be mounted csvke Linux - Hardware 7 10-10-2008 04:59 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 01: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 09:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 11:55 AM
Scanning Disk or Disk Repairing mhkhalqani Linux - Hardware 4 09-30-2005 10:28 AM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration