How to repair files from linux rescue – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, centos, centos5, , .
It seems that a lot of necessary system modules were uninstalled by mistake , so the original linux server doesn’t function anymore and cannot be accessed through ssh or ftp. but I can access through rescue linux, is there a command to enter to make linux copy any missing module from the rescue linux to the faulty installation?
for example on Windows I can boot into windows and choose repair, which is re-install. I can do that also from linux if I have direct access to the PC. but how to do that through ssh in linux-rescue?
Unless the rescue image is specifically compiled for the distribution/version of the installed system this is not a good idea. Its good security practice to install distributir supplied patches when they are available – and maintaining a rescue disk which is an exact copy of the current state of your system would be a nightmare. Indeed, given the complications of this approach I doubt anyone would provide a rescue image capable of this.
The right way to fix the problem would be to boot up off the rescue image and restore the missing files from your backup. But presumably you don’t have a backup since you’re asking the question.
So that just leaves the option of reinstalling. But before you do that, boot up with your rescue disk and take a complete backup of the filesystem. Then when you reinstall, skip the formatting and use the existing partitions. Better yet, try to (major) upgrade to a newer version of the same distribution – this should preserve most of your config settings.
Then test everything and copy back any overwritten configs from your backup.