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 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 298: | Line 297: | ||
* Implemented PS3 partition support in Linux kernel. See patch '''0035-ps3-partition.patch''' here http://gitorious.ps3dev.net/ps3linux/kernel-patches-35 | * Implemented PS3 partition support in Linux kernel. See patch '''0035-ps3-partition.patch''' here http://gitorious.ps3dev.net/ps3linux/kernel-patches-35 | ||
* Use kpartx tool to reread partition table. | * Use kpartx tool to reread partition table. | ||
==kpartx== | ==kpartx== | ||
Line 335: | Line 305: | ||
* We need a patch which adds PS3 partition table support. | * We need a patch which adds PS3 partition table support. | ||
* Official GIT repo: http://git.opensvc.com/multipath-tools/.git | * Official GIT repo: http://git.opensvc.com/multipath-tools/.git | ||
===Patching and Building=== | ===Patching and Building=== | ||
Line 530: | Line 499: | ||
=Making Changes to cell_ext_os_area VFLASH Region= | =Making Changes to cell_ext_os_area VFLASH Region= | ||
* You will need it if you flash bad petitboot which doesn't boot and just hangs. | * You will need it if you flash bad petitboot which doesn't boot and just hangs. | ||
* You have to connect your HDD to your PC, e.g. with SATA-2-USB adapter. | * You have to connect your HDD to your PC, e.g. with SATA-2-USB adapter. | ||
* We will | * We will cleat OtherOS boot flag and GameOS will boot again. | ||
* We don't have to decrypt VFLASH, only HDD, because cell_ext_os_area is NOT encrypted with VFLASH key, only with HDD key. | * We don't have to decrypt VFLASH, only HDD, because cell_ext_os_area is NOT encrypted with VFLASH key, only with HDD key. | ||
* I tested everything myself, it's safe to use. | * I tested everything myself, it's safe to use. | ||
Line 560: | Line 526: | ||
# it begins at offset 0xe740200 | # it begins at offset 0xe740200 | ||
dd if=/dev/mapper/hdd_crypt1 of=params.bin bs=1 count=512 skip=$(( | dd if=/dev/mapper/hdd_crypt1 of=params.bin bs=1 count=512 skip=$((0x0xe740200)) | ||
# now clear the boot flag | # now clear the boot flag | ||
Line 567: | Line 533: | ||
# now we write it back | # now we write it back | ||
dd of=/dev/mapper/hdd_crypt1 if=params.bin bs=1 count=512 seek=$(( | dd of=/dev/mapper/hdd_crypt1 if=params.bin bs=1 count=512 seek=$((0x0xe740200)) | ||
sync | sync | ||
kpartx-ps3 -d /dev/mapper/hdd_crypt | kpartx-ps3 -d /dev/mapper/hdd_crypt | ||
Line 578: | Line 542: | ||
# now GameOS should boot and you can flash a new petitboot :) | # now GameOS should boot and you can flash a new petitboot :) | ||
</pre> | </pre> | ||
Line 595: | Line 557: | ||
* http://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/ | * http://backreference.org/2010/09/25/access-partitions-in-non-disk-block-devices-with-kpartx/ | ||
* https://www.dan.me.uk/blog/2012/05/05/full-disk-encryption-in-freebsd-9-x-well-almost/ | * https://www.dan.me.uk/blog/2012/05/05/full-disk-encryption-in-freebsd-9-x-well-almost/ | ||