User avatar
TommyG007
Posts: 64
Joined: Fri Jun 26, 2020 4:30 pm
Location: South Wales, UK

Easy way to create .img images in Raspberry OS?

Mon Aug 03, 2020 7:36 pm

Hi Everyone,

Every month I manually create a full backup of my Pi4 to a 64GB USB stick using the SD Card Copier tool.

I'll then open GParted and manually resize the USB stick down to 10GB.

I'll then remove the USB stick from the Pi, connect it to my PC, then use Win32DiskImager to create a .img file which I save to my NAS.

Which got me wondering, is there a way to create the .img image file of the USB stick from within Raspberry OS?

If it is possible, it would save me having to remove the USB stick and take it to my PC every time I want to do a backup.


My Google-fu is letting me down with this one, I've done lots of searching but haven't found what I'm looking for.

Any help greatly appreciated, thanks.


User avatar
TommyG007
Posts: 64
Joined: Fri Jun 26, 2020 4:30 pm
Location: South Wales, UK

Re: Easy way to create .img images in Raspberry OS?

Mon Aug 03, 2020 9:10 pm

Thanks for the suggestion, I did spot that one during my searching, I just wish it included a way to reduce the resultant size of the .img file.

User avatar
TommyG007
Posts: 64
Joined: Fri Jun 26, 2020 4:30 pm
Location: South Wales, UK

Re: Easy way to create .img images in Raspberry OS?

Mon Aug 03, 2020 10:19 pm

Puffergas wrote: Not exactly what you asked for:

viewtopic.php?f=63&t=281190&p=1703077

So I gave your suggestion a go, and it actually works brilliantly!

This is genuinely better than what I was hoping for, it creates the .img file, it's only 7.6GB in size, and it can be configured to save to a network share! AND it can be automated! (though I've yet to figure out how to do that).

Thanks again for your suggestion, great stuff. :D

Return to “General discussion”