今日由於電腦非正常關機,導致虛擬機文件系統報諸如:
generating “/run/initramfs/rdsosreport.txt”
entering emergencymode.
exit the shell to continue
type “journalctl” to view system logs.
you might want to save “/run/initramfs/rdsosreport.txt” to a usb stick or /boot after mounting them and attach it to a bug report。這樣的錯誤。
經過百度解決了問題,認為解決方案很nice!!!故作此筆記,進行總結與分享。
修復步驟:
《1》 ls -l /dev/mapper
《2》 mkdir /mnt
《3》 mount /dev/mapper/cl_muban-root /mnt # 這里也可以操作 提示中的 dm-0 (即 /dev/dm-0,其實/dev/mapper/cl_muban-root是鏈接到 /dev/dm-0 )
或者 mount /dev/dm-0 /mnt
《4》 umount /mnt
《5》 xfs_repair /dev/mapper/cl_muban-root 或 xfs_repair /dev/dm-0
《6》 init 6 (會直接reboot重啟系統)
修復命令xfs_repair:
xfs_repair -h xfs_repair: invalid option -- 'h' Usage: xfs_repair [options] device Options: -f The device is a file -L Force log zeroing. Do this as a last resort. -l logdev Specifies the device where the external log resides. -m maxmem Maximum amount of memory to be used in megabytes. -n No modify mode, just checks the filesystem for damage. -P Disables prefetching. -r rtdev Specifies the device where the realtime section resides. -v Verbose output. -c subopts Change filesystem parameters - use xfs_admin. -o subopts Override default behaviour, refer to man page. -t interval Reporting interval in minutes. -d Repair dangerously. -V Reports version and exits.
本次問題雖解決,然而知其然,卻不知其所以然,后期應該重新回歸。