Drive auto-rename doesn't occur in Server Lite
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Hi, I have an image that was taken from a drive named "xda". I want to deploy the image to a PC which has drives named "nvme0n".
If I use Clonezilla live in local mode, this works fine, the restore process automatically handles the different drive name.
However, if I am mass-deploying with Server Lite (bittorrent mode), the PXE booted clients fail to restore the image, complaining that the drive name is different.
Can we please add the auto-rename process to Server Lite? Even if there's a restriction like all clients must have the same hardware, that's fine since I imagine many deployments would be to identical hardware.
You can first convert the image to the name you want, then do the massive deployment:
https://drbl.org/management/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image
Steven
Thanks for the reply. Sorry for the delay, I finally got around to trying this again.
When I run the command to change the filenames, the command runs without error, and the filenames are changed. However, when I try to use the renamed image in Clonezilla, the image does not appear in the list of available images in my folder. Did I do something wrong?
How did you run the command? If the converted image is listed in /home/partimag/, definitely it should be listed in the Clonezilla TUI.
Steven
Hi, here's the steps that I did:
When Clonezilla is searching /home/partimag for images, what is it looking for? I created a folder by hand with some random files as a test, and that doesn't show up on the GUI list either, so it obviously only displays "valid" image folders according to some criteria.
Which version of Clonezilla live did you use?
BTW, if you can, please run:
find /home/partimag -print
Then post the results. Thanks.
Steven
Sorry for the delay, thanks for your time. I'm using: clonezilla-live-20211116-impish-amd64.iso
Here is the output of find /home/partimag -print. I only have 1 image folder in this folder. This is the result after I have run the conversion to nvme0n1.
/home/partimag
/home/partimag/2022-04-26-W10-rename-test
/home/partimag/2022-04-26-W10-rename-test/clonezilla-img
/home/partimag/2022-04-26-W10-rename-test/efi-nvram.dat
/home/partimag/2022-04-26-W10-rename-test/Info-dmi.txt
/home/partimag/2022-04-26-W10-rename-test/Info-img-id.txt
/home/partimag/2022-04-26-W10-rename-test/Info-lshw.txt
/home/partimag/2022-04-26-W10-rename-test/Info-lspci.txt
/home/partimag/2022-04-26-W10-rename-test/Info-OS-prober.txt
/home/partimag/2022-04-26-W10-rename-test/Info-packages.txt
/home/partimag/2022-04-26-W10-rename-test/Info-saved-by-cmd.txt
/home/partimag/2022-04-26-W10-rename-test/Info-smart.txt
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-chs.sf
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-gpt-1st
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-gpt-2nd
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-gpt.gdisk
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-gpt.sgdisk
/home/partimag/2022-04-26-W10-rename-test/nvme0n1-mbr
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p1.vfat-ptcl-img.gz.aa
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p2.dd-ptcl-img.gz.aa
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p3.ntfs-ptcl-img.gz.aa
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p3.ntfs-ptcl-img.gz.ab
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p4.ntfs-ptcl-img.gz.aa
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p5.ntfs-ptcl-img.gz.aa
/home/partimag/2022-04-26-W10-rename-test/nvme0n1p5.ntfs-ptcl-img.gz.ab
/home/partimag/2022-04-26-W10-rename-test/device_name_converted.info
A normal, complete Clonezilla image should contain files "disk" and "parts" in the image directory, something like:
https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/02_Restore_disk_image
No idea why yours does not have that. It should be there, even it's converted by cnvt-ocs-dev.
Steven
Hmm, that's odd. Is there any additional logging or debug info that I can turn on, for the conversion command?
(Alternatively, could you please consider my original suggestion of implementing auto-rename for the mass deployment modes?)
Is cnvt-ocs-dev the same command that is used during auto-rename when deploying to a single PC? Because I haven't had any problems deploying to a single PC and getting it auto-converted.
Last edit: Zevgeny Chernikov 2022-06-07
It's shown on the screen... So if you are familiar with "screen" or "tmux", you can try to catch the output messages on the screen.
What is the files list in your original image dir?
"(Alternatively, could you please consider my original suggestion of implementing auto-rename for the mass deployment modes?)" -> Will think about it.
"Is cnvt-ocs-dev the same command that is used during auto-rename when deploying to a single PC?" -> Yes.
Steven