I have been doing a lot of fiddling with hard drive image files and gparted and I'd like to share what I've figured out.
You can make an image file of a hard disk with dd like so:
dd if=/dev/hda of=/mnt/a/MYIMAGE.IMG
then you can mount it using a loop device with losetup:
losetup /dev/loop0 /mnt/a/MYIMAGE.IMG
then you can run gparted using that loop device, specifying the devices you would like to use:
so if I'd like to copy partitions between an image file on /dev/loop0 and my hard drive on /dev/sda:
gparted /dev/loop0 /dev/sda
also if you have multiple loop devices you can use:
gparted /dev/loop0 /dev/loop1 /dev/sda
and when you wish to disconnect from the loop device just use:
losetup -d /dev/loop0
One thing I should mention: Knoppix 6.3 seems to require specifying loop.max_part=8 as a kernel parameter on the command line to get gparted to work right. Knoppix 6.2 doesn't seem to require this to work properly. Perhaps the version of gparted with 6.3 is a bit more finicky.
Anyway, have fun imaging and editing with gparted.
Don
SGIN 15.6" Laptop Notebook Intel Celeron Quad-Core 2.8 GHZ 8GB RAM 256GB SSD HD
$189.00
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP
$35.99
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$12.90
Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$23.33
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$21.50
CONSAIR Vengeance RGB PRO 16GB (2PK x 8GB) 3200MHZ DDR4 C16 DIMM Desktop Memory
$45.00
Samsung 8 GB PC4-17000 DDR4-2133 1Rx8 DDR4 Desktop Memory HP P/N 798034-001
$10.00
HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin
$119.80
HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN
$129.95