Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Is downsizing persistent.dat possible?
#1
It is now possible to extend persistent dat file by using sudo sh ExtendPersistentImg.sh  datfile extend_size_mb (see 5. Extend persistent dat file here).

For example:


Code:
sudo sh ExtendPersistentImg.sh  persistent.dat 2048

"That means extend persistent.dat by 2048MB (+2GB), if the old size is 1GB, then it will grow to 3GB after you extend it."


My question is: Is it possible to do the opposite? Downsize persistent.dat?...

Example: Assuming I have a 96GB persistent.dat file, I want to resize to 64GB (65536MB). Can I issue the command below?


Code:
sudo sh ExtendPersistentImg.sh  persistent.dat -32768

So that, in the end, I'd get a persistent dat file reduced to 64GB (65536MB).
OSes: Debian Buster, Ventoy Multi Boot USB with Persistence with Linux Lite, Manjaro, MX Linux, Ubuntu Studio, Zorin and others
HW: ASUS TUF X570-Pro, AMD Ryzen 9 5900X 12-Core, 4200 Mhz, 128 GB RAM, SAMSUNG 980 PRO 2TB PCIe NVMe Gen4 SSD M.2, Intel® Eth Ctler I225-V, Logitech K520 / M510
Reply


Messages In This Thread
[SOLVED] Is downsizing persistent.dat possible? - by Plurix - 09-23-2021, 11:02 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)