themaddoctor / linux-mybook-tools

tools for opening some encrypted WD My Book drives in linux
GNU General Public License v3.0
183 stars 26 forks source link

Unable to mount WD Mybook essential 2TB mount: /mnt/wd: wrong fs type, bad option, bad superblock error #75

Open varunck opened 3 years ago

varunck commented 3 years ago

Hi Themaddoctor, Many thanks for writing the code to help others. I would like to ask your help. I have a WD Mybook essential 2TB drive which suddenly started hanging in the middle of file browsing . All my life work on this drive. It was attached to a windows PC. On reboot, Windows kept prompting me to format the drive but ignored it. I did not format the drive. I was using WD smartware for windows to sync files onto the Mybook drive without any password. I wasn't aware my device hardware encrypted until i removed it from the enclosure. I am now trying to decrypt the drive on a ubunto20.4 VM. I am having problem in the very last step of the PDF when mounting the drive with or without loop device.

My drive details are below:

​Model Number: WD My Book 1140 
MY BOOK 2TB UK 31-Aug-2014
P/N WDBACW0020HBK-01 0413B
WD Mybook essential 2TB drive has JMS538S chip
​Controler card:4061-705094-001 Rev AD

I am getting below error on when mounting the drive.

lvbox1:/myWD$ sudo file -sL /dev/mapper/wd
/dev/mapper/wd: DOS/MBR boot sector MS-MBR XP english at offset 0x12c "Invalid partition table" at offset 0x144 "Error loading operating system" at offset 0x163 "Missing operating system", disk signature 0x21365; partition 1 : ID=0x7, start-CHS (0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 3906961408 sectors
lvbox1:/myWD$ sudo kpartx -a /dev/mapper/wd
lvbox1:/myWD$ sudo mkdir -p /mnt/wd
lvbox1:/myWD$ sudo mount /dev/mapper/wd1 /mnt/wd
mount: /mnt/wd: wrong fs type, bad option, bad superblock on /dev/mapper/wd1, missing codepage or helper program, or other error.
lvbox1:/myWD$ sudo file -s /dev/sdb
/dev/sdb: data
lvbox1:/myWD$ sudo dd if=/dev/sdb skip=2048 count=16 | file -
16+0 records in
16+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.000141375 s, 57.9 MB/s
/dev/stdin: data
lvbox1:/myWD$ sudo file -s /dev/mapper/wd
/dev/mapper/wd: symbolic link to ../dm-2
lvbox1:/myWD$ sudo dd if=/dev/mapper/wd skip=2048 count=16 | file -
16+0 records in
16+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00934197 s, 877 kB/s
/dev/stdin: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS    ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 2048, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/track 63, sectors 3906961407, $MFT start cluster 786432, $MFTMirror start cluster 2, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 0c6b04293b0428a3f; contains bootstrap BOOTMGR
lvbox1:/myWD$ sudo losetup -j /dev/mapper/wd
/dev/loop10: [0005]:505 (/dev/dm-2), offset 1048576
lvbox1:/myWD$ sudo mkdir -p /mnt/wd
lvbox1:/myWD$ sudo mount /dev/loop10 /mnt/wd
mount: /mnt/wd: wrong fs type, bad option, bad superblock on /dev/loop10, missing codepage or helper program, or other error.

My sector 2048 dump is below:

lvbox1:/myWD$ sudo dd if=/dev/sdb skip=2048 count=1 | hexdump -C
1+0 records in
1+0 records out
512 bytes copied, 3.3321e-05 s, 15.4 MB/s
00000000  f1 db d0 5b 86 f6 9c ee  5f c1 cb 40 ef 63 6c bc  |...[...._..@.cl.|
00000010  f0 5a c0 fa e6 5a 5f e9  4d 2c c3 3e 4c ec e4 87  |.Z...Z_.M,.>L...|
00000020  2a 7c 0c 36 75 49 5a 0d  a6 12 04 b2 0d 6b 35 b3  |*|.6uIZ......k5.|
00000030  1a 7f ab b6 db 37 46 f4  f6 17 b6 1f ec c4 3c a6  |.....7F.......<.|
00000040  31 63 a7 bc ad b8 7a b9  d1 a5 3a 06 21 34 a0 9a  |1c....z...:.!4..|
00000050  b0 3a 39 d7 fe 73 bd 39  5a 7c 75 8d 62 89 9f 48  |.:9..s.9Z|u.b..H|
00000060  5f 25 83 93 2b 15 42 42  b6 f0 d4 b4 33 76 ba 5a  |_%..+.BB....3v.Z|
00000070  f0 20 65 c6 7b 81 47 3b  7e d7 1e 68 b2 40 17 7f  |. e.{.G;~..h.@..|
00000080  39 7f 29 d7 e2 0a ea b9  e6 08 2b e8 ad 68 47 f9  |9.).......+..hG.|
00000090  cd 36 ef b8 5c b1 c5 88  87 5b 55 6c a7 c2 5f 1a  |.6..\....[Ul.._.|
000000a0  37 63 08 4f e0 30 32 c4  24 ff 51 ed 33 24 9b d1  |7c.O.02.$.Q.3$..|
000000b0  b0 78 95 e2 b8 57 06 9f  5f 46 74 46 a9 5c 6f 91  |.x...W.._FtF.\o.|
000000c0  d0 b7 d3 e5 8d 23 e1 c5  18 7f df fd ef 51 8e 94  |.....#.......Q..|
000000d0  ac b6 be a8 47 f6 8f fe  b9 a2 2a f6 51 dc 8d ed  |....G.....*.Q...|
000000e0  9a d3 13 fc a4 86 02 16  a4 89 f9 16 3d 2d ba 82  |............=-..|
000000f0  77 9f 06 94 37 55 bf 83  5d d9 53 0f a1 9c 28 72  |w...7U..].S...(r|
00000100  b7 81 67 e9 fb 8a 4e 9f  25 a4 92 08 21 7e fd a6  |..g...N.%...!~..|
00000110  7c 5b 80 47 19 9f b2 00  97 dc c5 c1 ba 46 ae 4f  ||[.G.........F.O|
00000120  9f 52 f8 33 c7 91 12 49  96 79 72 5e 69 58 79 36  |.R.3...I.yr^iXy6|
00000130  dc ce ae 0b 85 24 19 b4  39 e5 98 61 73 23 ee 6b  |.....$..9..as#.k|
00000140  d5 8b f0 b2 b0 20 87 4c  84 15 2d 47 5c bc a7 92  |..... .L..-G\...|
00000150  80 13 9c 3e c9 07 5f ad  bf ef d1 70 40 36 24 0a  |...>.._....p@6$.|
00000160  68 80 88 31 49 e0 bc a6  d7 5d 38 63 0f cf f4 d8  |h..1I....]8c....|
00000170  d2 cd f5 19 5b 03 db 49  03 93 5c c9 76 8b 3a 5b  |....[..I..\.v.:[|
00000180  0b bf e8 e0 35 a0 3f e2  2f 08 ce 1b 00 72 15 e1  |....5.?./....r..|
00000190  80 d0 bb 3c 3a 43 7e d2  f9 cb 52 db 79 e6 0f 51  |...<:C~...R.y..Q|
000001a0  b6 28 c7 62 93 09 e0 c4  0a 2c 08 69 21 b5 63 3b  |.(.b.....,.i!.c;|
000001b0  54 19 5f 79 17 0c d3 77  04 ff c1 25 c6 01 f4 69  |T._y...w...%...i|
000001c0  c7 5b 3e 1e 73 f7 53 c3  52 61 87 e3 00 da d9 f2  |.[>.s.S.Ra......|
000001d0  c3 52 b1 3c 73 16 55 db  60 d9 96 dd f3 4f eb ae  |.R.<s.U.`....O..|
000001e0  62 06 8b 91 7e 44 95 a7  07 00 c8 a1 f0 7c 24 09  |b...~D.......|$.|
000001f0  a0 0d 92 c0 ce 51 c4 63  17 d6 e3 60 5e 4d 32 ad  |.....Q.c...`^M2.|
00000200

My dek is below:

lvbox1:/myWD$ cat dek.hex
d64298884b1541d340dbbb21c52e103b9233d859b63a2f3ddde2709836a78e86

Any help is greatly appreciated. Thank you.

themaddoctor commented 3 years ago

When I decrypted your sector 2048 with your DEK, I get the following. It looks like an NTFS filesystem. Maybe you need to install the NTFS driver. It is called ntfs-3g.

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 7f df e8 00 00 00 00  |................|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  3f 8a 42 b0 93 42 b0 c6  |........?.B..B..|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 01 90 90 66 60 1e  |(........_...f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 4f 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BOOTMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
varunck commented 3 years ago

Hi,

Thanks for the quick response. I have also tried using ntfs drivers but no joy. I get below errors. I am totally lost please help.  

lvbox1:/myWD$ cat /proc/partitions
major minor  #blocks  name

   7        0      56768 loop0
   7        1     224248 loop1
   7        2     224256 loop2
   7        3      66324 loop3
   7        4      52268 loop4
   7        5      56772 loop5
   7        6      66660 loop6
   7        7      52180 loop7
  11        0    1048575 sr0
   8        0   20480000 sda
   8        1     524288 sda1
   8        2          1 sda2
   8        5   19953664 sda5
   8       16 1953514584 sdb
   7        8      33076 loop8
   7        9      33072 loop9
   7       10 1953513560 loop10
 253        0 1953514584 dm-0
 253        1 1953514584 dm-1
 253        2 1953514584 dm-2
 253        3 1953480704 dm-3
lvbox1:/myWD$ lsblk
NAME          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
loop0           7:0    0 55.4M  1 loop  /snap/core18/2128
loop1           7:1    0  219M  1 loop  /snap/gnome-3-34-1804/66
loop2           7:2    0  219M  1 loop  /snap/gnome-3-34-1804/72
loop3           7:3    0 64.8M  1 loop  /snap/gtk-common-themes/1514
loop4           7:4    0   51M  1 loop  /snap/snap-store/518
loop5           7:5    0 55.5M  1 loop  /snap/core18/2074
loop6           7:6    0 65.1M  1 loop  /snap/gtk-common-themes/1515
loop7           7:7    0   51M  1 loop  /snap/snap-store/547
loop8           7:8    0 32.3M  1 loop  /snap/snapd/12883
loop9           7:9    0 32.3M  1 loop  /snap/snapd/12704
loop10          7:10   0  1.8T  0 loop
sda             8:0    0 19.5G  0 disk
├─sda1          8:1    0  512M  0 part  /boot/efi
├─sda2          8:2    0    1K  0 part
└─sda5          8:5    0   19G  0 part  /
sdb             8:16   0  1.8T  0 disk
└─wd-layer1   253:0    0  1.8T  0 crypt
  └─wd-layer2 253:1    0  1.8T  0 crypt
    └─wd      253:2    0  1.8T  0 crypt
      └─wd1   253:3    0  1.8T  0 part
sr0            11:0    1 1024M  0 rom

lvbox1:/myWD$ sudo mount -t ntfs-3g /dev/loop10 /mnt/wd
Error reading $MFT: Input/output error
Failed to load $MFT: Input/output error
Failed to mount '/dev/loop10': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
lvbox1:/myWD$ sudo mount -t ntfs-3g /dev/mapper/wd1 /mnt/wd
Error reading $MFT: Input/output error
Failed to load $MFT: Input/output error
Failed to mount '/dev/mapper/wd1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
lvbox1:/myWD$  sudo losetup -j /dev/mapper/wd
[sudo] password for varunsu:
/dev/loop10: [0005]:505 (/dev/dm-2), offset 1048576

I have used offset 1048576 when creating the loop device. Is there a way to confirm this is correct for my device?

themaddoctor commented 3 years ago

Dump the sector 0 so I can look at the partition table.

varunck commented 3 years ago

Thanks Doc. My device sector 0 dump is below

lvbox1:/myWD$ sudo dd if=/dev/sdb count=1 | hexdump -C
00000000  f2 65 6e 0f 63 6d 07 bb  cb 69 22 c9 61 10 37 76  |.en.cm...i".a.7v|
00000010  b7 78 6a 21 9d fe 3e 8c  4e 2f 8e 2d 5e 32 4c 6e  |.xj!..>.N/.-^2Ln|
00000020  f0 5a ff 5f 6e 50 ec 3b  49 5b 44 07 9b f1 cd 58  |.Z._nP.;I[D....X|
00000030  93 48 7f 2f 37 26 8c 22  c5 07 8f 72 85 c1 a0 fe  |.H./7&."...r....|
00000040  03 e7 fd 70 46 c4 df 4c  2e b9 ce 4d 92 87 a6 e5  |...pF..L...M....|
00000050  84 16 46 32 bd 3f 82 ef  bc 30 78 6e 29 4b 52 39  |..F2.?...0xn)KR9|
00000060  39 a4 38 71 0e 29 ef 19  0f 06 c6 4a eb c9 bc 4e  |9.8q.).....J...N|
00000070  85 ad dc 1d e1 d6 34 8c  e2 13 1c 45 80 dc 23 c9  |......4....E..#.|
00000080  46 44 da 4e a2 09 c8 89  bb 0f 33 6f 4a a9 a1 a4  |FD.N......3oJ...|
00000090  1e b2 94 f7 e3 64 88 ae  43 ef 6a f2 05 a9 e0 2b  |.....d..C.j....+|
000000a0  5a 0a 0a 93 bf 67 ac 7a  a2 93 4f ea c6 a5 e5 d5  |Z....g.z..O.....|
000000b0  e5 55 46 9e 57 d7 50 39  a2 28 00 be 84 00 c8 2a  |.UF.W.P9.(.....*|
000000c0  dc 65 b0 b1 0e 1e 30 6a  2d 7a f6 15 7f 31 28 f0  |.e....0j-z...1(.|
000000d0  be 65 4e ed 53 52 59 00  f7 f4 d9 2b 9d 58 1b dd  |.eN.SRY....+.X..|
000000e0  29 9e 62 e0 57 12 b6 15  84 10 79 d5 0e a2 cf 6c  |).b.W.....y....l|
000000f0  1f c0 84 e9 12 9b d7 53  b2 e4 c3 80 79 5b f9 b5  |.......S....y[..|
00000100  94 61 84 44 c9 fa d8 d1  7b bf 68 4d 01 33 3e c8  |.a.D....{.hM.3>.|
00000110  21 af 20 37 64 17 e1 4c  11 d0 90 91 e2 7d 1b 13  |!. 7d..L.....}..|
00000120  47 73 32 18 a4 b7 6a 73  f4 33 4a f9 ad be b7 7d  |Gs2...js.3J....}|
00000130  91 fb 05 9d ae 4e 01 ea  28 6c 25 d4 74 39 91 c9  |.....N..(l%.t9..|
00000140  f0 87 8b e5 b9 35 b6 2f  43 31 6c c0 4f 9e 20 e3  |.....5./C1l.O. .|
00000150  c1 2f 07 e9 d1 97 35 5b  d7 69 ff 71 04 f0 65 23  |./....5[.i.q..e#|
00000160  f5 ca c2 9a 96 19 fc a1  ce e4 d4 99 59 70 15 4a  |............Yp.J|
00000170  52 56 a1 7d 63 4b 93 ea  35 6e 80 d3 06 09 c7 a4  |RV.}cK..5n......|
00000180  d3 fa e8 78 5f e9 ed 13  0a 75 b7 bd 4b 0a 25 29  |...x_....u..K.%)|
*
000001b0  49 dd 49 15 08 13 c6 94  34 16 27 22 01 78 5b 23  |I.I.....4.'".x[#|
000001c0  a7 29 b5 ba cd 23 aa df  b8 6b a7 e4 4d 30 9d 52  |.)...#...k..M0.R|
000001d0  d3 fa e8 78 5f e9 ed 13  0a 75 b7 bd 4b 0a 25 29  |...x_....u..K.%)|
*
000001f0  b1 37 22 05 26 06 a5 67  58 dd ab d8 95 50 af 05  |.7".&..gX....P..|
1+0 records in
1+0 records out
512 bytes copied, 0.000489926 s, 1.0 MB/s
00000200
themaddoctor commented 3 years ago

Everything looks fine with the partition table (there is only the one partition).

I suggest you use ddrescue or dd_rescue to copy /dev/mapper/wd onto a blank 2TB disk, then ask Windows to fix the new disk.

Disk varunck-2TB-JMS538S-sector0-decrypted.bin: 512 B, 512 bytes, 1 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00021365

Device                                     Boot Start        End     Blocks  Id System
varunck-2TB-JMS538S-sector0-decrypted.bin1       2048 3906963455 1953480704   7 HPFS/NTFS/exFAT
varunck commented 3 years ago

Thank you. I have ordered new disk to copy the /dev/mapper/wd. I will give this a try.

varunck commented 3 years ago

Hi,

I have tried to create an image onto my new drive but ddrescue is hanging with source as /dev/mapper/wd or /dev/sdb. I tried with or without mounting the fs but no joy. Only way to kill/interrupt the ddrescue is to power down the VM.

lvbox1:/myWD$ sudo ddrescue -v -d -r 2 -c 128 /dev/mapper/wd /media/varunsu/"TOSHIBA EXT"/WD2TB/my2tbimage.img ddrescue21Sep2.log
[sudo] password for varunsu:
GNU ddrescue 1.23
About to copy 2000 GBytes from '/dev/mapper/wd' to '/media/varunsu/TOSHIBA EXT/WD2TB/my2tbimage.img'
    Starting positions: infile = 0 B,  outfile = 0 B
    Copy block size: 128 sectors       Initial skip size: 39168 sectors
Sector size: 512 Bytes

Press Ctrl-C to interrupt
     ipos:  827326 kB, non-trimmed:        0 B,  current rate:  51838 kB/s
     opos:  827326 kB, non-scraped:        0 B,  average rate:  51707 kB/s
non-tried:    1999 GB,  bad-sector:        0 B,    error rate:       0 B/s
  rescued:  827326 kB,   bad areas:        0,        run time:         16s
pct rescued:    0.04%, read errors:        0,  remaining time:     10h 44m
                              time since last successful read:          0s
Copying non-tried blocks... Pass 1 (forwards)

I see below sector errors in system logs when ddrescue starts then it hangs for hours without any update to image file or screen log:

[Tue Sep 21 16:19:22 2021] rev16: loading out-of-tree module taints kernel.
[Tue Sep 21 16:19:22 2021] rev16: module verification failed: signature and/or required key missing - tainting kernel
[Tue Sep 21 16:21:15 2021] loop10: detected capacity change from 0 to 3907029168
[Tue Sep 21 16:21:15 2021] loop10: detected capacity change from 3907029168 to 3907027120
[Tue Sep 21 16:21:18 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=2s
[Tue Sep 21 16:21:18 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 16:21:18 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 16:21:18 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 16:21:18 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[Tue Sep 21 16:21:21 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 16:21:21 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 16:21:21 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 16:21:21 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00

I checked system logs ..even just creating loop device before mounting /dev/mapper/wd gives me errors. Any idea?

[Tue Sep 21 19:19:45 2021] audit: type=1400 audit(1632248383.831:71): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.snap-store" pid=2017 comm="apparmor_parser"
[Tue Sep 21 19:26:37 2021] rev16: loading out-of-tree module taints kernel.
[Tue Sep 21 19:26:37 2021] rev16: module verification failed: signature and/or required key missing - tainting kernel
[Tue Sep 21 19:31:09 2021] loop5: detected capacity change from 0 to 3907029168
[Tue Sep 21 19:31:09 2021] loop5: detected capacity change from 3907029168 to 3907027120
[Tue Sep 21 19:31:12 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:12 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:12 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:12 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:12 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[Tue Sep 21 19:31:15 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:15 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:15 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:15 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:15 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:15 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:15 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[Tue Sep 21 19:31:18 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:18 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:18 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:18 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:18 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:18 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:18 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:18 2021] Buffer I/O error on dev loop5, logical block 786432, async page read
[Tue Sep 21 19:31:22 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:22 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:22 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:22 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:22 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:22 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:22 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[Tue Sep 21 19:31:25 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:25 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:25 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:25 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:25 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:25 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:25 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:25 2021] Buffer I/O error on dev loop5, logical block 786432, async page read
[Tue Sep 21 19:31:28 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:28 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:28 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:28 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:28 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:28 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:28 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[Tue Sep 21 19:31:31 2021] sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[Tue Sep 21 19:31:31 2021] sd 4:0:0:0: [sdb] tag#0 Sense Key : Medium Error [current]
[Tue Sep 21 19:31:31 2021] sd 4:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read error
[Tue Sep 21 19:31:31 2021] sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 60 08 00 00 00 08 00
[Tue Sep 21 19:31:31 2021] blk_update_request: critical medium error, dev sdb, sector 6293504 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:31 2021] Buffer I/O error on dev dm-2, logical block 786688, async page read
[Tue Sep 21 19:31:31 2021] blk_update_request: I/O error, dev loop5, sector 6291456 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Tue Sep 21 19:31:31 2021] Buffer I/O error on dev loop5, logical block 786432, async page read

I am clue less at the moment what do. Please advice. Thank you.

themaddoctor commented 3 years ago

Sorry, I can't help you with hardware failures.