Howto repair a server’s filesystem without rebooting

Author: Stephan  |  Category: Linux, Netzwerk

When you got the message that a drive is readonly because of a faulty filesystem or journal was aborted you want to repair it without rebooting especially if the computer is a remote server.

First shutdown all processes accessing the Filesystem
fuser -v -m /home/

If you have subdrive , umount them first
umount /home/myhome

then
tune2fs -O ^has journal /dev/sda7
fsck /dev/sda7
tune2fs -j /dev/sda7

restart stopped services again

Tags: , , , , ,

Leave a Reply