Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, so I decided to make a backup of my ubuntu 13.04 system using tar. I was following guide here and I made a backup of my ubuntu installation.

Now, what I don't understand, is how to restore from this backup. Should i just untar this file to newly created partition and repair grub? Because that didn't work. By the way for grub repair I used boot-repair. The thing about restoration is not explained well in the guide in my opinion.

I also found some alternatives like clonezilla and remastersys which isn't supported anymore, alternative for that is relinux, but I really find this tar backup satisfying, just restoration is something still unexplained to me.

Can you please tell how to restore?

share|improve this question
up vote 1 down vote accepted

Yes, all you need to do is untar the backup to a freshly formatted partition, and restore grub. To restore grub, you want to chroot into the partition, and run dpkg-reconfigure grub-pc and set it to install grub to whichever drive you will be booting from.

sudo -s
for f in proc sys dev ; do mount --bind /$f /mnt/$f ; done
chroot /mnt
dpkg-reconfigure grub-pc
for f in proc sys dev ; do umount /mnt/$f
share|improve this answer
I installed new ubuntu, installed some stuff and changed some settings to see if it will be preserved. And OK that pretty much worked :) And I remember, that before I asked here, once I got a message when starting restored system the way I restored it now except different commands for grub repair (but it was similar because I got that menu where I can select drives etc), that UUID is changed and system was stuck on boot/ubuntu screen displaying that message... I checked it after I formatted partition and it was different. Now it went fine, but could this UUID cause some problems? – malarkey25 Jan 5 '14 at 2:07
@Andrej, I couldn't quite follow what you said, but one of the reasons for using dpkg-reconfigure instead of boot-repair or manually doing grub-install is so that it learns the new UUID of the drive it is supposed to be installed to so it gets upgraded properly. – psusi Jan 5 '14 at 2:28
The thing that it learns new UUID of drive answers my question. English is not my first language, so is hard to use right sentences for me. Thank you for your help. Your answer is enough for me. – malarkey25 Jan 5 '14 at 14:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.