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 35: | Line 30: | ||
echo "0 200 bswap16 /dev/loop0" | dmsetup create test | echo "0 200 bswap16 /dev/loop0" | 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 | ||
Line 56: | Line 49: | ||
* | * | ||
00019000 | 00019000 | ||
</pre> | </pre> | ||
= | ==dm-crypto== | ||
= | |||
=Links= | =Links= | ||
Line 592: | Line 59: | ||
* 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 | ||