Menu

When using clonezilla to clone /boot/efi then restore, will the UUIDs be maintained

gariac
2026-03-30
4 days ago
  • gariac

    gariac - 2026-03-30

    The background story here is gparted cannot resize a partition smaller than 256MB. I am providing the links for reference but this obviously isn't my question:
    https://bugzilla.gnome.org/show_bug.cgi?id=649324
    https://gitlab.gnome.org/GNOME/gparted/-/issues?label_name%5B%5D=3.+Not+GNOME&show=eyJpaWQiOiIyNDUiLCJmdWxsX3BhdGgiOiJHTk9NRS9ncGFydGVkIiwiaWQiOjE5NTM3OH0%3D

    So I plan on using clonezilla to copy just the /boot/efi to a flash drive. Note I have successfully cloned the whole ssd to an external hard drive with clonezilla. I just want to work with one partition since I am only going to restore one partition.

    The next steps which are not clonezilla related but invariably someone will ask what I am doing, so for reference:

    1. Backup the data in the FAT32 partition (already done with clonezilla)
    2. Reformat the partition to EXT4
    3. Resize EXT4 partition to desired partition size
    4. Reformat the partition back to FAT32
    5. Restore the FAT32 files from backup (clonezilla)

    There is a warning:

    Be aware that the reformatting described in the workaround resets UUIDs. Any existing mount configuration referring it via e.g.
    /dev/disk/by-uuid/12CE-A600
    will no longer succeed to mount it. Ensure to update your fstab or similar config to the new UUID when using this workaround.

    I can't see how I am going to alter the fstab from the gparted live so I would like to know if the UUID will be maintained by clonezilla,

     
  • Steven Shiau

    Steven Shiau - 6 days ago

    Basically the UUID will be kept if partclone or dd is used when you save or clone the partition. Only on a case when you do 512e/n to 4kn disk, the ESP partition will be changed due to the files are copied after the ESP partition is format.

     
  • gariac

    gariac - 4 days ago

    The "entertaining" thing is after I did the restore, the unallocated space was still there. Incidentally I had to use supergrub to boot into linux. The windows boot worked fine. So the UUID issue might be there but since the unallocated problem wasn't solved, I didn't spend any time on the linux boot.

    So gparted wipes the partition when converting back and from fat32 to ext4. I suspected as much which is why I did the backup.

    Since I have a functional windows OS I tried to expand the partition with the windows disk manager but it won't touch it. (Not an issue for Clonezilla but I figure I would mention it since people often just google for answers.)

    On my list is just to do the back and forth gparted conversion but not restore from Clonezilla, then use fwupdmrg to create a linux bios, then attempt to add the windows boot back in. I need to consult the hive (reddit or the framework forum) but you won't believe the nasty replies I got when just posting this procedure from reddit!

    I swear I have done my last dual boot system. I will just use a virtual machine. I really only need windows to flash devices and am a bit nervous to flash from a VM, but this dual booting is getting ridiculous. I had two unexpected issues doing the dual boot. One being win11 turns on ecruption by default. The second being there is some weird quickboot feature that interferes with dual boot.

    Anyway thanks for your reply since this question is really find of fringe for Clonzilla. which is basically a solid program if you can follow instructions.

     

Log in to post a comment.

MongoDB Logo MongoDB