reallymine icon indicating copy to clipboard operation
reallymine copied to clipboard

WD MyBook WDBFJK0040HBK Unencrypted but unmountable

Open craftxbox opened this issue 6 years ago • 52 comments

Hello. i have a 4TB WD MyBook which i have shelled and installed into my computer as an internal hard disk. However, the disk will not mount in windows as it detected as a RAW filesystem. I have checked a small portion of the disk and the data is not encrypted in any way. Is there any way to make it so the drive will mount properly in windows again?

craftxbox avatar Apr 14 '18 00:04 craftxbox

Which small portion of the disk did you check?

themaddoctor avatar Apr 14 '18 00:04 themaddoctor

i just ran cat on the disk and looked at what it returned, also just rebooted into windows and tried testdisk and its able to read the directory structure and files

craftxbox avatar Apr 14 '18 00:04 craftxbox

I thought you said windows. Cat is a linux command.

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

could have used wsl, but i used a livecd to see if i could get a mount on another os

craftxbox avatar Apr 14 '18 01:04 craftxbox

Do this in linux: sudo fdisk -l /dev/sdX

Repace "X" with the appropriate thing for the WD disk.

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

Disk /dev/sdb: 3.7 TiB, 4000753476096 bytes, 7813971633 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xdb4bf07b

Device     Boot Start        End    Sectors Size Id Type
/dev/sdb1  *     2048 4294969342 4294967295   2T  7 HPFS/NTFS/exFAT
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sdb1
Disk /dev/sdb1: 2 TiB, 2199023255040 bytes, 4294967295 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x69205244

Device      Boot      Start        End    Sectors   Size Id Type
/dev/sdb1p1       218129509 1920119918 1701990410 811.6G 72 unknown
/dev/sdb1p2       729050177 1273024900  543974724 259.4G 74 unknown
/dev/sdb1p3       168653938  168653938          0     0B 65 Novell Netware 386
/dev/sdb1p4      2692939776 2692991410      51635  25.2M  0 Empty

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition table entries are not in disk order.

craftxbox avatar Apr 14 '18 01:04 craftxbox

note: with the usb3 board on the drive and it connected to the computer there is only one ntfs partition spanning the entire drive

craftxbox avatar Apr 14 '18 01:04 craftxbox

That's because the parts with the WD software are hidden until you remove the board.

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

That's weird that sdb1 looks also partitioned. Do this:

sudo file -s /dev/sdb1

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

/dev/sdb1: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS ", Bytes/sector 4096, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 256, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/track 63, sectors 976745983, $MFT start cluster 786432, $MFTMirror start cluster 488372991, clusters/RecordSegment 1, clusters/index block 1, serial number 0a2ca0aebca0abc13; contains Microsoft Windows XP/VISTA bootloader NTLDR

craftxbox avatar Apr 14 '18 01:04 craftxbox

what?

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

??

craftxbox avatar Apr 14 '18 01:04 craftxbox

i don't see anything

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

reload

craftxbox avatar Apr 14 '18 01:04 craftxbox

OK, not encrypted.

Just curious: Which chip is on the bridge card?

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

AsMedia 1051

craftxbox avatar Apr 14 '18 01:04 craftxbox

What does linux say if you sudo mkdir -p /mnt/windows sudo mount /dev/sdb1 /mnt/windows ?

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

Failed to read last sector (976745982): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn't setup yet, or it was not setup correctly (e.g. by not using mdadm --build ...), or a wrong device is tried to be mounted, or the partition table is corrupt (partition is smaller than NTFS), or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount '/dev/sdb1': Invalid argument The device '/dev/sdb1' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

craftxbox avatar Apr 14 '18 01:04 craftxbox

Try to mount /dev/sdb1p1

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

doesnt exist

craftxbox avatar Apr 14 '18 01:04 craftxbox

Lemme see: sudo hexdump -Cv -n 512 /dev/sdb1

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 10 01 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 01 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff f5 37 3a 00 00 00 00  |..........7:....|
00000030  00 00 0c 00 00 00 00 00  ff fa 1b 1d 00 00 00 00  |................|
00000040  01 00 00 00 01 00 00 00  13 bc 0a ca eb 0a ca a2  |................|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|
00000060  8e d8 e8 16 00 b8 00 0d  8e c0 33 db c6 06 0e 00  |..........3.....|
00000070  10 e8 53 00 68 00 0d 68  6a 02 cb 8a 16 24 00 b4  |..S.h..hj....$..|
00000080  08 cd 13 73 05 b9 ff ff  8a f1 66 0f b6 c6 40 66  |...s......f...@f|
00000090  0f b6 d1 80 e2 3f f7 e2  86 cd c0 ed 06 41 66 0f  |.....?.......Af.|
000000a0  b7 c9 66 f7 e1 66 a3 20  00 c3 b4 41 bb aa 55 8a  |..f..f. ...A..U.|
000000b0  16 24 00 cd 13 72 0f 81  fb 55 aa 75 09 f6 c1 01  |.$...r...U.u....|
000000c0  74 04 fe 06 14 00 c3 66  60 1e 06 66 a1 10 00 66  |t......f`..f...f|
000000d0  03 06 1c 00 66 3b 06 20  00 0f 82 3a 00 1e 66 6a  |....f;. ...:..fj|
000000e0  00 66 50 06 53 66 68 10  00 01 00 80 3e 14 00 00  |.fP.Sfh.....>...|
000000f0  0f 85 0c 00 e8 b3 ff 80  3e 14 00 00 0f 84 61 00  |........>.....a.|
00000100  b4 42 8a 16 24 00 16 1f  8b f4 cd 13 66 58 5b 07  |.B..$.......fX[.|
00000110  66 58 66 58 1f eb 2d 66  33 d2 66 0f b7 0e 18 00  |fXfX..-f3.f.....|
00000120  66 f7 f1 fe c2 8a ca 66  8b d0 66 c1 ea 10 f7 36  |f......f..f....6|
00000130  1a 00 86 d6 8a 16 24 00  8a e8 c0 e4 06 0a cc b8  |......$.........|
00000140  01 02 cd 13 0f 82 19 00  8c c0 05 20 00 8e c0 66  |........... ...f|
00000150  ff 06 10 00 ff 0e 0e 00  0f 85 6f ff 07 1f 66 61  |..........o...fa|
00000160  c3 a0 f8 01 e8 09 00 a0  fb 01 e8 03 00 fb eb fe  |................|
00000170  b4 01 8b f0 ac 3c 00 74  09 b4 0e bb 07 00 cd 10  |.....<.t........|
00000180  eb f2 c3 0d 0a 41 20 64  69 73 6b 20 72 65 61 64  |.....A disk read|
00000190  20 65 72 72 6f 72 20 6f  63 63 75 72 72 65 64 00  | error occurred.|
000001a0  0d 0a 4e 54 4c 44 52 20  69 73 20 6d 69 73 73 69  |..NTLDR is missi|
000001b0  6e 67 00 0d 0a 4e 54 4c  44 52 20 69 73 20 63 6f  |ng...NTLDR is co|
000001c0  6d 70 72 65 73 73 65 64  00 0d 0a 50 72 65 73 73  |mpressed...Press|
000001d0  20 43 74 72 6c 2b 41 6c  74 2b 44 65 6c 20 74 6f  | Ctrl+Alt+Del to|
000001e0  20 72 65 73 74 61 72 74  0d 0a 00 00 00 00 00 00  | restart........|
000001f0  00 00 00 00 00 00 00 00  83 a0 b3 c9 00 00 55 aa  |..............U.|
00000200

craftxbox avatar Apr 14 '18 01:04 craftxbox

Except for the 2nd, 3rd, 4th, and 5th lines, that is exactly the same as my sample Win XP disk.

Add another sector: sudo hexdump -Cv -n 1024 /dev/sdb1

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 10 01 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 01 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff f5 37 3a 00 00 00 00  |..........7:....|
00000030  00 00 0c 00 00 00 00 00  ff fa 1b 1d 00 00 00 00  |................|
00000040  01 00 00 00 01 00 00 00  13 bc 0a ca eb 0a ca a2  |................|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|
00000060  8e d8 e8 16 00 b8 00 0d  8e c0 33 db c6 06 0e 00  |..........3.....|
00000070  10 e8 53 00 68 00 0d 68  6a 02 cb 8a 16 24 00 b4  |..S.h..hj....$..|
00000080  08 cd 13 73 05 b9 ff ff  8a f1 66 0f b6 c6 40 66  |...s......f...@f|
00000090  0f b6 d1 80 e2 3f f7 e2  86 cd c0 ed 06 41 66 0f  |.....?.......Af.|
000000a0  b7 c9 66 f7 e1 66 a3 20  00 c3 b4 41 bb aa 55 8a  |..f..f. ...A..U.|
000000b0  16 24 00 cd 13 72 0f 81  fb 55 aa 75 09 f6 c1 01  |.$...r...U.u....|
000000c0  74 04 fe 06 14 00 c3 66  60 1e 06 66 a1 10 00 66  |t......f`..f...f|
000000d0  03 06 1c 00 66 3b 06 20  00 0f 82 3a 00 1e 66 6a  |....f;. ...:..fj|
000000e0  00 66 50 06 53 66 68 10  00 01 00 80 3e 14 00 00  |.fP.Sfh.....>...|
000000f0  0f 85 0c 00 e8 b3 ff 80  3e 14 00 00 0f 84 61 00  |........>.....a.|
00000100  b4 42 8a 16 24 00 16 1f  8b f4 cd 13 66 58 5b 07  |.B..$.......fX[.|
00000110  66 58 66 58 1f eb 2d 66  33 d2 66 0f b7 0e 18 00  |fXfX..-f3.f.....|
00000120  66 f7 f1 fe c2 8a ca 66  8b d0 66 c1 ea 10 f7 36  |f......f..f....6|
00000130  1a 00 86 d6 8a 16 24 00  8a e8 c0 e4 06 0a cc b8  |......$.........|
00000140  01 02 cd 13 0f 82 19 00  8c c0 05 20 00 8e c0 66  |........... ...f|
00000150  ff 06 10 00 ff 0e 0e 00  0f 85 6f ff 07 1f 66 61  |..........o...fa|
00000160  c3 a0 f8 01 e8 09 00 a0  fb 01 e8 03 00 fb eb fe  |................|
00000170  b4 01 8b f0 ac 3c 00 74  09 b4 0e bb 07 00 cd 10  |.....<.t........|
00000180  eb f2 c3 0d 0a 41 20 64  69 73 6b 20 72 65 61 64  |.....A disk read|
00000190  20 65 72 72 6f 72 20 6f  63 63 75 72 72 65 64 00  | error occurred.|
000001a0  0d 0a 4e 54 4c 44 52 20  69 73 20 6d 69 73 73 69  |..NTLDR is missi|
000001b0  6e 67 00 0d 0a 4e 54 4c  44 52 20 69 73 20 63 6f  |ng...NTLDR is co|
000001c0  6d 70 72 65 73 73 65 64  00 0d 0a 50 72 65 73 73  |mpressed...Press|
000001d0  20 43 74 72 6c 2b 41 6c  74 2b 44 65 6c 20 74 6f  | Ctrl+Alt+Del to|
000001e0  20 72 65 73 74 61 72 74  0d 0a 00 00 00 00 00 00  | restart........|
000001f0  00 00 00 00 00 00 00 00  83 a0 b3 c9 00 00 55 aa  |..............U.|
00000200  05 00 4e 00 54 00 4c 00  44 00 52 00 04 00 24 00  |..N.T.L.D.R...$.|
00000210  49 00 33 00 30 00 00 e0  00 00 00 30 00 00 00 00  |I.3.0......0....|
00000220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000240  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000250  00 00 00 00 00 00 eb 12  90 90 00 00 00 00 00 00  |................|
00000260  00 00 00 00 00 00 00 00  00 00 8c c8 8e d8 c1 e0  |................|
00000270  04 fa 8b e0 fb e8 03 fe  66 0f b7 06 0b 00 66 0f  |........f.....f.|
00000280  b6 1e 0d 00 66 f7 e3 66  a3 4e 02 66 8b 0e 40 00  |....f..f.N.f..@.|
00000290  80 f9 00 0f 8f 0e 00 f6  d9 66 b8 01 00 00 00 66  |.........f.....f|
000002a0  d3 e0 eb 08 90 66 a1 4e  02 66 f7 e1 66 a3 52 02  |.....f.N.f..f.R.|
000002b0  66 0f b7 1e 0b 00 66 33  d2 66 f7 f3 66 a3 56 02  |f.....f3.f..f.V.|
000002c0  e8 71 04 66 8b 0e 4a 02  66 89 0e 22 02 66 03 0e  |.q.f..J.f..".f..|
000002d0  52 02 66 89 0e 26 02 66  03 0e 52 02 66 89 0e 2a  |R.f..&.f..R.f..*|
000002e0  02 66 03 0e 52 02 66 89  0e 3a 02 66 03 0e 52 02  |.f..R.f..:.f..R.|
000002f0  66 89 0e 42 02 66 b8 90  00 00 00 66 8b 0e 22 02  |f..B.f.....f..".|
00000300  e8 5f 09 66 0b c0 0f 84  57 fe 66 a3 2e 02 66 b8  |._.f....W.f...f.|
00000310  a0 00 00 00 66 8b 0e 26  02 e8 46 09 66 a3 32 02  |....f..&..F.f.2.|
00000320  66 b8 b0 00 00 00 66 8b  0e 2a 02 e8 34 09 66 a3  |f.....f..*..4.f.|
00000330  36 02 66 a1 2e 02 66 0b  c0 0f 84 24 fe 67 80 78  |6.f...f....$.g.x|
00000340  08 00 0f 85 1b fe 67 66  8d 50 10 67 03 42 04 67  |......gf.P.g.B.g|
00000350  66 0f b6 48 0c 66 89 0e  62 02 67 66 8b 48 08 66  |f..H.f..b.gf.H.f|
00000360  89 0e 5e 02 66 a1 5e 02  66 0f b7 0e 0b 00 66 33  |..^.f.^.f.....f3|
00000370  d2 66 f7 f1 66 a3 66 02  66 a1 42 02 66 03 06 5e  |.f..f.f.f.B.f..^|
00000380  02 66 a3 46 02 66 83 3e  32 02 00 0f 84 1d 00 66  |.f.F.f.>2......f|
00000390  83 3e 36 02 00 0f 84 c8  fd 66 8b 1e 36 02 1e 07  |.>6......f..6...|
000003a0  66 8b 3e 46 02 66 a1 2a  02 e8 bc 01 66 0f b7 0e  |f.>F.f.*....f...|
000003b0  00 02 66 b8 02 02 00 00  e8 fe 07 66 0b c0 0f 84  |..f........f....|
000003c0  a8 09 67 66 8b 00 1e 07  66 8b 3e 3a 02 e8 31 06  |..gf....f.>:..1.|
000003d0  66 a1 3a 02 66 bb 20 00  00 00 66 b9 00 00 00 00  |f.:.f. ...f.....|
000003e0  66 ba 00 00 00 00 e8 d6  00 66 85 c0 0f 85 23 00  |f........f....#.|
000003f0  66 a1 3a 02 66 bb 80 00  00 00 66 b9 00 00 00 00  |f.:.f.....f.....|```

craftxbox avatar Apr 14 '18 01:04 craftxbox

It sure looks like an NTFS disk.

The things I can think of are

  • the ASM chip might have used a different sector size
  • try sudo mount -t ntfs-3g /dev/sdb1 /mnt/windows
  • try ntfsfix (part of the ntfs-progs package)
  • ask Windows to fix it

If number 2 works, let me know.

Sorry I can't be more help.

themaddoctor avatar Apr 14 '18 01:04 themaddoctor

both fail with Attempting to correct errors... Failed to read last sector (976745982): Invalid argument

craftxbox avatar Apr 14 '18 01:04 craftxbox

let me try something one sec

craftxbox avatar Apr 14 '18 01:04 craftxbox

apparently the drive's boot sector was bad. im having testdisk attempt to rebuild it right now.

craftxbox avatar Apr 14 '18 02:04 craftxbox

Right, because it said the partition was 2TB.

themaddoctor avatar Apr 14 '18 02:04 themaddoctor

when attached to the bridge, the part is 4tb with 2tb used

craftxbox avatar Apr 14 '18 02:04 craftxbox