Linux
Ext4 錯誤和磁碟重新安裝為只讀
有時我有一個錯誤 ext4,我的磁碟變成只讀的。
我可以通過重新啟動來修復它,
fcsk /dev/sda2
但它總是會回來……這裡有一些
dmesg
:[ 3160.692730] perf: interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 79500 [ 3631.408303] perf: interrupt took too long (3144 > 3136), lowering kernel.perf_event_max_sample_rate to 63500 [ 4143.729000] perf: interrupt took too long (3992 > 3930), lowering kernel.perf_event_max_sample_rate to 50000 [ 4770.574303] perf: interrupt took too long (5018 > 4990), lowering kernel.perf_event_max_sample_rate to 39750 [ 5334.077445] perf: interrupt took too long (6289 > 6272), lowering kernel.perf_event_max_sample_rate to 31750 [ 8241.921553] acer_wmi: Unknown function number - 8 - 1 [11370.110956] perf: interrupt took too long (7918 > 7861), lowering kernel.perf_event_max_sample_rate to 25250 [11484.098212] acer_wmi: Unknown function number - 8 - 0 [11875.568601] EXT4-fs error (device sda2): ext4_iget:4862: inode #92441: comm TaskSchedulerFo: bad extra_isize 9489 (inode size 256) [11875.575273] Aborting journal on device sda2-8. [11875.575537] EXT4-fs error (device sda2) in ext4_da_write_end:3209: IO failure [11875.575976] EXT4-fs (sda2): Remounting filesystem read-only [11875.576792] EXT4-fs error (device sda2): ext4_journal_check_start:61: Detected aborted journal [11875.577612] EXT4-fs error (device sda2): ext4_iget:4862: inode #92441: comm TaskSchedulerFo: bad extra_isize 9489 (inode size 256) [11875.583499] EXT4-fs error (device sda2): ext4_iget:4862: inode #92441: comm TaskSchedulerFo: bad extra_isize 9489 (inode size 256) [11875.832886] EXT4-fs error (device sda2): ext4_iget:4862: inode #92441: comm TaskSchedulerFo: bad extra_isize 9489 (inode size 256) [11899.686408] systemd-journald[395]: Failed to write entry (21 items, 614 bytes), ignoring: Read-only file system [11899.686483] systemd-journald[395]: Failed to write entry (21 items, 705 bytes), ignoring: Read-only file system [11899.686587] systemd-journald[395]: Failed to write entry (21 items, 614 bytes), ignoring: Read-only file system [11899.686656] systemd-journald[395]: Failed to write entry (21 items, 705 bytes), ignoring: Read-only file system [11899.686719] systemd-journald[395]: Failed to write entry (21 items, 614 bytes), ignoring: Read-only file system [11899.686781] systemd-journald[395]: Failed to write entry (21 items, 705 bytes), ignoring: Read-only file system [11899.686844] systemd-journald[395]: Failed to write entry (21 items, 614 bytes), ignoring: Read-only file system [11899.686938] systemd-journald[395]: Failed to write entry (21 items, 705 bytes), ignoring: Read-only file system [11899.686999] systemd-journald[395]: Failed to write entry (21 items, 614 bytes), ignoring: Read-only file system [11899.687084] systemd-journald[395]: Failed to write entry (21 items, 705 bytes), ignoring: Read-only file system
我的
/etc/fstab
:UUID=9c882ba5-b980-4f7d-dd02-cd0a1831ab1a / ext4 errors=remount-ro 0 1 UUID=0E37-D0A2 /boot/efi vfat umask=0077 0 1 /swapfile none swap sw 0 0
我應該刪除或更改
remount-ro
並fstab
忽略此錯誤嗎?如何修復/避免此錯誤?
你能檢查你的磁碟是否有壞扇區或壞塊嗎?您可以使用badblocks或smartctl命令檢查 linux,我認為壞磁碟是您問題的唯一原因。