Filesystem check with KVM

KVM has been attached so:
– restart server;
– edit kernel option (add “init=/bin/bash“) at the end of the kernel line and boot it;
– server is loaded into /bin/bash;

mount -o remount,rw /

remounting /partition in read write mode(rw)

 

passwd

change password if you do not know what it is

 

mount -o remount,ro /

changing to read-only(ro)

– loading server – it starts running fsck and asks for root password. Give root password.

fsck -Ay

to fix problems without asking questions

 

Leave a Reply