0

I have an external drive (HD1) that I have formatted as an exFAT via Playstation (there is a specific option to do that and use hard disks as storage of games and apps). I want to use this one drive to copy data from another external drive (HD2) that I formerly used for the same scope, but then suddenly got logically corrupted.

I can use rlinux on Ubuntu 22.04 to scan HD2 and see all recoverable data. I have no experience with this but I thought I can copy all recovered data to the other drive (HD1) and this might work. However, ubuntu does not see the PS4 formatted exFAT drive, not even if I mount it, not even after I install exfat-utils and exfat-fuse:

$ sudo mkdir /media/exfat
$ sudo mount -t exfat /dev/sdb /media/exfat
mount: /media/exfat: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.

Alternatively, I can use the native gnome-disk-utility 42.0 to format HD1 as an exFAT via ubuntu but, after I tried, this drive is not recognized by the PS4.

How can I mount HD1 formatted by Playstation or, alternatively, how can I format HD1 via ubuntu in a format that is recognized by Playstation?

EDIT: Upon giving sudo fdisk -l in a new terminal I recognize the HD1 is disk /dev/sda:

Disk /dev/sda: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: EXTERNAL_USB    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Then I try:

$ lsblk /dev/sda
NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda    8:0    0  3.6T  0 disk 

There was another comment (now gone) asking for blkid. Here it is just in case:

$ blkid
/dev/nvme0n1p3: LABEL="UBUNTU" UUID="094dfdd2-9d6c-4690-aec1-20c03709d58a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7a15206f-0a66-48e3-a2ed-d23033eaa91e"

Also, after installing exfatprogs and using a more usual dir to mount the exFAT PS4 formatted drive, I get the error:

$ sudo mount.exfat-fuse -d /dev/sda /mnt/exfatPS4
FUSE exfat 1.3.0+git20220115
ERROR: exFAT file system is not found.

Upon lsbk use after plugging in the same external drive I get:

loop78        7:78   0 400.1M  1 loop /snap/
gnome-46-2404/66
sda           8:0    0   3.6T  0 disk 
nvme0n1     259:0    0 953.9G  0 disk 
├─nvme0n1p1 259:1    0   790M  0 part /boot/efi
├─nvme0n1p2 259:2    0     5G  0 part 
└─nvme0n1p3 259:3    0 948.1G  0 part /var/snap/firefox/common/host-hunspell
Py-ser
  • 687

2 Answers2

0

To manipulate exFAT partitions reliably in newer versions of Linux, eg. Ubuntu 22.04, rather install the package "exfatprogs" which replaces the older "exfat-utils" package (obsolete, so no longer receives updates when changes are made to the exFAT standard):

sudo apt-get purge exfat-utils
sudo apt-get install exfatprogs

Be careful with the drive that you mount or format, as /dev/sda or /dev/nvme0n1p3 is likely your system drive for your PC. Also, I suggest that you do not reformat the drive in Ubuntu. The PS4 may have some specific requirements, as is often the case with anything running F/W and a tweaked OS. Rather try to read the drive as-is in Ubuntu. Failing that, I have also had to find a Windows machine to repair an exFAT drive, as the Linux drivers just didn't have the latest options required to clear an error I had with a deleted file that was present, but didn't show.

Check dmesg for details when you have added the PS4 drive, to see if it is picked up by the system (you can Google the check commands), and then use GUI like "gparted", or CLI commands like "lsblk" (see other options here):

#> lsblk
<snip>
loop9         7:9    0   516M  1 loop  /snap/gnome-42-2204/202
sda           8:0    0 465.8G  0 disk  
└─sda1        8:1    0 465.8G  0 part  
  └─EXT100G 254:1    0 465.8G  0 crypt /mnt/external
nvme0n1     259:0    0 238.5G  0 disk  
├─nvme0n1p1 259:1    0   250M  0 part  /boot/efi
├─nvme0n1p2 259:2    0     2G  0 part  [SWAP]
└─nvme0n1p3 259:3    0 236.2G  0 part  
  └─cr_root 254:0    0 236.2G  0 crypt /

to list your devices. Note down the partition of the newly inserted drive, eg. /dev/sda1 etc. Tutorials may help explain some of the steps. Then mount to the dir you created (you example: /media/exfat - although I'd use /mnt/exfatPS4 or something, as mnt is used for user mounts by convention, and media for hotplug auto-mounts etc.):

I'm using the format suggested in the Ubuntu manpages for 22.04, and do as root:

sudo mount.exfat-fuse -d [-o options] /dev/sda1 /media/exfat

-d: gives you debug

-o [options]: as per the man page - quite limited, but you can specify the uid/gid to match the permissions you want on the folder you created.

If you do not see any partitions listed in the output of lsblk, eg. just sda, no sda1, then you need to repair the drive partition table first, before you try to fix exFAT format issues (with eg. "fsck.exfat -r" from exfatprogs package). This is a different question, with many prior answers.

Also, see related question kernel and exfatprogs do not support same mount options as exfat-utils as you need to take this into account when you mount the PS4-formatted exFAT drive, especially if you are reading any older posts on the topic. As such I suggest that you use the above mount.exfat-fuse command, as per the Ubuntu manpages.

You can also be confident that you will be able to make it work, as the PS4's operating system is Orbis OS, which is based on FreeBSD 9. See FreeBSD question for background, although remember that this is for FreeBSD not Ubuntu!

sarlacii
  • 528
-3

Try to install "ntfs-3g" https://forums.linuxmint.com/viewtopic.php?t=387308

HBtools
  • 23