Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- 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.
- My steps:
- 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:
- [CODE]tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / [/CODE]
- 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.
- 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:
- [CODE]sudo tar -xvpzf /media/ubuntu/Terapoint5/backup072316.tar.gz -C /media/ubuntu/988836f3d-blahblahharddrivename --numeric-owner[/CODE]
- 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).
- 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.
- [CODE] sudo -s
- for f in dev dev/pts proc ; do mount --bind /$f /media/ubuntu/988836f3d-blahblahharddrivename/$f ; done
- chroot /media/whatever
- dpkg-reconfigure grub-pc [/CODE]
- here's where I run into my first issue. when I issue the last command "grub-pc" I get the following response:
- [CODE]dpkg-query: package 'grub-pc' is not installed and no information is available
- Use dpkg --info (= dpkg-deb --info) to examine archive files,
- and dpkg --contents (= dpkg-deb --contents) to list their contents.
- /usr/sbin/dpkg-reconfigure: grub-pc is not installed[/CODE]
- 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