Clone File System Rsync Sy
Clone File System Rsync Sy
In detail:
Fixing /etc/fstab
The /etc/fstab file typically lists all available disk partitions to be
automatically mounted at boot time. After the cloning, we have to manually edit
/etc/fstab to update the partitions’ UUIDs, which we can get using GParted or
blkid. Generally, this is sufficient unless we need to add or remove partitions
from the list, or change the file system types, to match the new configuration.
Let’s remember that the boot partition must have the boot flag. If it’s missing, we
can add it with GParted.
Restoring Grub
Whatever the operating systems we cloned, the easiest way to restore Grub is boot-
repair, a graphical tool available on live CDs/DVDs. It’s a one-click approach that
works fine. We have just to click on the “Recommended repair” button. If the repair
is unsuccessful, the software provides a detailed log and instructions for asking
for help.
After the restore, we may want to change the default options, like removing the
“quiet splash” options that are not useful in a server environment. We can manually
edit the /etc/default/grub file in this case. After that, let’s remember to run
update-grub to save the changes permanently.
Avoid copying virtual pseudo file systems (/dev, /proc, and /sys). Cloning the swap
partition or the swap file is always superfluous.