Category PS4 Guides and Tutorials       Thread starter PSXHAX       Start date Mar 16, 2020 at 2:38 AM       7,004       11            
Since the days of PS3 Linux PlayStation sceners have been Upgrading PS4 Hard Drives, Installing Linux on PS4 and working on various Linux Homebrew Projects including @zecoxao's (Twitter) latest guide on Mounting a PlayStation 4 (PS4) HDD in Linux on a PC for those interested. 🐧

This comes following his previous Tutorial to Download PS4 PKGs on the Latest PlayStation 4 Firmware, check it out below from PSDevWiki.com: Mounting HDD in Linux
  • 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 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 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)
  • cmtab file can be as follows (example for xubuntu live)
Code:
# /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
}
  • if your key in the kernel dump looks like this:
Code:
D2 60 86 B3 8B D2 D3 5A EC 76 DB DE 50 30 00 40
15 D6 AE 04 44 3D A8 59 4B 03 3C 1F 0A DD FA 6B
  • then the correct key will be:
Code:
40 00 30 50 DE DB 76 EC 5A D3 D2 8B B3 86 60 D2
6B FA DD 0A 1F 3C 03 4B 59 A8 3D 44 04 AE D6 15
  • after the key file eap.bin is created and the user folder is also created in the Desktop, install cryptmount
Code:
sudo apt install cryptmount
  • and then mount your partition
Code:
sudo cryptmount user
== Step by Step Guide (CUH-1100 and above)
  • In this case the cmtab will have a small change
Code:
# /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
    ivoffset=111669149696

    keyfile=/home/xubuntu/Desktop/eap.bin
    keyformat=raw
}
  • where iv offset is a number of partition - 1 << 32
  • here it'll be (27-1)<<32=111669149696
Cheers to @HydrogenNGU via Twitter for the heads up on this! :beer:
Mounting a PlayStation 4 (PS4) HDD in Linux on PC Guide by Zecoxao.jpg
 

Comments

Sergi8

Member
Contributor
Verified
If only this came up a few things ago I would have used to copy some games from my 4TB external HDD to the 2TB one.
Thanks anyway, great work indeed.
 
Recent Articles
PS5 DualSense Wireless Controller to Have Updatable Software
When you thought updating PlayStation 5's Firmware just to play a video game is enough hassle, Sony kicked things up a notch with confirmation on the DualSense Wireless Controller official page...
Latest PS4 Games Joining PlayStation Now in August 2020
Today Sony revealed the latest PS4 additions to their PlayStation Now digital video game streaming service this August for PS Now members will be Hitman 2, Greedfall and Dead Cells. 😀 Here's more...
Sony Reveals PS5 Details on Compatible PS4 Peripherals and Accessories
In PS5 News today, Sony revealed details on compatible PS4 peripherals and accessories with their upcoming PlayStation 5 console launch that is just months away now. After unveiling the PS5...
PS4 IPv6 UAF 6.70-6.72 Kernel Exploit with Patches, Maybe More Stable!
Since his PS4 Save Mounter Utility release, the PS4 6.20 ROP Execution Method, PS4 Webkit Bad_Hoist Exploit, 7.02 PS4 KEX, PS4 Webkit Exploit 6.72 Port, PS4 6.72 Jailbreak Exploit, Backporting PS4...
Top