Backup SSD system1. Hardware connection2. Compress the SSD2.1. Install Gparted2.2. Use GParted2.2.1. Select the SSD2.2.2. Unmount the partition2.2.3. Perform disk compression3. Back up the SSD3.1. Check disk information3.2. Start disk backup
During the development process, users may need to back up the system to prevent subsequent development from affecting the current system environment.
The image file demonstrated in the tutorial is not the actual factory image, it is only for tutorial demonstration
Users need to prepare the SSD box in advance, install the SSD into the SSD box and connect it to the computer or virtual machine: the computer and virtual machine systems need to be Ubuntu systems.
Since the SSD capacity of the Jetson Orin series motherboard is relatively large, we need to compress it to an appropriate space for system backup to save time for backup and burning the system.
xxxxxxxxxx
sudo apt update
sudo apt install gparted -y
Find the GParted
application icon in the system application menu bar to open it or enter the following command in the terminal to start it:
xxxxxxxxxx
gparted
Select the newly added disk symbol: You can confirm again whether it is the SSD you mounted based on the disk capacity
Before operating the disk, you need to unmount the disk: select the APP
partition (largest partition) in the disk, and click Unmount
to unmount the partition
Right-click the uninstalled disk partition and resize the previously uninstalled partition space:
You can adjust the partition size using the slider: yellow is the space used by the partition, white is the unused space, it is recommended to leave about 5-10G of unused space in the partition to avoid the system from failing to start
Confirm the disk operation:
Wait for the operation to complete:
After completing the above operations, close GParted!
Open the terminal and use the script to view the current disk information: the drive letter needs to correspond to the drive letter of the SSD you backed up
xxxxxxxxxx
sudo bash parted_info.sh /dev/sdb
parted_info.sh script content
xxxxxxxxxx
#!/bin/bash
date
echo $1
sudo parted $1 <<EOF
unit s
print free
quit
EOF
Record the data in the figure: 41822208s
Use the dd
command to back up the SSD to the img
file. Enter the following in the terminal:
xxxxxxxxxx
sudo dd if=/dev/sdb of=Jetson_Orin_Nano_8G.img bs=512 count=41822208
/dev/sdb
: SSD drive letter
Jetson_Orin_Nano_8G.img
: Image name
bs=512
: Set block size to 512 bytes
56393728
: Data queried by the script
To view the dd
process information, open another terminal and enter the following command:
xxxxxxxxxx
sudo watch -n 3 pkill -USR1 ^dd$
Wait for the backup to complete:
After the system backup is complete, move the backup file (Jetson_Orin_Nano_8G.img) to the Windows system for use.