Friday, May 15, 2015

Cloning Disk with Acronis


After Disk Cloning using Acronis True Image partition the UUID on Grub menu and fstab are different from the original.

We need to enter in rescue mode and mount the partitions (/dev/sda5 = / & /dev/sda1 = /boot in my case).

# Mount root partition:
mount /dev/sda5 /mnt  # /dev/sda5 is your root partition, e.g. /dev/sda1

# If you have a separate boot partition you'll need to mount it also:
mount /dev/sda1 /mnt/boot

# Mount your virtual filesystems:
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done

# Chroot:
chroot /mnt

Change the UUID on /etc/fstab
blkid /dev/sda5 >> /etc/fstab
blkid /dev/sda1 >> /etc/fstab
use an editor like vim and replace the old UUID by the new ones

Update Grub menu if is neccesary
#Reinstall Grub menu:
grub2-install /dev/sda
 or on 1 sector of partition
grub2-install /dev/sda1


#Delete FlexNet message if you want
dd if=/dev/zero of=/dev/sda bs=512 count=62 seek=1


#:

cd /boot
dracut -f
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
reboot

No comments:

Post a Comment