Use the dd command to package the image in the jetson nano SD card

Use the dd command to package the image in the jetson nano SD card----linux

Many times we need to back up an image in order to prevent damage to the sd card. The following is a tutorial to use the dd command to copy the same image in the jetson nano sd card

sudo dd if=/dev/sdb | pv -s $(sudo blockdev --getsize64 /dev/sdb) | xz -9 > image.xz

8a713691eace5d31d984b3160f12783

  1. Insert the sd card into the computer, and after being recognized by the virtual machine, use the lsblk command to determine the device name of the sd card (that is, sdb in the above command)
  2. Insert the source SD card to be copied into the host where the virtual machine is located
  3. Then the image file image.xz of the source sd card will be generated
  4. Finally burn the image to the new sd card
  5. sdb is the device name of the sd card
  6. Make the mirror image of sdb (sd card) a file named image.xz
  7. The following sentence will copy the sd card (the device path is /dev/sdX, X determines by itself) here is the sdb content copy as a mirror image, and compress it into image.xz file, and place it in the current working directory
  8. The dd command will faithfully copy data from the source device to the destination file or device
  9. Then put image.xz under windows, and burn image.xz to any new card through the balena etcher burner of windows
  10. Balena etcher download address: https://etcher.balena.io/
  11. balena etcher supports compressed images in xz format

pv can be installed

sudo apt install pv

This tool is used to detect pipeline flow data. If you don’t use pv, you don’t know how much data has been transmitted, and your mood will be even more tormented.

61ce50c08406d2b154f192acdc5f862

In this way, the percentage and remaining time are displayed in the lower right corner.

Guess you like

Origin blog.csdn.net/Johnor/article/details/131842148