Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

how to backup before update

Writer 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:

  1. Boot an Ubuntu Live DVD.

  2. Select Try Ubuntu.

  3. Now, when you are in live environment, open GParted and look for the partitions you are trying to backup, i.e., /dev/sda1 or /dev/sda2

  4. Next, 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 dd process used later on.

    After you run this command at a later time, you will get a name that would say only dd and 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.a

    This command will show you the progress of the dd process 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.iso

    Here, /dev/sdXY is the partition you want to backup.

    This command will actually execute the dd command.

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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