我正在使用一个相当新的三星 EVO 250GB SSD 运行 Xubuntu。最近我的根文件系统进入了只读模式,我需要帮助来排除故障。
这些都是错误(还有更多,基本上不需要写入文件系统的任何内容)
mktemp: failed to create file via template ‘/tmp/david/virtualenvwrapper-initialize-hook-XXXXXXXXXX’: Read-only file system
touch: cannot touch ‘’: No such file or directory
ERROR: virtualenvwrapper could not create a temporary file name.
zsh: locking failed for /home/david/.zhistory: read-only file system: reading anyway
以下是一些 dmesg 日志:
[264394.925883] EXT4-fs error (device sda7): ext4_mb_free_metadata:4588: group 100, block 3305968:Block already on to-be-freed list
[264394.925952] EXT4-fs error (device sda7) in ext4_free_blocks:4879: Journal has aborted
[264394.925958] EXT4-fs error (device sda7) in ext4_reserve_inode_write:4752: Journal has aborted
[264394.926012] EXT4-fs error (device sda7): ext4_journal_check_start:56: Detected aborted journal
[264394.926061] EXT4-fs error (device sda7) in ext4_reserve_inode_write:4752: Journal has aborted
[264394.926104] EXT4-fs error (device sda7) in ext4_reserve_inode_write:4752: Journal has aborted
[264394.926146] EXT4-fs error (device sda7): ext4_journal_check_start:56: Detected aborted journal
[264394.926154] EXT4-fs error (device sda7) in ext4_ext_remove_space:3048: Journal has aborted
[264394.926201] EXT4-fs error (device sda7) in ext4_ext_truncate:4669: Journal has aborted
[264394.926251] EXT4-fs error (device sda7) in ext4_reserve_inode_write:4752: Journal has aborted
[264394.926292] EXT4-fs error (device sda7) in ext4_truncate:3648: Journal has aborted
[264394.926335] EXT4-fs error (device sda7) in ext4_reserve_inode_write:4752: Journal has aborted
[264483.167154] EXT4-fs error (device sda7): ext4_remount:4888: Abort forced by user
我通常可以通过重新启动几次来解决问题。
我需要以下两样东西之一:
- 证明 SSD 有故障,这样我就可以退货。
- 找到问题。
此外,如果相关的话,我也在 SSD 上双启动 Windows 10。
答案1
当我遇到这个问题时,我的问题是,可以访问同一驱动器的 Windows 双启动没有完全关闭 - 尽管单击关闭,它还是进入一种睡眠状态,从而保持对磁盘的编辑锁定。
shutdown /s
从 Windows 命令提示符执行正确关机 - 这里有关于如何关闭快速启动选项的教程: