Editing Mounting HDD on PC
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
Line 7: | Line 6: | ||
=ATA and ENCDEC Keys= | =ATA and ENCDEC Keys= | ||
See http://www.ps3devwiki.com/wiki/HDD_Encryption | |||
=Device Mapper= | =Device Mapper= | ||
Line 28: | Line 27: | ||
modprobe loop | modprobe loop | ||
modprobe dm_mod | modprobe dm_mod | ||
modprobe dm-bswap16 | modprobe dm-bswap16.ko | ||
dd if=/dev/zero of=test.bin bs=1K count=100 | dd if=/dev/zero of=test.bin bs=1K count=100 | ||
Line 112: | Line 111: | ||
</pre> | </pre> | ||
==dm- | ==dm-crypto== | ||
* We don't need xts_aes application anymore. | * We don't need xts_aes application anymore. | ||
Line 121: | Line 120: | ||
===HDD Test=== | ===HDD Test=== | ||
* Tested on PS3 | * Tested on PS3 istelf with Debian LiveCD and Linux kernel version 3.4.10 but you can use the same technique on a Linux PC. I was just lazy and it is easier to test on PS3. | ||
<pre> | <pre> | ||
Line 230: | Line 229: | ||
# create VFLASH key file | # create VFLASH key file | ||
echo <your encdec data key as hex string> <your encdec tweak key as hex string> | xxd -r -p > | echo <your encdec data key as hex string> <your encdec tweak key as hex string> | xxd -r -p > hdd_key.bin | ||
ls -l vflash_key.bin | ls -l vflash_key.bin | ||
Line 296: | Line 295: | ||
* A new Linux kernel patch is necessary. | * A new Linux kernel patch is necessary. | ||
* PS3 partition table is of size 0x1000 bytes. | * PS3 partition table is of size 0x1000 bytes. | ||
=Links= | =Links= | ||
Line 593: | Line 303: | ||
* http://www.hopelesscase.com/linuxnotes/encrypted_filesystems/dmsetup_losetup_and_mount | * http://www.hopelesscase.com/linuxnotes/encrypted_filesystems/dmsetup_losetup_and_mount | ||
* http://lxr.free-electrons.com/source/block/partitions/ | * http://lxr.free-electrons.com/source/block/partitions/ | ||