Linux Mint (Virtual Box) How do I shrink a Batocera.img file? Please read
by cloudzerovii from LinuxQuestions.org on (#6GY35)
I have a virtual machine setup with linux mint. I have a .img file called Batocera.img and it is 994gb, it has over 100 gb of free space. I need to shrink it to 989gb as my micro sd card is 990gb. I copied the entire .img file to the desktop inside a folder.
I have used this guide below please read -->
https://softwarebakery.com/shrinking-images-on-linux
Under creating a loopback device, the 4th command is "sudo partprobe /dev/loop0"
When I run this command I get an error that says this -->
Error: Invalid argument during seek for read on /dev/loop0
What can I do to fix this? Is there a better or different way to shrink a .img file, I am open to trying anything at this point.
Thankyou to who ever would like to help me.
I have used this guide below please read -->
https://softwarebakery.com/shrinking-images-on-linux
Under creating a loopback device, the 4th command is "sudo partprobe /dev/loop0"
When I run this command I get an error that says this -->
Error: Invalid argument during seek for read on /dev/loop0
What can I do to fix this? Is there a better or different way to shrink a .img file, I am open to trying anything at this point.
Thankyou to who ever would like to help me.