themaddoctor / linux-mybook-tools

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

Initialized drive in Win 10 #84

Open Vasiboy opened 1 year ago

Vasiboy commented 1 year ago

Hi there I have a mybook 3TB drive with JM chip. I didn't realize they were encrypted, (to my detriment). I installed the drive to my windows machine and initialized the drive but didn't go any further.

I have taken the trouble of setting up an Ubuntu system to recover the info, and have followed your tutorial step by step so far so good.

The drive is plugged straight to the MB via sata cable.

I have typed the command sudo file -s /dev/sdc, but it comes up with (no such file or directory)

Do I have to mount the drive somehow using other software? Or should I plug it into an external enclosure?

I used Linux year ago, but always looking for challenges...

Any help would be appreciated. Thanks Vas

themaddoctor commented 1 year ago

Command lsblk will tell you what drives are connected and what they are called.

Vasiboy commented 1 year ago

Hi Thomas thanks for the reply. I have moved further down your tutorial as follows: lsblk produces:

sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 513M 0 part /boot/efi └─sda3 8:3 0 223.1G 0 part /var/snap/firefox/common/host-hunspell / sdb 8:16 0 2.7T 0 disk └─sdb1 8:17 0 16M 0 part

So after running all the commands in the JMicon section I have ended up with a hexdump for the Dek that looks like this:

00000f0 04 00 00 00 a1 00 00 00 97 00 00 00 37 00 00 00 |............7...| 00000100 44 45 4b 31 02 db 00 00 f9 a6 1c 19 8f 48 d8 78 |DEK1.........H.x| 00000110 ad cc 7b 12 d8 e5 ca 50 57 1d 65 39 26 1d 02 36 |..{....PW.e9&..6| 00000120 7f 75 4e 45 7f 37 6a fb c9 9e ec 8a 07 2e e4 8a |.uNE.7j.........| 00000130 bc 5f ba 05 00 00 00 00 00 00 00 00 00 00 00 00 |._..............

Does this look like anything that makes sense?

After doing the next couple of steps, I am now in appendix D, trying to build the cryptographic module.

The step that produces an error is the Build: make -C /lib/modules/uname -r/build M=$PWD

I get the message:

bman@BmanUbuntu:~/wd$ make -C /lib/modules/uname -r/build M=$PWD make: Entering directory '/usr/src/linux-headers-5.15.0-56-generic' arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support make: gcc: No such file or directory warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 You are using:
make[1]: No rule to make target '/home/bman/wd/rev16.o', needed by '/home/bman/wd/rev16.mod'. Stop. make: [Makefile:1903: /home/bman/wd] Error 2 make: Leaving directory '/usr/src/linux-headers-5.15.0-56-generic'

Please, what am I missing here and is that DEK hexdump any good?

Many thanks for your help.

Cheers Vas

Vasiboy commented 1 year ago

PS I am working off a copy of the drive I made before doing any of this. I used DDrescue.

themaddoctor commented 1 year ago

You skipped some steps.

Vasiboy commented 1 year ago

You mean I skipped steps to get the DEK or in appendix D?

themaddoctor commented 1 year ago

D

Vasiboy commented 1 year ago

On Thu, 29 Dec 2022 at 1:45 pm, themaddoctor @.***> wrote:

D

— Reply to this email directly, view it on GitHub https://github.com/themaddoctor/linux-mybook-tools/issues/84#issuecomment-1367037435, or unsubscribe https://github.com/notifications/unsubscribe-auth/A462FYA6KD7W3QBS7RWOO3LWPT3M7ANCNFSM6AAAAAATKGNZN4 . You are receiving this because you authored the thread.Message ID: @.***>

Ok thanks will go again.

Vasiboy commented 1 year ago

Hi Thomas,

I read through again, and installed development packages for kernel 5.15.0-56-generic (my version)

I created a file rev16.c using text editor and copied the code contents into it.

Then I did the following steps as below but it came up with a different error:

bman@BmanUbuntu:~/wd$ echo "obj-m := rev16.o" > Makefile, (it created the Makefile ok)

bman@BmanUbuntu:~/wd$ make -C/lib/modules/'uname -r' /build M=$PWD

make: *** /lib/modules/uname -r: No such file or directory. Stop.

Help please? Thanks

themaddoctor commented 1 year ago

The left single quote mark is on the key to the left of the "1" key.

Vasiboy commented 1 year ago

Thanks again Thomas, now there is a message about "no rule" to make target?

bman@BmanUbuntu:~/wd$ make -C/lib/modules/uname -r /build M=$PWD make: Entering directory '/usr/lib/modules/5.15.0-56-generic' make: *** No rule to make target '/build'. Stop. make: Leaving directory '/usr/lib/modules/5.15.0-56-generic'

Getting there, cheers

PS reading through your steps again, I think I am working in the wrong directory whilst doing Appendix D ?? Should I be in: /usr/lib/modules/5.15.0-56-generic ?

I have looked at other tutorials online but still haven't joined the dots. Cheers Vas

Vasiboy commented 1 year ago

Hi Thomas, and Happy New Year.

I have got back to working on this drive, but still cant get past the last error message.

Can you help please?

Thanks Vas

themaddoctor commented 1 year ago

Send me sectors 0, 2048, 2049, and 5860528160.

sudo dd if=/dev/whatever skip=0 count=1 status=none | hexdump -C sudo dd if=/dev/whatever skip=2048 count=1 status=none | hexdump -C etc. I don't know what your "whatever" should be.

Do not post screenshots. Copy and paste the output into a comment.

Vasiboy commented 1 year ago

Hi Thomas,

I did what you asked on both sdb and sdb1, many thanks.

SDB:

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb skip=0 count=1 status=none | hexdump -C 00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |3.....|......|..| 00000010 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 |.......Ph.......| 00000020 bd be 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10 |....~..|........| 00000030 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 |.....V.U.F...F..| 00000040 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 |.A..U..]r...U.u.| 00000050 f7 c1 01 00 74 03 fe 46 10 66 60 80 7e 10 00 74 |....t..F.f.~..t| 00000060 26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00 |&fh....f.v.h..h.| 00000070 7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 ||h..h...B.V.....| 00000080 9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00 |............|.V.| 00000090 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe |.v..N..n...fas..| 000000a0 4e 11 75 0c 80 7e 00 80 0f 84 8a 00 b2 80 eb 84 |N.u..~..........| 000000b0 55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55 |U2..V...]...>.}U| 000000c0 aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64 |.un.v....u.....d| 000000d0 e8 83 00 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75 |.......|....d.u| 000000e0 00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54 |.......f#.u;f..T| 000000f0 43 50 41 75 32 81 f9 02 01 72 2c 66 68 07 bb 00 |CPAu2....r,fh...| 00000100 00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66 |.fh....fh....fSf| 00000110 53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66 |SfUfh....fh.|..f| 00000120 61 68 00 00 07 cd 1a 5a 32 f6 ea 00 7c 00 00 cd |ah.....Z2...|...| 00000130 18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4 |..............2.| 00000140 05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd |......<.t.......| 00000150 10 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8 |......+..d..$...| 00000160 24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69 |$..Invalid parti| 00000170 74 69 6f 6e 20 74 61 62 6c 65 00 45 72 72 6f 72 |tion table.Error| 00000180 20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69 | loading operati| 00000190 6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e |ng system.Missin| 000001a0 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst| 000001b0 65 6d 00 00 00 63 7b 9a 55 21 ab 08 00 00 00 00 |em...c{.U!......| 000001c0 02 00 ee fe 7f 00 01 00 00 00 ff ff ff ff 00 00 |................| 000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb skip=2048 count=1 status=none | hexdump -C 00000000 99 eb 0d 33 a1 e1 e5 6d 3e 69 a7 a8 93 36 f3 e2 |...3...m>i...6..| 00000010 f0 5d e8 86 07 e3 60 c6 c7 08 94 86 9d 4b f8 49 |.]..........K.I| 00000020 49 89 dd a3 98 86 c3 46 3b 22 14 a4 29 7c dd 19 |I......F;"..)|..| 00000030 e8 c8 ea 3b 98 d8 48 55 74 6e d7 11 d3 ae 57 c9 |...;..HUtn....W.| 00000040 18 8f 1e 85 93 a5 1d c4 28 5a 45 60 99 da 78 4e |........(ZE..xN| 00000050 87 7c 42 c0 12 7b de 8e 12 3f d7 f4 f9 04 ad e8 |.|B..{...?......| 00000060 f3 9d 33 9c d5 a6 d7 a7 2f 95 88 bc fb 13 2e a3 |..3...../.......| 00000070 70 56 ca 73 ab 3b 17 dc 67 fc a2 b9 22 8c b2 bb |pV.s.;..g..."...| 00000080 c6 f0 0d 48 4b a4 a7 31 ce d5 9b 24 8b ea 1f dc |...HK..1...$....| 00000090 90 35 7e 03 cd e9 48 51 88 8b 79 3f f8 53 a2 d6 |.5~...HQ..y?.S..| 000000a0 aa ec 69 7e 95 3a 61 e8 31 d6 17 fc 64 e9 5d 38 |..i~.:a.1...d.]8| 000000b0 80 91 c5 0a ed c0 fa 9a 0d bf a4 4f 93 34 a2 ca |...........O.4..| 000000c0 ce 74 db 0b 5d a9 57 40 3b fd 36 b2 81 66 b5 87 |.t..].W@;.6..f..| 000000d0 23 32 54 78 7d da 9b a7 e6 18 50 5f 8d 34 a8 87 |#2Tx}.....P.4..| 000000e0 a3 20 21 41 fd 20 8b ed 7f ee 6f 99 f3 e3 25 ed |. !A. ....o...%.| 000000f0 af b2 fa 49 1a 84 1b 81 90 a3 46 52 80 d5 ad 3c |...I......FR...<| 00000100 e0 1e f3 40 7e ca 10 da d2 c6 be 8c 0c f3 53 51 |...@~.........SQ| 00000110 c8 d8 31 c5 30 18 fc af 60 2a c1 ec 20 a0 04 17 |..1.0...*.. ...| 00000120 90 67 3d 63 ee f7 9a 52 c4 c2 33 77 16 85 a7 af |.g=c...R..3w....| 00000130 7a 6c ba 8d 33 fb ed 02 a4 60 6c 6a 4c de b1 b4 |zl..3....ljL...| 00000140 9c 0c 06 f1 a7 90 38 f3 57 b5 38 ce 58 45 c4 9b |......8.W.8.XE..| 00000150 6d 9e 46 39 e3 18 59 3f f6 f3 a1 71 68 da 06 72 |m.F9..Y?...qh..r| 00000160 9b 7d 2d b7 9b 2f f3 58 86 0c c2 8f f5 0f b3 5f |.}-../.X.......| 00000170 62 bc c8 88 c9 7e 31 16 47 69 ec 92 f3 27 24 ee |b....~1.Gi...'$.| 00000180 9f 8b 8a 73 7e a0 b9 53 7a c9 07 4b 49 9d 2a 5d |...s~..Sz..KI.*]| 00000190 5c eb 8b f3 87 ff 33 e7 07 b4 5f 59 39 aa c0 83 |.....3..._Y9...| 000001a0 a1 12 61 32 7b b3 c1 42 6f 8a 64 4d 37 a8 2c 35 |..a2{..Bo.dM7.,5| 000001b0 cb 53 c1 54 e8 4b 48 c6 ec 0c 77 a0 c9 ac cc c8 |.S.T.KH...w.....| 000001c0 c0 7c 20 40 e7 ff cb 6c 7f 12 bb d4 25 a9 ad 6a |.| @...l....%..j| 000001d0 2d 81 e0 26 7b 16 79 09 44 fa ad 7f 4b a9 29 60 |-..&{.y.D...K.)`| 000001e0 c0 be dd 7b 01 14 e0 ee 6c 38 21 78 9b c8 d6 3f |...{....l8!x...?| 000001f0 cc 11 27 e0 eb 6e c2 7a d8 0a 67 1c c4 25 ca 2d |..'..n.z..g..%.-| 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb skip=2049 count=1 status=none | hexdump -C 00000000 bf 0c 5c 0b d3 37 cd 36 f1 7e 35 2f 77 5f e3 a7 |....7.6.~5/w_..| 00000010 b2 d7 6b 29 f9 7e bb a4 31 87 b9 fc f4 e8 6f 9c |..k).~..1.....o.| 00000020 2b 83 21 5d 99 f6 7f 3f c2 94 c9 52 8d a3 5a 2e |+.!]...?...R..Z.| * 00000050 47 16 00 34 91 09 35 45 fb d6 79 74 a9 9a c4 21 |G..4..5E..yt...!| 00000060 83 07 17 a5 06 72 25 1e 53 3f 85 41 57 c2 67 17 |.....r%.S?.AW.g.| 00000070 1d 80 92 22 db d7 5e 16 c9 08 43 f4 b9 99 fd f0 |..."..^...C.....| 00000080 00 2f 8d 16 5a 5c 01 ef 92 02 f4 7e c6 7b b9 0b |./..Z.....~.{..| 00000090 cf 9d 8d 3b 59 ee f4 3f 0c f0 6c 8b 56 11 0f a1 |...;Y..?..l.V...| 000000a0 94 ee e8 e1 b5 03 cf d9 98 55 cc 28 53 cc 24 e3 |.........U.(S.$.| 000000b0 68 68 f8 00 06 d7 1f 97 62 c0 f2 10 89 9d d5 38 |hh......b......8| 000000c0 c8 44 e9 81 a4 81 72 71 f1 53 32 af 9a b2 31 fb |.D....rq.S2...1.| 000000d0 63 34 84 b9 09 01 2c 8d e1 56 42 fa 00 dd 15 fd |c4....,..VB.....| 000000e0 dc f4 de 75 c2 d5 e5 f5 31 ce 7e 01 cf 17 20 04 |...u....1.~... .| 000000f0 30 44 49 b9 db 43 17 45 78 24 59 da 0a 21 a4 d1 |0DI..C.Ex$Y..!..| 00000100 39 b6 a9 aa 86 ec 63 2e f2 bc bc 37 35 57 f4 d3 |9.....c....75W..| 00000110 58 47 bd 3b 31 96 2f 91 6b 0f e1 23 f0 2f 59 68 |XG.;1./.k..#./Yh| 00000120 9a 87 e5 d0 5b 1e 73 4c fa 39 8f 65 9e 14 0a 36 |....[.sL.9.e...6| 00000130 f7 2c f0 cd c1 a1 17 f6 1d 4d ec dd 91 02 d5 8c |.,.......M......| 00000140 b9 1e 61 2e 57 58 bb 04 66 9d a9 cb d1 4d 9b 1b |..a.WX..f....M..| 00000150 32 54 2e d8 9e 02 78 d3 dd 6d 07 ac 7a a8 a3 81 |2T....x..m..z...| 00000160 ac de 08 9e f2 a3 e1 52 38 c1 a3 bc 3b bc 5e 38 |.......R8...;.^8| 00000170 aa bc a6 67 79 a2 7e 57 e0 b8 b0 a3 b1 0e ba 24 |...gy.~W.......$| 00000180 e2 a8 e1 05 3e 93 08 3c 17 af 78 c8 71 c9 be e0 |....>..<..x.q...| 00000190 b3 bc cc 44 7e 9e ac e1 62 f2 cd f2 9f 52 57 09 |...D~...b....RW.| 000001a0 b5 20 44 1f 77 7f ce 9c 60 19 c0 16 9d 7b ca e8 |. D.w...`....{..| 000001b0 e0 ab ba a3 62 81 59 39 fc f8 72 67 3a db a6 bc |....b.Y9..rg:...| 000001c0 53 a6 49 39 d0 11 51 f5 7d ee 2d 6b e8 0d b9 2d |S.I9..Q.}.-k...-| 000001d0 9a 9d d3 85 fe 70 5d 41 98 c2 05 8c 37 44 a4 4f |.....p]A....7D.O| 000001e0 ed 2f 37 c1 dc 78 da 7f 5d 43 7e ed 8f 9c f8 4b |./7..x..]C~....K| 000001f0 64 62 e1 96 53 ba 3c 37 0b 8b a8 54 1a be d9 91 |db..S.<7...T....| 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb skip=5860528160 count=1 status=none | hexdump -C 00000000 57 44 76 31 92 b1 00 00 00 a0 4f 5d 01 00 00 00 |WDv1......O]....| 00000010 03 00 00 00 00 00 f0 00 00 00 00 00 00 00 00 00 |................| 00000020 01 00 00 00 00 00 46 50 00 00 00 00 00 00 00 00 |......FP........| 00000030 00 02 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000050 20 00 bb bb 00 00 00 01 00 00 00 00 57 44 76 31 | ...........WDv1| 00000060 57 de e8 59 69 ca 8f d8 8a 22 ee 54 75 e0 39 2e |W..Yi....".Tu.9.| 00000070 99 6d db 3c 0c fd 69 1f 69 8b d6 5c f8 55 e8 23 |.m.<..i.i...U.#| 00000080 86 53 49 20 9f 92 91 a2 c8 0a 81 5d c0 ef 59 d3 |.SI .......]..Y.| 00000090 96 7c 71 49 67 2b f6 54 6f a5 93 9d 09 dc 0f cf |.|qIg+.To.......| 000000a0 1f 48 9e 65 64 f6 e3 6a d6 de 69 98 49 34 bb f3 |.H.ed..j..i.I4..| 000000b0 03 08 32 99 9d df 29 c9 de e3 5d fd 9c a2 50 75 |..2...)...]...Pu| 000000c0 f0 67 76 51 5e e2 8c 72 7b 72 e1 e1 08 df da 9f |.gvQ^..r{r......| 000000d0 cd eb d5 1f 9f 4b 65 04 68 29 04 f2 1f 67 ea 0a |.....Ke.h)...g..| 000000e0 be d7 ee 5c e8 07 cc e4 f1 7b 11 70 2e 31 f7 95 |........{.p.1..| 000000f0 4b c8 e9 2f 6f db 5a ac 34 2a c2 fc 70 1f d0 83 |K../o.Z.4..p...| 00000100 94 b7 d7 a0 70 66 3c e6 d7 34 31 4a 33 7e 44 18 |....pf<..41J3~D.| 00000110 12 e8 5f db 9e ff 88 b2 cf b1 d6 18 c5 ab 50 2d |.._...........P-| 00000120 11 e3 c1 b2 34 9a 12 cd 16 b7 e2 f9 01 33 4b e6 |....4........3K.| 00000130 90 cf 06 37 c6 61 c6 b4 c4 7d b0 10 32 71 89 3e |...7.a...}..2q.>| 00000140 b8 79 7a fd 59 ec 3f cd 4f 2e 42 fb af 27 bb 6f |.yz.Y.?.O.B..'.o| 00000150 d2 c3 07 09 15 8f 34 4d 92 28 af a5 64 83 14 b9 |......4M.(..d...| 00000160 53 f5 9c ca f2 84 bf e1 ea 1b 3f a7 30 eb 1c d4 |S.........?.0...| 00000170 43 66 2d 79 54 e4 db d8 9a 33 56 38 0a a6 43 05 |Cf-yT....3V8..C.| 00000180 8e 27 2c 3d 19 b1 b3 e7 a4 e1 8f de e7 9c a5 ff |.',=............| 00000190 5f 55 20 8e ed 9b 87 e2 ba 87 19 37 73 c8 59 7f |_U ........7s.Y.| 000001a0 04 e3 b3 cd ec bd 9a 36 d7 c9 b8 ee 07 41 20 3c |.......6.....A <| 000001b0 3d 1a 85 75 7e d1 be 32 cd 20 9c 7e ea 3e f4 c2 |=..u~..2. .~.>..| 000001c0 45 e3 82 a1 59 59 4d f8 1b b4 28 40 40 25 d8 e3 |E...YYM...(@@%..| 000001d0 c3 7c ad ed b0 b1 de 16 2a 3d 25 74 42 73 a6 d1 |.|......=%tBs..| 000001e0 f7 f8 de 92 bd 01 5f 17 d7 1a 3f 41 7f 77 77 bb |......_...?A.ww.| 000001f0 f2 a9 71 25 db 87 80 8e e1 ff 5d 54 9a 96 9e a2 |..q%......]T....| 00000200

SDB1:

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb1 skip=0 count=1 status=none | hexdump -C 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb1 skip=2048 count=1 status=none | hexdump -C 00000000 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000010 92 06 cf db dc f4 95 59 f2 95 39 eb df 54 3f 14 |.......Y..9..T?.| 00000020 1a fd eb 27 2d d9 11 16 5f 6e aa 75 e3 1d fd 64 |...'-...n.u...d| 00000030 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000040 b7 f2 15 de 94 aa 8c 51 6a 4b b8 b3 89 6b ba ad |.......QjK...k..| 00000050 d1 dd fd 47 5b 52 38 6a 35 a7 2d bd f7 fb 9f aa |...G[R8j5.-.....| 00000060 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000070 00 c8 e5 26 0d 13 1c 63 ba 80 77 ad 57 39 75 37 |...&...c..w.W9u7| 00000080 96 96 55 87 82 ea 65 36 b0 8e 1c 9a f2 9e a5 2e |..U...e6........| 00000090 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000000a0 3b 47 01 aa f1 11 a8 2d 6d a4 6a 05 b8 6f bf 8e |;G.....-m.j..o..| 000000b0 df dc 65 7e 32 db de b0 bf b7 22 6b 81 7d e0 b7 |..e~2....."k.}..| 000000c0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000000d0 95 67 6d 18 7d 47 78 c1 0d d2 ad fa 9b 30 d6 74 |.gm.}Gx......0.t| 000000e0 cd 99 75 b4 65 1f 35 c3 a7 da e2 4e 61 a3 f5 c2 |..u.e.5....Na...| 000000f0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000100 db 48 2b 16 44 40 5f 84 93 97 8e d6 08 55 0e 42 |.H+.D@......U.B| 00000110 d3 8f eb 51 de 88 55 ab a4 3d da d8 c2 da 35 a0 |...Q..U..=....5.| 00000120 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000130 16 78 78 80 e9 21 86 92 6b 98 5b e8 62 be fc 79 |.xx..!..k.[.b..y| 00000140 2c 3a 1c bb af ed 6d 72 84 a8 7b e6 bc 0f ef ca |,:....mr..{.....| 00000150 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000160 bd d5 5f 25 8b 5c 4d 25 4b 64 ac b1 c6 6c cb 8a |.._%.\M%Kd...l..| 00000170 42 29 01 6e be e3 cf 79 54 79 67 23 b7 96 6c 7e |B).n...yTyg#..l~| 00000180 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000190 c3 3b f7 a4 af e8 9d b1 e9 cf 44 1a 8a 91 b5 e2 |.;........D.....| 000001a0 43 9b 36 1f 92 a6 b5 32 08 56 98 63 df eb 65 6f |C.6....2.V.c..eo| 000001b0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000001c0 af 51 e9 7c 6b fe 72 15 1a 67 84 3a 20 61 f3 8a |.Q.|k.r..g.: a..| 000001d0 0f 9e e2 99 eb 98 43 b0 f0 74 7c bf 47 a4 e0 1d |......C..t|.G...| 000001e0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000001f0 b3 8e 46 ad 58 a3 c6 2d 00 ff f8 31 c5 a7 d9 53 |..F.X..-...1...S| 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb1 skip=2049 count=1 status=none | hexdump -C 00000000 d4 cd 8b 61 c5 f4 d6 32 fb 6d a0 a9 b1 9e 7e 3a |...a...2.m....~:| 00000010 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000020 26 cf 44 dd bd 5c 96 aa ed c5 77 65 51 7c 50 ef |&.D......weQ|P.| 00000030 82 82 c5 5a c0 77 5d 0b b8 9c 70 f3 a6 02 00 33 |...Z.w]...p....3| 00000040 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000050 75 6a 70 61 d8 6f 9e 44 d1 e2 35 63 59 04 78 29 |ujpa.o.D..5cY.x)| 00000060 25 54 a9 bc 2b 96 9b c3 ac 8c ce 53 36 92 98 43 |%T..+......S6..C| 00000070 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000080 53 24 48 48 05 3f ed d3 77 9c 5b a3 ed fb ec 96 |S$HH.?..w.[.....| 00000090 39 da 04 a7 f2 7f 55 74 f5 69 a4 da e8 50 6c 5e |9.....Ut.i...Pl^| 000000a0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000000b0 09 95 54 e0 40 7d 87 64 b6 4e 4b 76 36 29 b4 47 |..T.@}.d.NKv6).G| 000000c0 4b 15 22 a0 89 ca 43 f7 12 e8 5d 41 d0 1d c9 3f |K."...C...]A...?| 000000d0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000000e0 cd a7 2c 5c f5 ef 51 8d 7b 22 17 2d e3 69 2e 5a |..,..Q.{".-.i.Z| 000000f0 38 dc 7f 56 45 b3 99 4c bb 25 91 d4 80 53 56 b6 |8..VE..L.%...SV.| 00000100 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000110 01 ee 86 47 4c 3b 11 6b e2 1d 13 1c e5 14 a2 a8 |...GL;.k........| 00000120 dc 08 af 38 26 9d a5 b4 ef c9 ef 47 da cb c8 be |...8&......G....| 00000130 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000140 ea 4a 84 89 6d 25 76 2c 7f 8d 86 0a f0 6d 45 0d |.J..m%v,.....mE.| 00000150 4d 75 be d1 d8 05 9f f9 3a d7 81 98 d0 f5 3e 71 |Mu......:.....>q| 00000160 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 00000170 f0 09 47 c8 25 10 c3 11 96 e0 c8 48 62 de 12 e1 |..G.%......Hb...| 00000180 9f 9d 84 8c bc 3b cc 2e ca 13 34 aa 6e 1f e3 9f |.....;....4.n...| 00000190 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000001a0 f9 dd 0f 3c 67 b3 d2 f8 30 24 84 8c 36 ff 75 70 |...<g...0$..6.up| 000001b0 74 a8 53 65 99 91 d0 7b 65 da 63 46 7a db ee 6c |t.Se...{e.cFz..l| 000001c0 88 a2 2e 92 e3 c0 28 a7 3c 75 2f 80 03 8d d2 c8 |......(.<u/.....| 000001d0 f2 7e 51 be e0 1b 96 fd 3d 53 29 9a 8c 1d b1 7b |.~Q.....=S)....{| 000001e0 1a e6 03 1b c1 b3 81 dc 71 d8 de e9 61 cb 7e 19 |........q...a.~.| 000001f0 ed 5a f8 bb 76 f1 40 cb 83 b0 a9 c5 ff 0f 59 3b |.Z..v.@.......Y;| 00000200

bman@BmanUbuntu:~$ sudo dd if=/dev/sdb1 skip=5860528160 count=1 status=none | hexdump -C dd: /dev/sdb1: cannot skip: Invalid argument

themaddoctor commented 1 year ago

These errors:

make: Entering directory '/usr/src/linux-headers-5.15.0-56-generic' arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support make: gcc: No such file or directory warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0

indicate that you have not installed the kernel development packages that are appropriate for your system.

This error:

make: *** No rule to make target '/build'. Stop.

indicates that you did not make the Makefile as instructed in the PDF.

The good news is that it appears that your filesystem was not overwritten when you initialized the disk.

Vasiboy commented 1 year ago

Thanks for the reply Thomas,

I have watched a few tutorials, and installed quite a few packages (probably some not required).

I have followed the wiki.ubuntu.com/Kernel/Build/YourOwnKernel , and installed the packages as suggested there, is there another website you can advise?

The Makefile didn't come up with any errors at the time but I will try again.

Thanks for your time Vas