I created a clonezilla image and saved it to an external drive. Then booted into clonezilla live (tried both Debian and Ubuntu) and restored from that image to a new nvme drive I have. It would not boot, so I booted into live linux distro (MX) and listed the partition table. My ext4 partition has a type of SWAP. I checked the clonezilla image directory and looked at the files, and my main partition is listed correctly. Why would it restore my main partition as a swap partition? I was restoring by disk and not by partition.
The system is bog standard Debian 12.
What is going on here?!!! I'm kinda stuck in the water.
"Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 * 2048 1906640895 1906638848 909.2G 82 Linux swap / Solaris
/dev/nvme0n1p2 1906642942 1953523711 46880770 22.4G 5 Extended
/dev/nvme0n1p5 1906642944 1953523711 46880768 22.4G 82 Linux swap / Solaris"
The issue is you have put your ext4 as Linux swap partition (ID 82), you should assign it as ID 83.
In Clonezilla, we deal with partition ID 82 as swap one, and just create the swap partition for it. No need to image/clonea swap partition. This will have more efficient.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I created a clonezilla image and saved it to an external drive. Then booted into clonezilla live (tried both Debian and Ubuntu) and restored from that image to a new nvme drive I have. It would not boot, so I booted into live linux distro (MX) and listed the partition table. My ext4 partition has a type of SWAP. I checked the clonezilla image directory and looked at the files, and my main partition is listed correctly. Why would it restore my main partition as a swap partition? I was restoring by disk and not by partition.
The system is bog standard Debian 12.
What is going on here?!!! I'm kinda stuck in the water.
Any help appreciated!
Here is a the clonzilla log of when I created the image. everything looks fine to me
Last edit: Danathar 2025-01-22
"Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 * 2048 1906640895 1906638848 909.2G 82 Linux swap / Solaris
/dev/nvme0n1p2 1906642942 1953523711 46880770 22.4G 5 Extended
/dev/nvme0n1p5 1906642944 1953523711 46880768 22.4G 82 Linux swap / Solaris"
The issue is you have put your ext4 as Linux swap partition (ID 82), you should assign it as ID 83.
In Clonezilla, we deal with partition ID 82 as swap one, and just create the swap partition for it. No need to image/clonea swap partition. This will have more efficient.
Steven