After the release of UFS2Tool by SvenGDK, comes PSFFPKG, a small program developed by Sinajet that aims to drastically simplify the creation of files .ffpkgintended to be mounted on PlayStation 5 consoles via ShadowMount.

PSFFPKG was born with a precise objective: to eliminate the most technical and cumbersome part of the process of creating a PS5-compatible UFS2 image.

When working with full game dumps or backups, you normally need to use UFS2Tool from command line, manually setting parameters such as filesystem version, block size, and fragments, as well as properly calculate the space needed to hold all files.

A not complex operation for those who have experience with FreeBSD or Filesystem Unix, but much less immediate for those who are now approaching the scene.

PSFFPKG intervenes right here. It is a lightweight Windows utility, written in Python but distributed as ready-to-use executable, which acts as an automated interface for UFS2Tool.

The user simply has to indicate the folder that contains the dump of the game PS5, that is, the complete structure of the extracted files, and the program takes care of the rest.

Automatically calculates the size of the folder, adds a security space to avoid capacity problems, calls UFS2Tool with the correct parameters to create a compatible UFS2 filesystem and finally generates the file with extension .ffpkg, renaming it according to the source folder.

This prevents you from manually typing complex commands and intervening by hand on the rename of the final file. The result is a much faster and more accessible process, which reduces the margin of error and makes the preparation of packages ready even for those unfamiliar with the technical details of the UFS2 filesystem.

The tool offers an extremely simple interactive mode: just run the file as administrator, paste the path of the dump folder and wait for the package to be created.

For those who work with scripts or have to automate multiple operations, there is also a command line mode that allows you to specify input and output path directly.

The parameters used are already optimized for PS5, with UFS2 as a format, block size set at 32768 and fragments at 4096, following the guidelines also derived from earthonion research on the mkufs2 project.

From the point of view of the requirements, you need to have a recent Windows system, the latest version of UFS2Tool in the same folder as the PSFFPKG executable and a jailbroken PS5 with ShadowMount updated to version 1.4 or higher.

ShadowMount allows you to mount files directly .ffpkgas virtual partitions on the console, avoiding in some cases more complex procedures or the complete transfer of data to the internal disk.

Features

  • Automatic conversion: Calculate the directory size and automatically execute the parameters required to create a UFS2 image.
  • Automatic Rename: Automatically rename the output image in the format .ffpkg.
  • Double Mode: Supports both interactive mode (double-click boot) and command-line interface (CLI) for batch scripts.
  • Administrator privileges: Automatically requires the elevation of privileges (Run as administrator) to ensure the correct operation of operations on the filesystem.

Requirements

To use the files .ffpkggenerated on the console, they are necessary:

Installation and configuration

  • Download the latest version of UFS2Tool from the link above and extract the archive .zip.
  • Download the PSFFPKG executable:
  • Key step: Position PSFFPKG.exeand UFS2Tool.exein the same folder.
  • The folder structure must be as follows:

 UFS2Tool
 ├──  PSFFPKG.exe
 ├──  UFS2Tool.exe
 └── ...

Use

Method 1: Interactive mode (simple)

  • Right click on PSFFPKG.exeand select Run as administrator (the tool will still attempt automatic elevation if you forget it).
  • When prompted, paste the path of the Game Dump folder.
  • (Optional) Enter a destination location or press Enter to save to the current folder.
  • The tool will create the image and save it as NomeCartella.ffpkg.

Method 2: Command line (CLI)

You can use this tool in your own scripts or via CMD/PowerShell.

Syntax: powershell PSFFPKG.exe "Path\To\GameDump" "Path\To\OutputFolder"

Example: powershell PSFFPKG.exe "C:\Games\CUSA12345" "D:\PS5_Packages" Note: If the output path is omitted, the file will be saved in the current directory.

Note: If the output path is omitted, the file will be saved in the current directory.

How it works

This tool calculates the total size of the input directory, adds a security margin (slack space) and builds the UFS2 image.

The logic used to create the filesystem (block size and format) is based on the methodology documented by earthonion in the mkufs2 repository for creating valid UFS images on FreeBSD.

The tool runs the following command via UFS2Tool: UFS2Tool.exe newfs -O 2 -b 32768 -f 4096 -D "Input_Dir" "Temp_Image.img"

Once the process is complete, the image is renamed with extension .ffpkgto be ready to use with ShadowMount.

Download: PSFFPKG

Download: UFS2Tool

Download: ShadowMount

Original article in Italian: biteyourconsole.net

Categorized in: