Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
there is a way to check hd with mounted partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ReDirEct__
Guru
Guru


Joined: 16 Mar 2006
Posts: 300
Location: Nola (NA) - Italy

PostPosted: Sun Jun 22, 2008 1:50 am    Post subject: there is a way to check hd with mounted partition? Reply with quote

Same as object... have some problem with my ata hd... and want to check if something wrong...
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sun Jun 22, 2008 3:08 am    Post subject: Reply with quote

Hardware or file system? SMART info can be safely read while partitions on the drive are mounted. File system checks may do harm on mounted file systems, depending on what exactly you're doing ;)

man fsck.ext3 says:

Quote:
Note that in general it is not safe to run e2fsck on mounted filesystems. The
only exception is if the -n option is specified, and -c, -l, or -L options are
not specified. However, even if it is safe to do so, the results printed by
e2fsck are not valid if the filesystem is mounted. If e2fsck asks whether or
not you should check a filesystem which is mounted, the only correct answer is
``no''. Only experts who really know what they are doing should consider answer-
ing this question in any other way.


On the other hand, not all fsck-tools issue a warning like this. As long as you do read-only operations and don't change anything on the fs, I wouldn't expect any damage.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Jun 22, 2008 1:16 pm    Post subject: Reply with quote

Best to force a check and reboot (or are you afraid the
system won't reboot?).

(that is, shutdown -F -r now)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
ReDirEct__
Guru
Guru


Joined: 16 Mar 2006
Posts: 300
Location: Nola (NA) - Italy

PostPosted: Thu Jun 26, 2008 1:55 pm    Post subject: Reply with quote

tnx... i wil try to force the check on reboot...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum