How to fix the UUID in Grub after restore from another machine?

view full story

http://askubuntu.com – I want to restore a complete tar backup of Ubuntu 12.04 with all my customizations, documents, installed software, etc. to a different machine. I made the backup with the following commands: sudo su cd / tar cvpzf ububackup.tgz --exclude=/ububackup.tgz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/tmp --exclude=/media / On the new computer I did a fresh install of Ubuntu 12.04, moved the backup file to it and then restored with the backup file with the following: tar xvpfz backup.tgz -C / As expected (see Mike Whatever's answer to this question: Copy Ub (HowTos)