Image backup and installation scheme of ROS system based on systemback

table of Contents

1 Systemback installation

1.1 Ubuntu16及older version

1.2 ubuntu18 system

2 Use systemback to back up the system and make a USB installation disk

2.1 Start systemback

2.2 Create a backup system

2.3 Write to USB flash drive

3 Install the new machine using the installation disk

3.1 BIOS configuration USB boot

3.2 Disk partition

4 Reference:


The installation and configuration of the ROS system is complicated. After one machine is installed, how to quickly copy and install it on other machines is an important issue. Here is a ROS backup installation scheme based on systemback. This solution is applicable to ubuntu16 and ubuntu18. Whether the new ubuntu version is applicable has not been tested.

This article takes ubuntu18 as an example.

Of course, this solution is not only used for ROS backup installation, but also for all Ubuntu16, Ubuntu18 system image backup installation.

1 Systemback installation

First install systemback on the machine that needs to be backed up.

1.1 Ubuntu16及older version

To install Systemback on Ubuntu 16.04 and previous systems, simply run the following command:

sudo add-apt-repository ppa:nemh/systemback

sudo apt update

sudo apt install systemback

1.2 ubuntu18 system

  •  If you have added ppa: nemh / systemback in the apt repository, you need to remove it first:

         sudo add-apt-repository --remove ppa:nemh/systemback

        If it has not been added, go directly to the next step.

 

  • The Systemback binary package in Ubuntu 16.04 is compatible with Ubuntu 18.04, so you can add the PPA of Ubuntu 16.04 to the system:

      sudo add-apt-repository "deb http://ppa.launchpad.net/nemh/systemback/ubuntu xenial main"

 

  • Add GPG signing key to PPA for verification

      sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 382003C2C8B7B4AB813E915B14E4942973C62A1B

  • Update source and install

       sudo apt update

       sudo apt install systemback

At this point, the installation is successful, you can use systemback for system backup.

 

2 Use systemback to back up the system and make a USB installation disk

2.1 Start systemback

Find the application icon in the application list, click to pop up the following window, enter the user password

After clicking "OK", the following window will appear, select the storage directory, click "Live system create"

2.2 Create a backup system

After clicking "Live system create", you will enter the following interface:

First, give the backup system a name, such as the place marked 1.

Then, be sure to tick the place marked 2 and select this option, so that personal files will also be saved.

Finally click "Create new"

 

At this time, I will enter the backup work, wait for a period of time, depending on the size of the system, my system has more than 20 GB after backup, so it will take a long time.

Wait for the end. . .

 

2.3 Write to USB flash drive

After step 2.2 is over, it will change to the following interface. At this time, the system has been backed up, and the name of the image appears in the window shown in the red box.

  1. At this time, insert a USB flash drive, the space must be large enough, at least to be able to put down the size of the image, and a little larger, but also put the system disk boot file.
  2. Then, click the green refresh button, such as the place marked with 1, then the name of the inserted USB flash drive will appear in the "write target" window
  3. Finally, click the "Write to target" button, as shown in Figure 2

Wait for the image to be written to the USB stick. . .

After the display is complete, the USB installation USB drive is ready.

3 Install the new machine using the installation disk

After the installation of the USB drive is made, it is our backup system. You can use it to restore the original machine, or you can install a new machine.

 

3.1 BIOS configuration USB boot

When installing a new machine, insert the USB drive, restart the machine, enter the BIOS, and set the machine to boot from the USB drive.

Different machines have different keys to enter the BIOS. Baidu searched it, but it was not found, so try it one by one from F1-F12. There is always one.

 

After choosing to boot from a USB drive, you will enter the following interface, then select the second item "Boot system installer"

Some machines will display garbled characters on this page. Remember to select the second item.

3.2 Disk partition

First select the partition where the system needs to be installed, click "Delete"

 

 

Then create a new partition. At least two partitions must be created, one Mount point is / boot / efi, this one is for grub, Ubuntu18 system needs this EFI partition, as shown in mark 3, you need to select / boot / efi, otherwise the system is installed ,Unable to start.

Tick ​​1 must be ticked.

The place marked 2 is the creation of the partition. Try it a few times to know how to use it.

After configuration, click "Next" to enter the installation interface

Wait for the system to complete the installation and restart, you can enter.

4 Reference:

https://blog.csdn.net/rechardchen123/article/details/90649208?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2

https://blog.csdn.net/qq_41248872/article/details/86659074

 

 

 

 

 

Published 31 original articles · Like 3 · Visits 2028

Guess you like

Origin blog.csdn.net/lclfans1983/article/details/105418379