在启动 Ubuntu 16.04 时,我第一次收到以下消息。该消息显示了 2 次,并且启动速度比平时慢很多。问题是什么?为什么会发生这种情况?
/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 49910977 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49909604 (uid=1000, gid=1000, mode=0100664, size=32768)
/dev/sda1: Clearing orphaned inode 49909603 (uid=1000, gid=1000, mode=0100600, size=31780)
/dev/sda1: Clearing orphaned inode 49909500 (uid=1000, gid=1000, mode=0100640, size=85)
/dev/sda1: Clearing orphaned inode 49918132 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49917725 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49917436 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49909685 (uid=1000, gid=1000, mode=0100600, size=262144)
/dev/sda1: Clearing orphaned inode 3939849 (uid=1000, gid=1000, mode=0100664, size=8192)
/dev/sda1: Clearing orphaned inode 49909471 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49909480 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: Clearing orphaned inode 49905527 (uid=1000, gid=1000, mode=0100664, size=16773)
/dev/sda1: clean, 333655/60911568 files, 7757819/243171328 blocks
答案1
上次关机时磁盘未正确卸载,可能是因为您切断了电源而不是正常关机。关机时待处理的 io 必须从日志中重放,并且文件系统中剩余的 inode 和数据块必须清除。