I'm trying to read old IDE disks through an USB adapter on my Linux Mint machine. One issues a "Can't read superblock on /dev/sdb1" when I try to mount it. I use dumpe2fs to get the superblock :
sudo dumpe2fs /dev/sdb1 | grep superblock [sudo] password for mc: dumpe2fs 1.47.0 (5-Feb-2023) Primary superblock at 0, Group descriptors at 1-1 Backup superblock at 32768, Group descriptors at 32769-32769 Backup superblock at 98304, Group descriptors at 98305-98305 Backup superblock at 163840, Group descriptors at 163841-163841 Backup superblock at 229376, Group descriptors at 229377-229377 Backup superblock at 294912, Group descriptors at 294913-294913 Backup superblock at 819200, Group descriptors at 819201-819201 Backup superblock at 884736, Group descriptors at 884737-884737 Backup superblock at 1605632, Group descriptors at 1605633-1605633 Backup superblock at 2654208, Group descriptors at 2654209-2654209 That gives me the value needed : 32768 Then I can use it to perform a fsckcommand:
sudo fsck -b 32768 /dev/sdb1 fsck from util-linux 2.39.3 e2fsck 1.47.0 (5-Feb-2023) /dev/sdb1 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Inode 10642 extent tree (at level 1) could be shorter. Optimize<y>? yes Pass 1E: Optimizing extent trees Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong for group #0 (23866, counted=1085). Fix<y>? yes Free blocks count wrong for group #1 (32080, counted=317). Fix<y>? yes Free blocks count wrong for group #2 (32768, counted=1008). [long list of messages] Directories count wrong for group #82 (0, counted=621). Fix? yes Free inodes count wrong (703125, counted=430832). Fix? yes Padding at end of inode bitmap is not set. Fix? yes Error writing file system info: Remote I/O error /dev/sdb1: ***** FILE SYSTEM WAS MODIFIED ***** Last but one message states "Error writing file system info: Remote I/O error", and the disk is not repaired.
Could anyone help me with this issue? I can't figure it out. Is it due to the fact that I use an USB adapter? Is the issue related to some (un)fixable condition of the disk?
Best regards, MC