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 19: | Line 13: | ||
* Swaps bytes in each 16-bit word. | * Swaps bytes in each 16-bit word. | ||
* It is necessray for HDD/VFLASH encryption/decryption. | * It is necessray for HDD/VFLASH encryption/decryption. | ||
GIT repo: http://gitorious.ps3dev.net/ps3linux/dm-bswap16 | GIT repo: http://gitorious.ps3dev.net/ps3linux/dm-bswap16 | ||
Line 28: | Line 21: | ||
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 34: | Line 28: | ||
losetup /dev/loop0 ./test.bin | losetup /dev/loop0 ./test.bin | ||
echo "0 200 bswap16 /dev/loop0" | dmsetup create | echo "0 200 bswap16 /dev/loop0" | sudo dmsetup create test | ||
echo "00 01 00 01 00 01" | xxd -r -p > /dev/mapper/test | echo "00 01 00 01 00 01" | xxd -r -p > /dev/mapper/test | ||
hexdump -C /dev/mapper/test | hexdump -C /dev/mapper/test | ||
Line 47: | Line 37: | ||
* | * | ||
00019000 | 00019000 | ||
hexdump -C /home/glevand/test.bin | hexdump -C /home/glevand/test.bin | ||
Line 56: | Line 43: | ||
* | * | ||
00019000 | 00019000 | ||
</pre> | </pre> | ||
=Links= | =Links= | ||
Line 592: | Line 51: | ||
* 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 | ||