ubuntu 中输入/输出错误,但可以从 windows 读取数据

ubuntu 中输入/输出错误,但可以从 windows 读取数据

我有一台双启动笔记本电脑,装有 Windows 10 和 Ubuntu 18.04。Ubuntu 安装后运行良好,直到突然停止启动

读取 /dev/sda6 时出现输入/输出错误。

另一方面,Windows 正常启动,我甚至可以使用第三方程序 DiskInternals 访问我的 Linux 分区 /dev/sda6 上的数据。

我尝试使用 Ubuntu 18.04 live USB 重新安装 Linux,但失败并显示错误消息“error fsyncing/closing /dev/sda input/output error”

任何帮助都将受到赞赏。

更新:--> 磁盘应用程序的屏幕截图

输出grep -i sda6 /var/log/syslog*

ubuntu@ubuntu:~$ grep -i sda6 /var/log/syslog
Jun 25 01:42:08 ubuntu lvm[1097]:   /dev/sda6: read failed after 0 of 4096 at 220201943040: Input/output error
Jun 25 01:42:08 ubuntu lvm[1097]:   /dev/sda6: read failed after 0 of 4096 at 220202000384: Input/output error
Jun 25 01:42:08 ubuntu lvm[1097]:   /dev/sda6: read failed after 0 of 4096 at 0: Input/output error
Jun 25 01:42:08 ubuntu lvm[1097]:   /dev/sda6: read failed after 0 of 4096 at 4096: Input/output error
Jun 25 01:42:08 ubuntu kernel: [    7.481627]  sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
Jun 25 01:42:08 ubuntu kernel: [   10.124131] EXT4-fs (sda6): INFO: recovery required on readonly filesystem
Jun 25 01:42:08 ubuntu kernel: [   10.124133] EXT4-fs (sda6): write access will be enabled during recovery
Jun 25 01:42:08 ubuntu kernel: [  147.204149] EXT4-fs (sda6): error loading journal
Jun 25 01:42:10 ubuntu kernel: [  158.444325] Buffer I/O error on dev sda6, logical block 53760240, async page read
Jun 25 01:42:39 ubuntu kernel: [  186.822855] Buffer I/O error on dev sda6, logical block 53760240, async page read

输出fsck /dev/sda6

fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext2: Input/output error while trying to open /dev/sda6

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

答案1

另一方面,Windows 正常启动,我甚至可以使用第三方程序 DiskInternals 访问我的 Linux 分区 /dev/sda6 上的数据。

这是问题的根源。因为 ubuntu bionice2fsprogs 创建了具有新功能的文件系统。Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum 我的意思是 metadata_csum。

从 man e2fsck 复制

此 ext4 功能可启用元数据校验和。此功能存储所有文件系统元数据(超级块、组描述符块、inode 和块位图、目录和扩展区树块)的校验和。元数据块使用的校验和算法与 uninit_bg 功能中组描述符使用的算法不同。这两个功能不兼容,将优先使用 metadata_csum,而不是 uninit_bg。

在使用 Windows 程序访问期间,它会更改/破坏此存储的元数据。

答案2

让我们首先检查您的文件系统是否有错误。

对于 18.04 或更新版本...

  • 启动至 Ubuntu Live DVD/USB
  • 打开terminal窗户
  • 类型sudo fsck -f /dev/sda6
  • 如果有错误,请重复 fsck 命令
  • 类型reboot

更新#1:

嗯,这是一个非常奇怪的硬盘问题。

底线...从 Windows 中,我们删除了 Ubuntu sda6 分区,从 BIOS 中删除了 Ubuntu 启动记录,启动到 Ubuntu Live USB,重新安装 Ubuntu,然后恢复数据。一切又恢复正常了!

相关内容