Solved

remote fsck

Posted on 2006-11-27
3
249 Views
Last Modified: 2013-12-16
how can i check disk of remote pc for errors, automatically fix ?
0
Comment
Question by:ed987
  • 2
3 Comments
 
LVL 14

Expert Comment

by:ppfoong
ID: 18025799

You can safely run fsck when the disk partition is unmounted. Using SSH to connect to the remote server:

umount /dev/sdaXX
fsck /dev/sdaXX
mount /dev/sdaXX

0
 
LVL 14

Accepted Solution

by:
ppfoong earned 500 total points
ID: 18025811

A reboot is unavoidable if you want fsck to run on all partitions or mounted partitions that cannot be unmounted.

To do this:

shutdown -rF now

0
 
LVL 10

Expert Comment

by:ssvl
ID: 18026769
use fsck -y <device > for  force yes
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now