Editing Mounting HDD in Linux
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: | ||
Unlike | * Unlike the ps3, where every part of perconsole security (including the HDD) is dictated by the eid_root_key, the ps4 has two perconsole keys for the HDD, one is handled by SAMU (we cannot obtain this key atm) and the other is handled by the South Bridge / AEOLIA / BELIZE (which we can obtain) | ||
Here | * Here I describe the steps to mount your hdd on the pc using the cryptmount utility on Linux | ||
= | = Setup = | ||
* | * EAP HDD Key (check in your kernel dump and in hxxps://github.com/Ps3itaTeam/ps4-kexec/blob/master/magic.h kern_off_eap_hdd_key offset) | ||
* | * Linux Distro (i'm using xubuntu live for this) | ||
* | * cmtab file | ||
= | == Step by Step Guide (CUH-1000 and CUH-1100) == | ||
* cmtab file can be as follows (example for xubuntu live) | |||
<pre> | |||
# /etc/cryptmount/cmtab - encrypted filesystem information for cryptmount | |||
# try 'man 8 cryptmount' or 'man 5 cmtab' for more details | |||
user { | |||
dev=/dev/sda27 | |||
dir=/home/xubuntu/Desktop/user | |||
flags=user,nofsck | |||
== | fstype=ufs mountoptions=ro,noatime,noexec,ufstype=ufs2 | ||
cipher=aes-xts-plain64 | |||
keyfile=/home/xubuntu/Desktop/eap.bin | |||
keyformat=raw | |||
} | |||
</pre> | |||
* if your key in the kernel dump looks like this: | |||
<pre> | <pre> | ||
D2 60 86 B3 8B D2 D3 5A EC 76 DB DE 50 30 00 40 | D2 60 86 B3 8B D2 D3 5A EC 76 DB DE 50 30 00 40 | ||
Line 32: | Line 37: | ||
* then the correct key will be: | * then the correct key will be: | ||
<pre> | <pre> | ||
40 00 30 50 DE DB 76 EC 5A D3 D2 8B B3 86 60 D2 | 40 00 30 50 DE DB 76 EC 5A D3 D2 8B B3 86 60 D2 | ||
Line 37: | Line 43: | ||
</pre> | </pre> | ||
* after the key file eap.bin is created and the user folder is also created in the Desktop, install cryptmount | |||
<pre> | <pre> | ||
Line 53: | Line 49: | ||
</pre> | </pre> | ||
* and then mount your partition | |||
<pre> | <pre> | ||
sudo | sudo cryptmount user | ||
</pre> | </pre> | ||
=== | == == Step by Step Guide (CUH-1100 and above) == | ||
* cmtab | * In this case the cmtab will have a small change | ||
<pre> | <pre> | ||
# /etc/cryptmount/cmtab - encrypted filesystem information for cryptmount | # /etc/cryptmount/cmtab - encrypted filesystem information for cryptmount | ||
Line 70: | Line 65: | ||
dir=/home/xubuntu/Desktop/user | dir=/home/xubuntu/Desktop/user | ||
flags=user,nofsck | flags=user,nofsck | ||
fstype=ufs mountoptions=ro,noatime,noexec,ufstype=ufs2 | fstype=ufs mountoptions=ro,noatime,noexec,ufstype=ufs2 | ||
cipher=aes-xts-plain64 | cipher=aes-xts-plain64 | ||
ivoffset=111669149696 | ivoffset=111669149696 | ||
keyfile=/home/xubuntu/Desktop/eap.bin | |||
keyfile=/home/ | |||
keyformat=raw | keyformat=raw | ||
} | } | ||
</pre> | </pre> | ||
* where iv offset is a number of partition - 1 << 32 | |||
* here it'll be (27-1)<<32=111669149696 | |||
< | |||
< | |||
{{Linux}} | {{Linux}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |