Created
April 14, 2018 03:38
-
-
Save junex/4decb23ad6685d22d4958c8321dd6c41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/BACKUP_SYSTEM | |
sudo tar -jpcvf ~/BACKUP_SYSTEM/Ubuntu-16.04-20170128-home-z170ud3.tar.bz2 \ | |
--exclude=/home/sj/BACKUP_SYSTEM \ | |
--exclude=/proc \ | |
--exclude=/lost+found \ | |
--exclude=/sys \ | |
--exclude=/mnt \ | |
--exclude=/tmp \ | |
--exclude=/media \ | |
--exclude=/dev \ | |
--exclude=/run \ | |
--exclude=/boot \ | |
--exclude=/home/sj/.cache \ | |
--exclude=/home/sj/Downloads / | |
sudo tar -jpcvf ~/BACKUP_SYSTEM/Ubuntu-16.04-2061009-home-z170ud3-efi.tar.bz2 /boot/efi/EFI/ubuntu | |
watch -d -n 5 ls -alh ~/BACKUP_SYSTEM/ | |
watch -d -n 5 ls -s --block-size=M BACKUP_SYSTEM | |
mkdir /tmp/root | |
mkdir /tmp/root2 | |
mount /dev/sda1 /tmp/root | |
mount /dev/sda2 /tmp/root2 | |
cd /tmp/root2/jiawzhang/BACKUP_SYSTEM/ | |
sudo tar -jpxvf Ubuntu-16.04-2061009-home-z170ud3.tar.bz2 -C /tmp/root | |
efi boot | |
efibootmgr -c -w -L "BootOptionName" -d /dev/sda -p 1 -l\\EFI\\asianux\\elilo.efi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment