Using a backup/restore point of your USB Linux install

Once you have installed Linux and configured it the way you want, (added Retroarch playlists, setup Kodi, added conky settings, changed language settings, etc) it's very important to back up your install. Every version of PS4 Linux is a house of cards which is set up in a particular way to run on your PS4 and if you are new to using it, chances are you're going to have to reinstall and reconfigure it at least once before you're happy with it. For example, a common mistake is "sudo pacman -Syu" in Manjaro or installing updates when prompted in the OS itself. This is going to install incompatible drivers with the PS4 and break your install. Having this backup also takes away the feeling of walking on thin ice when you are getting an understanding of what PS4 Linux can and can't do and trying new things.

Rather than going through the timely process of reinstalling Linux and setting up your configuration again, you can restore a backup with a few clicks on your Windows machine and save a lot of time. You might even want to backup a fresh install if you wish.

I welcome people making tutorials on setting up PS4 Linux to include this thread as an additional step. It saves a lot of heartache and stress.

You will need:

- The USB storage containing your Linux install
- A Windows PC*
- External storage (optional)
- win32diskimager (https://sourceforge.net/projects/win32diskimager/files/Archive/)

*Must have the same amount of free space as the capacity of the USB storage with your Linux install on it.

Making a Backup

1. Install win32diskimager

The URL is included above. Either keep it installed, keep the install file or make note of that URL. You'll need it to recover backups.

2. Run win32diskimager

3. Insert your USB storage containing your Linux install to your PC

The drop down box under "Device" should now display the drive allocation of your USB storage

4. Specify the location of your backup

Click on the blue folder icon under "Image File" then click through the file explorer and put it somewhere safe. Under filename, enter "backup.img" (you must include the .img extension manually)

5. Click "Read"

This will take a while. The file size of the backup file will be the same as the capacity of the USB storage.

6. (Optional) Move backup.img to another external storage device

You can rename the file as you see fit too.

Now if you install the wrong drivers or change something that breaks your install, you can restore your backup without having to reinstall. This backs up all of the partitions which are both visible and invisible to Windows. You can follow these next steps to restore your backup if needed.

Restoring a Backup

1. Make sure the backup file is on your PC

2. Run win32diskimager

3. Connect your desired USB storage to boot Linux from to your PC

It's safest to use the same USB storage rather than a similar one of the same size. Storage devices don't always display the storage space they advertise and if you use a larger storage, it can mess with your Linux partition.

When the USB storage is detected, the drop down box under "Device" should now display the drive allocation of your USB storage. Make sure no other USB storage is connected to your PC at this time. You don't want to write the .img file to the wrong drive.

4. Open the backup.img file in win32diskimager

Click the blue folder icon under "Image File" and locate your backup file on your PC.

5. Click "Write"

This will also take some time. I have a 128gb USB 3.0 stick and it takes about 30 minutes. Once win32diskimager says it is done, you can safely disconnect the device from your PC.

6. Connect the USB storage to your PlayStation 4

You can now boot Linux as you normally would with your restored backup.
 

Miky289

Active Member
Newcomer
Joined
Jan 4, 2021
Messages
30
Trophies
0
Age
35
XP
118
Country
Italy
nice guide, but if i would like to create a .tar.xz archive
to be able to install on another drive?
Thank you
 

Miky289

Active Member
Newcomer
Joined
Jan 4, 2021
Messages
30
Trophies
0
Age
35
XP
118
Country
Italy
Try Clonezilla

But this program I don't think that compresses everything to tar.xz file is similar to that of the guide or am I wrong? Anyway thanks for the answer I want to create my tar.xz package to be able to install on ps4 in that way I am obliged to use the same disk size
 

bbqtool

Well-Known Member
OP
Member
Joined
Aug 21, 2018
Messages
174
Trophies
0
Age
39
XP
1,278
Country
Australia


No it doesn't compress the file to tar.xz but you can clone your drive with all partitions onto a bigger drive.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I love how insurance companies can deny procedures because they deem it not medically necessary despite the procedure being ordered by a doctor
  • K3Nv2 @ K3Nv2:
    Going with that right now with a dental claim morons put the wrong company name and rejected claims been on hold an hour for the claims department
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, BTW is it better to go usb or bt for these mini Pcs figure you may know since you play with rack systems so much
  • Sicklyboy @ Sicklyboy:
    Counting my blessings that my insurance hasn't caused me really any headache (yet, at least) despite the fact that I've been getting way more appointments and what not recently due
  • Sicklyboy @ Sicklyboy:
    @K3Nv2, what do you mean, what are you trying to do?
  • K3Nv2 @ K3Nv2:
    Just looking at a built in mouse pad keyboard combo
  • K3Nv2 @ K3Nv2:
    I loose the dongle constantly but they may have better connection with usb frequency
  • Sicklyboy @ Sicklyboy:
    Imo Bluetooth is always a option of last resort for me
  • Sicklyboy @ Sicklyboy:
    Except for phones because it tends to be pretty reliable there
  • K3Nv2 @ K3Nv2:
    I got a bad habit of taking out usb transmitter and loosing it because they can't you know print names on the damn things
  • Sicklyboy @ Sicklyboy:
    But any desktop OS, I've never had anything but frustration trying to get Bluetooth devices to work reliably and stable. It might pair and connect once, and then next time I go to use it I have to delete and re-pair it again
  • K3Nv2 @ K3Nv2:
    5.3 has been so good I think 6 is really going to make it stable
  • K3Nv2 @ K3Nv2:
    I remember how shit 3 was
  • Sicklyboy @ Sicklyboy:
    Ptouch labeler aren't terribly expensive, label shit yourself fam. This is the one I own and there are cheaper ones too https://www.amazon.com/Brother-P-Touch-PTH110BP-Portable-included/dp/B09QXYND6S
  • Sicklyboy @ Sicklyboy:
    Solves part of the problem, mixing up which dongle is which. Then you just have to not lose them lol
  • K3Nv2 @ K3Nv2:
    Double D would be proud
    +1
  • Sicklyboy @ Sicklyboy:
    Even my Xbox One controller I have it paired to my desktop over Bluetooth, it USUALLY works but sometimes it refuses to connect and I have to delete and re-pair it. Maddening
  • K3Nv2 @ K3Nv2:
    Gigabytes built in mobo bt/wifi pairs pretty decent
  • Sicklyboy @ Sicklyboy:
    That's what I'm using :(
  • K3Nv2 @ K3Nv2:
    Ran a driver update in device manager?
  • Sicklyboy @ Sicklyboy:
    Not recently but I think it's less a driver issue and more just Windows having a garbage Bluetooth stack
  • K3Nv2 @ K3Nv2:
    Could be I was having issues when I first upgraded it and didn't realiser gigabyte has specific driver revisions which is stupid
  • K3Nv2 @ K3Nv2:
    Which is married to the boards revision
  • Xdqwerty @ Xdqwerty:
    Made my first review
  • RedColoredStars @ RedColoredStars:
    I've gone years without ever removing a logitech usb transmitter. Across several replacements of keyboards and mice. It just stays put.
    RedColoredStars @ RedColoredStars: I've gone years without ever removing a logitech usb transmitter. Across several replacements of...