PS4 HDD reading

Kernel modules matching to specific kernel versions. On first I have a plan to make this damn ufs.ko for specific kernel used in one of the live sessions (to avoid dropping on the user compiling stuff, existence of repositories which changing address sometimes, to making it easy to find) and pack everything needed into *.deb package, just ready to install after live session boot. But unfortunately it is not an easy task to work with default kernel (I mean, my knowledge about Linux is to small) and I gave up eventually.

Two people compiled UFS modules for two Linux distros (one was for some Ubuntu yellowish remix), I mean those with kernels build-in - so You don't need install Linux or install new kernel.

Additional idea is to convince e.g Clem from Linux Mint project, to by default turned on write for ufs module and all problems would be solved. ^^

Oh, and for sure PSitarch v2 for PS4 have recompiled ufs.ko because they allows to write into internal HDD. So You can use different hacked PS4 to write data into this HDD (but of course from USB and You need provide Your own EAP Key, matching to encryption used on this HDD). Some kind of twisted workaround, I know, but works. ;p
 
Kernel modules matching to specific kernel versions. On first I have a plan to make this damn ufs.ko for specific kernel used in one of the live sessions (to avoid dropping on the user compiling stuff, existence of repositories which changing address sometimes, to making it easy to find) and pack everything needed into *.deb package, just ready to install after live session boot. But unfortunately it is not an easy task to work with default kernel (I mean, my knowledge about Linux is to small) and I gave up eventually.

Two people compiled UFS modules for two Linux distros (one was for some Ubuntu yellowish remix), I mean those with kernels build-in - so You don't need install Linux or install new kernel.

Additional idea is to convince e.g Clem from Linux Mint project, to by default turned on write for ufs module and all problems would be solved. ^^

Oh, and for sure PSitarch v2 for PS4 have recompiled ufs.ko because they allows to write into internal HDD. So You can use different hacked PS4 to write data into this HDD (but of course from USB and You need provide Your own EAP Key, matching to encryption used on this HDD). Some kind of twisted workaround, I know, but works. ;p
wow this is more complex than I thought aha Now let me get this straight, what you're saying at the end is if I have a hacked ps4 with PSitarch installed I can plug in another ps4's hdd(via usb) and write to it? Obviously dropping the eap key for the drive in there
 
Yes, if You have access to another hacked PS4 (or the same one of course, but if You have the same, isn't easier is just to use FTP payload? :P) which run this specific Linux distribution (Psitarch v2) then You have write support. In that case, You must use some USB active hub to be able connect: keyboard, mouse, pendrive with this Linux to boot from, SATA controller to USB for HDD from different PS4, and pendrive with EAP key for HDD from different console (eventually download it from local network). So in summary, something with around 5 USB ports (min 3 if kb+mouse be on one receiver and eap key provided from network).

And of course do whole terminal voodoo stuff, as what You will see by default in file manager it will be partitions from internal HDD, while You want access to the one connected via USB and create mappers with decrypted partitions and mounting them.

In summary, on hacked PS4 booting Linux, You can write to PS4 or PS3 HDD via USB if You provide keys for them.

So it is kind of twisted setup. ^^
 
Last edited:
Yes, if You have access to another hacked PS4 (or the same one of course, but if You have the same, isn't easier is just to use FTP payload? :P) which run this specific Linux distribution (Psitarch v2) then You have write support. In that case, You must use some USB active hub to be able connect: keyboard, mouse, pendrive with this Linux to boot from, SATA controller to USB for HDD from different PS4, and pendrive with EAP key for HDD from different console (eventually download it from local network). So in summary, something with around 5 USB ports (min 3 if kb+mouse be on one receiver and eap key provided from network).

And of course do whole terminal voodoo stuff, as what You will see by default in file manager it will be partitions from internal HDD, while You want access to the one connected via USB and create mappers with decrypted partitions and mounting them.

In summary, on hacked PS4 booting Linux, You can write to PS4 or PS3 HDD via USB if You provide keys for them.

So it is kind of twisted setup. ^^

That is one heck of a twisted setup.... jesus. I assume I could use cryptmount on Psitacrh and just configure the cmtab to open the ps4 hdd plugged in via usb and setting the location of the eap key for the said hdd abd read/write till my hearts content haha
 
Yes.

- - -
Simplified:
  1. If You want write something into internal HDD on hacked PS4 on the same PS4, then use FTP server (because it is faster and easier than 2nd paragraph).
  2. If You want write something into internal HDD connected to USB on hacked PS4 from another PS4, then use Linux Psitarch v2.
  3. If You want write something into internal PS4's HDD on PC, then You must use any Linux and compile ufs.ko with write permission.
 
Yes.

- - -
Simplified:
  1. If You want write something into internal HDD on hacked PS4 on the same PS4, then use FTP server (because it is faster and easier than 2nd paragraph).
  2. If You want write something into internal HDD connected to USB on hacked PS4 from another PS4, then use Linux Psitarch v2.
  3. If You want write something into internal PS4's HDD on PC, then You must use any Linux and compile ufs.ko with write permission.


Number 2 is what I'm looking at. When I'm on Linux Psitarch on hacked PS4 with hdd plugged in from other PS4(USB) can I use cryptmount on Psitarch to mount it? following the same procedure as on PC?
 
You can as I already said that. Yet that is kind a very strange setup I must admit. Why not do it on PC? Just download matching Linux distribution to "custom" ufs.ko. Also why use cryptmount in the first place?

Anyway, You must get the device name of this HDD connected via USB to know what to define in "dev=". This should help You:
Code:
lsblk -p -o MODEL,SIZE,NAME
And remember to unmount every mounted partition of this HDD before You quit Linux.
 
You can as I already said that. Yet that is kind a very strange setup I must admit. Why not do it on PC? Just download matching Linux distribution to "custom" ufs.ko. Also why use cryptmount in the first place?

Anyway, You must get the device name of this HDD connected via USB to know what to define in "dev=". This should help You:
Code:
lsblk -p -o MODEL,SIZE,NAME
And remember to unmount every mounted partition of this HDD before You quit Linux.


I tried installing linux and loading that custom ufs.ko module matching to the ubuntu cinnamon remix linked in this forum page and it didn't work, didn't let me write to it so I gave up. also cryptmount automates it so it's let of a hassle lol
 
@rj017 I made a script for You.
  • No cryptmount needed.
  • It is for PC, if You want use it on PS4 uncomment rw remounts (not comment ro, both must exist for write permission for unknown reason...).
  • Psitarch based on Arch Linux (?), I don't know if this is one of Debian family, if not, then replace "sudo" to its equivalent in this environment
Didn't test it. But should works. :-p

HOWTO:
  1. Unpack it into home dir.
  2. Place eap key in "~/ps4/keys/".
  3. Run script.
  4. Do magic stuff on PS4 HDD (mount points are in "~/ps4/storage/"). ;)
  5. Umount everything (it is last step in script).
I don't know what about root permissions on PS4 HDD.

So You are stepping on uncharted land. ^^

//attachment removed, toolkit moved to site resource section
 
Last edited:
@rj017 I made a script for You.
  • No cryptmount needed.
  • It is for PC, if You want use it on PS4 uncomment rw remounts (not comment ro, both must exist for write permission for unknown reason...).
  • Psitarch based on Arch Linux (?), I don't know if this is one of Debian family, if not, then replace "sudo" to its equivalent in this environment
Didn't test it. But should works. :-p

HOWTO:
  1. Unpack it into home dir.
  2. Place eap key in "~/ps4/keys/".
  3. Run script.
  4. Do magic stuff on PS4 HDD (mount points are in "~/ps4/storage/"). ;)
  5. Umount everything (it is last step in script).
I don't know what about root permissions on PS4 HDD.

So You are stepping on uncharted land. ^^
That is very kind of you to take the time to do this :O I wouldn't know where to start! Does it matter what linux distribution I use? ubuntu, mint, popos, etc? Do I need that ufs.ko file? When you say about root permissions are you saying you don't know if rw will be working? lol I know how to mount, just want to be able to write(move,copy,make folder) on the ps4 hdd. Will this script allow me to do so?


Thanks again for all your replies! :D
 
You're welcome. Actually I made already his older brother for PS3, so... ;p

I've updated script in earlier post because found some mistake in unmounting. So You should use WIP-2 (v0.9b inside).
  • Doesn't matter as long it is Debian family (Ubuntu, Mint etc.).
  • You must deal with ufs.ko on Your own of course (insmod this module as root). Script doesn't check it and doesn't doing it yet. Sorry. :P
  • Root is like Administrator in Windows. In case of Linux Mint, in Nemo (default file manager in Cinnamon), You will see red ribbon indicating that You are root guy now.
I'll try to look into this ufs in this week. So maybe You will be free from this contraption.

Yet, I'll be glad if You can test this script even in read only mode as in default state. ;) Because I cannot as I don't have PS4 HDD and his eap key.
 
You're welcome. Actually I made already his older brother for PS3, so... ;p

I've updated script in earlier post because found some mistake in unmounting. So You should use WIP-2 (v0.9b inside).
  • Doesn't matter as long it is Debian family (Ubuntu, Mint etc.).
  • You must deal with ufs.ko on Your own of course (insmod this module as root). Script doesn't check it and doesn't doing it yet. Sorry. :P
  • Root is like Administrator in Windows. In case of Linux Mint, in Nemo (default file manager in Cinnamon), You will see red ribbon indicating that You are root guy now.
I'll try to look into this ufs in this week. So maybe You will be free from this contraption.

Yet, I'll be glad if You can test this script even in read only mode as in default state. ;) Because I cannot as I don't have PS4 HDD and his eap key.


I will boot into linux cinnamon as stated in a post way above. I type "su" to become root, from there i just insmod the ufs.ko file and run your 0.9b script?(as soon as i find it lol)

I will do it without root as well and let you know. Will be sometime this week
 
Without, no. :)

Because UFS2 filesystem handling is handle by ufs.ko, a kernel module designed to use for UFS family fs. If there is no write support in this module, then there is no way to write into mounted UFS2 storage using kernel stuff.
 
Last edited:
I will keep fingers crossed. :D
In this case, read carefully what I wrote about edit script in post with first version.
 
But You must compile this module by yourself after kernel config changes to allow write. I saying this probably 5th time already. The problem not lie in way how this module is load but what this module can. And default build into Linux kernel cannot write into UFS2. That's the reason why we need our ufs fella, not default slow crippled one. :P
 
Back
Top