0

Steps taken to create and restore backup in ubuntu 16.04 :

  • 1.CREATING BACKUP

    • cd /
    • sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz
  • 2.Cleaned entire hard disk for dual booting and then reinstalled ubuntu 16.04.

  • 3.Restoring backup on fresh install ubuntu

    • Moving backup.tar.gz from external drive to / directory

    • cd /

    • sudo tar -xvpzf backup.tar.gz -C /

  • AFTER REBOOTING SYSTEM CRASHES !

  • what error do you get? when does it crash? did yo correct /etc/fstab for the new partitions? – ravery Feb 2 '18 at 1:21
  • @ravery After restoring I rebooted and then unable to boot as it gets strucked in black screen . – Mohit Malik Feb 2 '18 at 1:26
  • EFI or Legacy? Did you make the HDD bootable? – ravery Feb 2 '18 at 1:31
  • @ravery I was just making a tar backup of the whole system so that I can get everything back after restoring tar in reinstalled ubuntu . – Mohit Malik Feb 2 '18 at 1:40
  • You are restoring the /etc/fstab file from your original configuration, and overwriting the /etc/fstab from your new install. This is bad. There are other files you shouldn't overwrite, too, but I don't remember which. – waltinator Feb 2 '18 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.