我的MOTD正在显示:
*** /dev/md2 will be checked for errors at next reboot *** *** /dev/md1 will be checked for errors at next reboot *** *** /dev/md3 will be checked for errors at next reboot ***
但是,标准的sudo shutdown -r now
不会检查磁盘,并且消息仍然存在。
我的猜测是,分区应该被检查,他们不是…所以我怎么能让Ubuntu在重新启动时检查分区,保持事情的美好和安全?
更新 – 这是cat /etc/fstab
的输出
proc /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /dev/md/0 none swap sw 0 0 /dev/md/1 /boot ext3 defaults 0 0 /dev/md/2 / ext4 defaults 0 0 /dev/md/3 /home ext4 defaults 0 0
更新2 – 一个消息不见了…
使用@ christianwolff的build议…
sudo rm /var/lib/update-notifier/fsck-at-reboot sudo touch /forcefsck sudo shutdown -r now
而现在这个动机已经到了
*** /dev/md1 will be checked for errors at next reboot *** *** /dev/md3 will be checked for errors at next reboot ***
因此'md2(ext4)'已经被选中并且消息被更新。
这是一个已知的错误。 你的分区似乎很好。 这只是“过时”的MOTD。 只要删除/var/lib/update-notifier/fsck-at-reboot
就没了。 有同样的问题,这解决了我的问题。
以下是关于它的一些细节: https : //bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/692355/comments/9
感谢@ cwo的build议,我已经能够清除问题。 这是Hetzner系统上的服务器 – 它以默认的Ubuntu方式进行configuration。
卸载/boot
和/home
并手动检查它们…
sudo umount /boot sudo fsck /boot
看起来文件系统在重启时没有被检查…
/dev/md1 has gone 320 days without being checked, check forced.
然后再安装完成。
sudo mount /boot
我为/home
重复了相同的过程,但必须确保没有任何服务在文件系统上运行,这将阻止umount
。
一旦完成和重新安装,我清理了消息文件,标记系统进行文件检查并重新启动。
sudo rm /var/lib/update-notifier/fsck-at-reboot sudo touch /forcefsck sudo shutdown -r now
这使系统备份所有的文件系统检查和MOTD清理。