我总是在启动时暂停,提示正在检查文件系统(还带有“按 C 取消”提示)。实际上(看到boot.log
)我认为是/
fs,它位于/dev/sdb5
总共有几个问题(希望这不会违反任何规则):
- 这是正常的吗?
- 我能(或者我应该)无论如何阻止这种情况发生吗?
- 根据 boot.log(见下文),文件系统似乎不“干净”,或者至少处于一种状态或情况,导致 fsck 总是会在一段时间内(仅几秒钟)发现错误。我该如何修复它?
编辑:这是我的 boot.log:
fsck desde util-linux-ng 2.17.2
udevd[515]: can not read '/etc/udev/rules.d/z80_user.rules'
/dev/sdb5: 249045/32841728 ficheros (0.3% no contiguos), 20488485/131338752 bloques
init: ureadahead-other main process (1111) terminated with status 4
init: ureadahead-other main process (1116) terminated with status 4
Password: * Starting AppArmor profiles [160G Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
[154G[ OK ]
* Setting sensors limits [160G
[154G[ OK ]
这是正在检查的文件系统的 dumpe2fs 结果(嗯,日志的相关部分):
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: 42509bf9-f3e6-460a-8947-ec0f5c1fbcc8
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 32841728
Block count: 131338752
Reserved block count: 6566937
Free blocks: 110850356
Free inodes: 32592701
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 992
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Fri Dec 10 19:44:15 2010
Last mount time: Mon Feb 14 17:00:02 2011
Last write time: Mon Feb 14 16:59:45 2011
Mount count: 1
Maximum mount count: 33
Last checked: Mon Feb 14 16:59:45 2011
Check interval: 15552000 (6 months)
Next check after: Sat Aug 13 17:59:45 2011
Lifetime writes: 331 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 28049496
Default directory hash: half_md4
Directory Hash Seed: d3d24459-514b-4413-b840-e970b766095b
Journal backup: inode blocks
Journal features: journal_incompat_revoke
Tamaño de fichero de transacciones: 128M
Journal length: 32768
Journal sequence: 0x0005e0c4
Journal start: 1
这是我的/etc/fstab
文件:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sdb5 :
UUID=42509bf9-f3e6-460a-8947-ec0f5c1fbcc8 / ext4 errors=remount-ro 0 1
#Entry for /dev/sdb1 :
UUID=685EC6355EC5FC36 /media/DATOS ntfs defaults,user 0 0
#Entry for /dev/sda2 :
UUID=6A366B05366AD21D /media/W7 ntfs defaults,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077,fmask=0177 0 0
#Entry for /dev/sdb6 :
UUID=66aa7f93-4c89-4118-af47-fdaa78db8f22 none swap sw 0 0
#Lector de tarjetas impresora
//192.168.85.77/Memory_Card /media/HP smbfs defaults 0 0
答案1
也许您没有让它完成。这是每 30 次启动一次的计划过程。检查 Linux 文件系统。您可以通过以下方式启动此过程:
shutdown -rF now
这将重新启动并开始检查。
通过运行编辑检查:
gksu gedit /etc/fstab
每个安装行的最后一位数字控制 fsck。如果要禁用 fsck,请将值设置为 0。例如:
/dev/hda1 /media/window_c vfat defaults 0 0
答案2
输出一切看起来都正常...:P
您还可以尝试另外两件事:
- 检查
/forcefsck
系统上是否存在某个文件; - 启动 LiveCD 并强制检查分区,例如使用
GParted
→ 分区 → 检查。