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= | ||
* The goal is to mount PS3 HDD on PC Linux and make changes to it. | * The goal is to mount PS3 HDD on PC Linux and make changes to it. | ||
* Use device mapper for transparent encryption/decryption. | * Use device mapper for transparent encryption/decryption. | ||
=Device Mapper= | =Device Mapper= | ||
Line 13: | Line 8: | ||
* A really cool feature of Linux 2.6/3. | * A really cool feature of Linux 2.6/3. | ||
* The device mapper is stackable. | * The device mapper is stackable. | ||
==dm-bswap16== | ==dm-bswap16== | ||
Line 28: | Line 22: | ||
modprobe loop | modprobe loop | ||
modprobe dm_mod | modprobe dm_mod | ||
insmod ./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 73: | Line 68: | ||
# for now don't use ps3da device directly, dump sectors to file and bind it to loop device | # for now don't use ps3da device directly, dump sectors to file and bind it to loop device | ||
# later we will use ps3da device directly | # later we will use ps3da device directly | ||
dd if=/dev/ps3da bs=512 count=2 of=hdd_enc.bin | dd if=/dev/ps3da bs=512 count=2 of=hdd_enc.bin | ||
Line 112: | Line 107: | ||
</pre> | </pre> | ||
==dm- | ==dm-crypto== | ||
* We don't need xts_aes application anymore. | * We don't need xts_aes application anymore. | ||
* Linux kernel does enctyption/decryption of data transparently for us. | * Linux kernel does enctyption/decryption of data transparently for us. | ||
=Links= | =Links= | ||
Line 592: | Line 118: | ||
* http://www.freeotfe.org/docs/Main/mobile_site/Linux_examples__dm-crypt.htm | * http://www.freeotfe.org/docs/Main/mobile_site/Linux_examples__dm-crypt.htm | ||
* http://www.hopelesscase.com/linuxnotes/encrypted_filesystems/dmsetup_losetup_and_mount | * http://www.hopelesscase.com/linuxnotes/encrypted_filesystems/dmsetup_losetup_and_mount | ||