The
/dev/sdcblock device represents the entire drive. When you write to it (like you did with
dd), you overwrite the contents of the drive, including any partition table and at least initial partitions (if any).
A block device can, but does not have to, contain partitions. Even USB sticks can have partitions. (If you use a DOS type partition table, aka MBR or Master Boot Record, and FAT32/VFAT file systems on each partition, all that happens is that when you stick the USB stick in, you'll see more than one logical drive appear.)
We do not know what your
file.img contains. You can associate the image file with a loopback device using
sudo losetup -fP file.imgwhere the -f flag tells losetup to use first free loopback device (it'll tell you what it is, say
/dev/loop3), and -P flag to also scan its partition table.
After this, you can run gparted, pointing it to that particular loopback device, and modify the partitions, even add new ones. To ensure you use the right device, run
sudo gparted /dev/loop3(or whatever loopback device losetup gave you).
After you have made changes (they are written back to the image file, so do keep a backup copy!), detach the loop device, and reattach (may give you a new loopback device!) using
sudo losetup -d /dev/loop3 sudo losetup -fP file.imgso that the new partition table is guaranteed to be in use.
You can format any new partitions you create; the new partitions will appear as
/dev/loopNpP , where
N is the loop device number (output by the losetup command), and
P is the partition number.
When you're done, run
sudo sync sudo losetup -d /dev/loopN(The
sync is just an extra precaution, and makes sure all modified files – including the image file – are actually written and not just cached in RAM.
In this case, you have already written the disk image to
/dev/sdc. (Nothing you did before that
dd command matters.)
So, why not edit the disk partition table afterwards, using say gparted? Just make sure you don't have any of its partitions mounted when you do.
What grumpydoc said is absolutely true: moving the existing partition may make the disk unbootable. (See e.g.
gparted manual for moving partitions and
fixing system boot problems.)