우분투에서 입출력 오류가 발생했지만 Windows에서 데이터를 읽을 수 있습니다.

우분투에서 입출력 오류가 발생했지만 Windows에서 데이터를 읽을 수 있습니다.

Windows 10과 Ubuntu 18.04가 설치된 듀얼 부팅 노트북이 있습니다. Ubuntu가 설치되어 제대로 작동했지만 갑자기 부팅이 중단될 때까지

/dev/sda6을 읽는 동안 입출력 오류가 발생합니다.

반면에 Windows는 정상적으로 부팅되며 타사 프로그램 DiskInternals를 사용하여 Linux 파티션 /dev/sda6의 데이터에 액세스할 수도 있습니다.

Ubuntu 18.04 라이브 USB를 사용하여 Linux를 재설치하려고 시도했지만 "오류 fsyncing/closing /dev/sda 입력/출력 오류" 오류 메시지와 함께 실패합니다.

도움을 주시면 감사하겠습니다.

업데이트: --> 디스크 앱 스크린샷

출력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의 데이터에 액세스할 수도 있습니다.

이것이 문제의 근원입니다. 우분투 바이오닉은 e2fsprogs 새로운 기능을 갖춘 파일 시스템을 생성하기 때문입니다. 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을 의미합니다.

남자 e2fsck에서 복사됨

이 ext4 기능은 메타데이터 체크섬을 활성화합니다. 이 기능은 모든 파일 시스템 메타데이터(수퍼블록, 그룹 설명자 블록, inode 및 블록 비트맵, 디렉터리, 익스텐트 트리 블록)에 대한 체크섬을 저장합니다. 메타데이터 블록에 사용되는 체크섬 알고리즘은 unit_bg 기능이 있는 그룹 설명자에 사용되는 것과 다릅니다. 이 두 기능은 호환되지 않으며 uninit_bg 대신에 Metadata_csum이 우선적으로 사용됩니다.

Windows 프로그램에 액세스하는 동안 저장된 메타데이터가 변경/손상됩니다.

답변2

먼저 파일 시스템에 오류가 있는지 확인해 보겠습니다.

18.04 이상 버전의 경우...

  • Ubuntu Live DVD/USB로 부팅
  • terminal창문 을 열어
  • 유형sudo fsck -f /dev/sda6
  • 오류가 있으면 fsck 명령을 반복하십시오.
  • 유형reboot

업데이트 #1:

글쎄, 이것은 매우 이상한 HDD 문제였습니다.

결론... Windows에서는 Ubuntu sda6 파티션을 삭제하고, BIOS에서 Ubuntu 부팅 레코드를 제거하고, Ubuntu Live USB로 부팅하고, Ubuntu를 다시 설치하고, 데이터를 복원했습니다. 모든 것이 다시 작동합니다!

관련 정보