Hi,
I have a 2TB mechanical drive I use for ClearOS (binary compatible with Centos) which had 4 partitions, sda1-4. The O/S in on partitions 1-3 and data is on 4. I wanted to split partitions 1-3 to an SSD and make the SSD bootable. Partition 4 will go to separate drive and the data can easily be transferred using rsync while the server is offline.
How to I transfer the first three partitions and make the disk bootable?
Does it even make sense to do this or will block alignment end up being all over the place for an SSD?
Nick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I was never notified of a reply and I missed this, but thank you anyway. Time has moved on a bit and I have rsync'd the fourth partition to a new disk and I am now running my data from the new disk.
Am I right in thinking that if I just delete sda4, that will leave sda1-3 intact and smaller than my new disk, so I can just use Clonezilla to clone the disk across to the new disk as it will ignore the space without a partition?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a 2TB mechanical drive I use for ClearOS (binary compatible with Centos) which had 4 partitions, sda1-4. The O/S in on partitions 1-3 and data is on 4. I wanted to split partitions 1-3 to an SSD and make the SSD bootable. Partition 4 will go to separate drive and the data can easily be transferred using rsync while the server is offline.
How to I transfer the first three partitions and make the disk bootable?
Does it even make sense to do this or will block alignment end up being all over the place for an SSD?
Nick
For part to part cloning, you can only do one partition by another partition, i.e., use the "part_to_local_part" menu in the TUI mode:
https://clonezilla.org/clonezilla-live/doc/03_Disk_to_disk_clone/images/ocs-06-disk-to-local-disk-clone.png
(ref: https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/03_Disk_to_disk_clone)
After 3 partitions are cloned, if the 3 partitions on your SSD are /dev/nvme0n1p1-3, then run:
ocs-install-grub -p "nvme0n1p1 nvme0n1p2 nvme0n1p3" auto
to install grub if it's in legacy mode.
If it's uEFI mode, then you have to enter its BIOS, and register the efi boot file in /boot/efi/.
Steven
Sorry, I was never notified of a reply and I missed this, but thank you anyway. Time has moved on a bit and I have rsync'd the fourth partition to a new disk and I am now running my data from the new disk.
Am I right in thinking that if I just delete sda4, that will leave sda1-3 intact and smaller than my new disk, so I can just use Clonezilla to clone the disk across to the new disk as it will ignore the space without a partition?
As for your question, yes, and you can refer to this:
https://drbl.org/faq/fine-print.php?path=./2_System/119_larger_to_smaller_disk_restore_clone.faq#119_larger_to_smaller_disk_restore_clone.faq
Steven