Solved

remote fsck

Posted on 2006-11-27
3
251 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
High Available Storage based on linux 6 84
How to enable sync between two yum repo? 1 32
linux 13 51
SUSE Linux Enterprise 11.x Ensure tftp server is not enabled 1 25
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:

823 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