Skip to main content

CentOS en mode Rescue + xfs_repair

1. Boot grub, edit your default command line ("e")
2. Remove "rhgb" and "quiet" from the "linux" command line so you can see boot messages
3. Add "rescue" in their place
4. System boots to rescue mode (Ctrl-X)
5. Enter your root PW when prompted
6. execute the command "mount -o remount,ro /" to remount root as read only
7. execute the command "xfs_repair -d /dev/"
8. cross fingers, wait and reboot immediately when complete

Peut nécessiter d'être lancé 2 fois pour tout réparer. Si on ne passe pas en mode "rescue", on ne peut pas remonter / en RO car il est verrouillé par des process.