如何解决dd读取错误?

如何解决dd读取错误?

我有 dd 读取错误

# sudo dd if=/dev/sda1 of=backup.img bs=4M status=progress
16478679040 bytes (16 GB, 15 GiB) copied, 154 s, 107 MB/s
dd: error reading '/dev/sda1': Input/output error
3928+1 records in
3928+1 records out
16478679040 bytes (16 GB, 15 GiB) copied, 156.816 s, 105 MB/s

我认为这可能意味着磁盘有坏块。我跑了

# e2fsck -cfpv -C 0 /dev/sda1
/dev/sda1: Updating bad block inode.

      700895 inodes used (3.66%, out of 19144704)
        2596 non-contiguous files (0.4%)
        1226 non-contiguous directories (0.2%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 638434/974/3
     9995951 blocks used (13.05%, out of 76571648)
           1 bad block
           3 large files

      515535 regular files
      117354 directories
          57 character device files
          26 block device files
           0 fifos
         284 links
       67853 symbolic links (61332 fast symbolic links)
          61 sockets
------------
      701170 files

它显然修复了不重要的问题dd。如何解决需要的问题?

相关内容