how to backup before update
Andrew Henderson
so I just installed ubuntu 15.10 on my Macbook 6,2 core i5 and it is running flawlessly. Now before I got it to where it is now, I had a previous install which didn't work that great. In the previous install I installed the proprietary Nvidia drivers alongside with a bunch of updates and upon reboot, I was stuck at the login screen. I tried uninstalling the Nvidia driver and going back to noveau but didn't work that great either.
So I ended up doing a clean installation again and this time I installed the Nvidia drivers first and it worked, Now I have some pending updates to make but I'm afraid that it might break my system. I spend the whole day configuring the system to my liking and I would hate to do it all over again.
Is there a way I can backup my settings, ala "Windows System Restore" style, update and if anything goes wrong, I can just go back to where I was?
1 Answer
Yes, you have an option to do this:
Boot an Ubuntu Live DVD.
Select
Try Ubuntu.Now, when you are in live environment, open
GPartedand look for the partitions you are trying to backup, i.e.,/dev/sda1or/dev/sda2Next, open three terminals:
a. In one of them write this command, do not press Enter now. Keep it open after typing the command:
sudo ps aux | grep dd | awk '/root/ {print $2" "$11}'This command will give you the PID of the
ddprocess used later on.After you run this command at a later time, you will get a name that would say only
ddand a number infront of that, you have to take note of that number then.b. In the second terminal write this command, do not press Enter now. Keep it open after typing the command:
watch -n 1 kill -USR1 THE NUMBER FROM STEP 4.aThis command will show you the progress of the
ddprocess in the third terminal.c. In the third terminal, type the following, and run it:
After running this command, immediatly run the command from 4.a first and then the command from 4.b.
sudo dd bs=4M if=/dev/sdXY of=/path/to/your/backup-directory/anyfilename.isoHere, /dev/sdXY is the partition you want to backup.
This command will actually execute the
ddcommand.
Now, keep tab on the terminal from 4.c and wait for the command to finish.
Backup completes on the completion of the command. Now, you can do whatever you want. Cheers!
6