Jetson Nano System Backup to Ubuntu 20.04 with ROS2 Configuration
- Method 1 - Backup within the Nano System
Start the Nano and enter the system. Insert a USB drive and check if it is automatically mounted. If not, mount it manually.
sudo fdisk -l
The green box shows the SD card system information, which is the path for backing up the system. The red box shows the USB drive's mounted information. It is recommended that those who want to back up an image prepare a smaller SD card to burn the system, complete the necessary work, and use it for subsequent system backups. This method only uses the entire SD card copy method and does not explore other backup methods.
Alternatively, use GParted to view:
sudo apt-get install gparted
GParted can be used for disk expansion and viewing disk status, which is very user-firendly for beginners.
The green box indicates the USB drive's mounted path. When copying the image, the save path should be this location.
Backup command:
Here, /dev/mmcblk0 is the path of the Nano system to be backed up, /media/3E4A5BF94A5BAD01/ is the path where the USB drive is mounted, and clone_B01.img.gz is the name of the cloned backup file for the Nano system. I backed up a 32GB SD card, which took about an hour.
sudo dd if=/dev/mmcblk0 conv=sync,noerror | gzip -c > /media/3E4A5BF94A5BAD01/clone_B01.img.gz
After copying, we can use a burning tool to write the image to a new SD card.
- Method 2 - Backup from Windows 10 System
Note: (This method works if the SD card's drive letter is visible in Windows 10, and it is quick!) I only successfully tried this method on the office computer. It did not work on my personal laptop, possibly because the laptop or other computers could not select the corresponding drive letter in the Win32DiskImager software. The exact reason is unknown, but there may be a possibility that the Win32DiskImager software on the office computer was downloaded and installed directly from the official site, not copied as a folder!
Remove the SD card from the Nano board and insert it into the computer. Open the Win32DiskImager software, which can be downloaded and installed from the provided link.
Create an img file with the .img extension in Windows 10.
Rename and change the extension.
In the Win32DiskImager software, check if there is a device drive letter. If so, select the img image file created earlier and check 'Read only allocated partitions', then click Read.
Click Yes.
Wait for the progress bar to finish, and the backup is completed.
('Read only allocated partitions' checkbox doesn't seem to make much difference. My SD card is 32GB, and I only allocated 19GB. The backup size is still 32GB when checked.)
All backup tasks are now complete.