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 61: | Line 56: | ||
===Test with ps3da=== | ===Test with ps3da=== | ||
<pre> | <pre> | ||
Line 71: | Line 63: | ||
ps3dm sm set_del_encdec_key 0x110 | ps3dm sm set_del_encdec_key 0x110 | ||
ps3dm sm set_del_encdec_key 0x111 | ps3dm sm set_del_encdec_key 0x111 | ||
dd if=/dev/ps3da bs=512 count=2 of=hdd_enc.bin | dd if=/dev/ps3da bs=512 count=2 of=hdd_enc.bin | ||
losetup /dev/loop1 ./hdd_enc.bin | losetup /dev/loop1 ./hdd_enc.bin | ||
echo "0 2 bswap16 /dev/loop1" | dmsetup create test | echo "0 2 bswap16 /dev/loop1" | dmsetup create test | ||
Line 112: | Line 99: | ||
</pre> | </pre> | ||
==dm- | ==dm-crypto== | ||
= | |||
=Links= | =Links= | ||
Line 592: | Line 107: | ||
* 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 | ||