mount a gnome disks image of a full disk

I often to backups before big changes to my system, or just hacks that I am not sure if it will blow up my system.

Sometimes I run Unity from time to time and I am not sure if other back systems run in a similar fashion, but I assume they do.  The program I used for this particular back up was Gnome Disks.  Since I am normally a KDE user I had to figure out how to mount the img file without being in a GTK environment.

Fourtantely it is fairly easy to do.  Just three commands.

This mounts the image.

sudo losetup -f -P DiskImage.img

 

This displays the devices partition layout and assignments.

lsblk -f

 

This mounts the partition table.  Make sure you change /dev/loop0p7 to your device.

sudo mount /dev/loop0p7 /mnt/

Published by

Ryein C. Goddard

I'm a programer, auto painter, trader, farmer, father, and futurist. I really like PHP for web development. For desktop/mobile development in my mind there is only 1 solution and that is Qt. If you haven't heard of it go download it for FREE :D It is a C++ framework with great development tools. I have a 66 mustang that I have been working on and fixing for the last 2 years. I am very interesting in the future of farming. I also have a daughter. If you want to know why I am a futurist check out The Venus Project.