Advertisement
hudsonc

Untitled

Jul 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. I'm confident the issue is something small which is really frustrating. I'm going to try to be thorough in my documentation and provide the needed info.
  2.  
  3. Goal - do a complete backup of my UB16.04 notebook so I can install different linux distribs, experiment, break stuff and then easily restore back to last good backup.
  4.  
  5. My steps:
  6. After complete install of UB16.04, I have all my programs installed, settings configured, everything is working great. I then do a backup using this wiki , specifically I use this command in a term window in the root directory:
  7. [CODE]tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / [/CODE]
  8.  
  9. Ok now I have a file named backup.tar.gz which I copy onto a usb hard drive. That's my backup I'll be trying to restore.
  10.  
  11. Now I try to test my backup. Following the directions in the wiki, I restore by booting a live cd (usb key with latest iso on it which is 16.04.1 LTS as of this writing), I attach the USB drive to my notebook, and I run this command in a term window:
  12. [CODE]sudo tar -xvpzf /media/ubuntu/Terapoint5/backup072316.tar.gz -C /media/ubuntu/988836f3d-blahblahharddrivename --numeric-owner[/CODE]
  13.  
  14. The system unzips my file onto /dev/sda2 (which is where it should be as /dev/sda1 is the boot partition and /dev/sda3 is the swap).
  15.  
  16. Ok per the wiki link I'm following, you will need to restore grub. To do this, you will need to reconfigure it in a chroot.
  17. [CODE] sudo -s
  18. for f in dev dev/pts proc ; do mount --bind /$f /media/ubuntu/988836f3d-blahblahharddrivename/$f ; done
  19. chroot /media/whatever
  20.  
  21. dpkg-reconfigure grub-pc [/CODE]
  22.  
  23. here's where I run into my first issue. when I issue the last command "grub-pc" I get the following response:
  24. [CODE]dpkg-query: package 'grub-pc' is not installed and no information is available
  25. Use dpkg --info (= dpkg-deb --info) to examine archive files,
  26. and dpkg --contents (= dpkg-deb --contents) to list their contents.
  27.  
  28. /usr/sbin/dpkg-reconfigure: grub-pc is not installed[/CODE]
  29.  
  30. Ok.....so now I see in the wiki that it states "For more information on repairing grub, see GrubHowto"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement