* usb key duplicate
* partition table
manual cgdisk
* rsync partitions
rsync -auv --progress <source></source> <target>
* rsync caveat : hard links, sparse file
warning: some sparse files may have huge virtual size
rsync, will attempt to expand them fully
i.e: docker devicemapper (60MB on disk, virtually 100G)
warning: some programs have one fat binary with hard links
rsync, will attempt to copy them fully
i.e: git, which has 114 hard links with different names
* BIOS boot (ef02) partition
dd if=/dev/sdX1 of=/dev/sdY1 bs=1M # simply
* grub
sudo grub-install --target=i386-pc --debug --boot-directory=/<root-mountpoint>/boot/ /dev/sdY
warning: do not mess the device names and mountpoint names as it may modify your host system grub config
* grub UUID
grub menuentry refers to source key UUID
* adjust root UUIDs
/etc/fstab still refers to source key UUID
blkid /dev/sdX? >> /etc/fstab
vi /etc/fstab
(some sed-fu would be nice)</root-mountpoint></target>
Aucun commentaire:
Enregistrer un commentaire