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

Lenovo ThinkPad L13 Yoga Touch Laptop 13.3” Core i5 8GB RAM 256GB SSD Win 11 Pro
$239.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11
$374.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro
$319.99
Lenovo ThinkPad T14 Gen 1 14" AMD Ryzen 5 16GB 256GB SSD
$219.99
Lenovo - IdeaPad Slim 3i 15.3" 2K Touchscreen Laptop - Intel Core 7 350 2026 ...
$679.99
Laptop Lenovo ThinkPad T14 G2 Ryzen 5 PRO 5650U 16GB 500GB Black Fair
$18150.00
Lenovo ThinkPad T14s Laptop 14” Laptop Core i5 8GB RAM 256GB SSD Windows 11 Pro
$249.99
Lenovo ThinkPad T495 14” Laptop AMD Ryzen 5 PRO 16GB RAM 256GB SSD Windows 11
$229.99