1. Process overview
Preface: The author is not sure whether the function of ubuntu.22.04.1 to make system images is normal, but from the practical results: the iso file can be generated normally, and can be loaded into the virtual machine as an image, there should be no problem.
And the transplanted image file contains the current environment, pictures, videos and other self-contained file content in the system file can be preserved.
The author uses the vmware virtual machine to test and demonstrate:
1. Install software:
-install systemback
-install make
-install cdtools
2.systemback "create live system" and error resolution
3. decompress, change two names
4. convert to iso image
2. Install systemback
systemback is used to package the system into a compressed package, and then use cdtools to convert it into an iso image file.
2.1 Terminal installation systemback tool
ctrl+alt+t to bring up the terminal:
directly copy all of them, paste them into the terminal and run:
sudo sh -c 'echo "deb [arch=amd64] http://mirrors.bwbot.org/ stable main" > /etc/apt/sources.list.d/systemback.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key 50B2C005A67B264F
sudo apt-get update
sudo apt-get install systemback
2.2 Terminal installation make compiler
sudo apt-get install make
Or synchronously install the gcc environment package (can be installed according to the situation):
sudo apt update
sudo apt install build-essential
2.3 Terminal installation cdtools
sudo apt install aria2
aria2c -s 10 https://nchc.dl.sourceforge.net/project/cdrtools/alpha/cdrtools-3.02a07.tar.gz
After the download is complete, open the corresponding folder to decompress:
2.3-1 Right-click to decompress ( extract to here ) to operate:
If the permissions are not enough, please right-click the blank space to open as an administrator. If you have not set the root password, please set the root password on Baidu.
Another decompression method can use the terminal command:
tar -xzvf cdrtools-3.02a07.tar.gz
cd cdrtools-3.02
make //不要带上此行
sudo make install //不要带上此行
After decompression (extracted here), enter the corresponding folder: cdrtools-3.02a07——cdrtools-3.02 / or directly enter cdrtools-3.02 .
Right-click blank and select Open in Terminal
Input:
make
If an error is reported: you need to install the gcc environment package, as follows:
incs/x86_64-linux-cc/rules.cnf:没有那个文件或目录
Install the GCC environment package
sudo apt update
sudo apt install build-essential
If make is normal (then install):
sudo make install
3.systemback system packaging
Carry out live packaging
ctrl+alt+t to call out the terminal
systemback-sustart
Click Create
Live System to include
user data files Click Create New
If an error is reported:
the error will be displayed in the terminal (the error is reported due to the content of the snap file with a high probability)
solution - uninstall the software that reported the error or delete the file that reported the error
Proceed normally:
the packaged file will generate the working directory selected in the previous step (the default is /home)
4. Unzip and change the file name
Decompressing files under home requires administrator privileges.
Decompression method 1 : It is most convenient to use the terminal to decompress:
sudo mkdir sblive
sudo tar -xf <你生成的压缩包全名> -C sblive
After the previous step, you can see that the content of the compressed package has been antidote to the newly created sblive folder
Decompression method 2 : Bring up the right-click administrator command (not recommended because it needs to be restarted)
sudo apt-get install nautilus-open-terminal
Decompression method 3 : The administrator opens the folder and uses it (rename, create a new file, delete, etc.) and
directly enter sudo nautilus in the terminal
Change the name of the file syslinux to isolinux after decompression
mv syslinux/syslinux.cfg syslinux/isolinux.cfg
mv syslinux isolinux
5. Convert to iso image file
Open a terminal in the home folder:
/opt/schily/bin/mkisofs -iso-level 3 -r -V sblive -cache-inodes -J -l -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o sblive.iso sblive
The final generated iso file will be under the home file