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

Permission denied when reading keyblock #10

Open bronsonj opened 6 years ago

bronsonj commented 6 years ago

Hi Thomas! I found this via the WD forums. I've been reading your pdf file and trying my best to get this to work, but being a completely new to linux, I seem to have missed something somewhere. When I try to read the keyblock, i get a message saying permission denied in terminal. I have a SW6316 chip if that helps, and I never applied a password when I used to run the hdd in its original enclosure. I would really appreciate if you could lend me some of your precious time to help me out.

PS. terminal says the following; dd: failed to open '/dev/sdb'; Permission denied

themaddoctor commented 6 years ago

Put "sudo " in front of the command. Note the space. It will ask for your admin password, so that it can access the raw disk (normal users are not allowed).

bronsonj commented 6 years ago

Thanks! Everything was fine, until I tried mounting the drive. I keep receiving the following message;

mount: you must specify the filesystem type

After researching the net, I tried "sudo mount -t auto /dev/mapper/wd1 /mnt/wd" but I keep getting the same message. I also made sure that the NTFS drivers are installed. Any idea what could be the issue?

themaddoctor commented 6 years ago

Did you use kpartx or the loop method?

Send a dump of the first 2MB of the drive as seen through the filter (/dev/mapper/wd) for me to look at.

sudo dd if=/dev/mapper/wd count=4096 of=dump.bin

themaddoctor commented 6 years ago

Or try -t ntfs-3g in the mount command

bronsonj commented 6 years ago

I tried the kpartx method first, but i got the message:

"mount: you must specify the filesystem type",

so then i tried the loop method, and I kept getting the same message.

I haven't had the time to try out your latest suggestions, will update once I get around to doing this.

Thank you again for taking the time to help me out, it means a lot. Cheers.

bronsonj commented 6 years ago

I gave a shot with the "-t ntfs-3g", but i still get the "you must specify the filesystem type" message.

I've attached the dump.bin file, but had to rename it to .txt, since .bin files aren't allowed.

dump.txt

themaddoctor commented 6 years ago

You have an NTFS filesystem starting at block 2048

themaddoctor commented 6 years ago

You haven't responded. So I suppose you used a loop device as described in the PDF.