Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to backup and restore jetson nano system

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to backup and restore the jetson nano system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

After the system is installed, it needs to be backed up, how to restore it to other SD cards? The environment is a ubuntu18.04,jetson system flash drive, which is inserted in the form of a USB disk.

I. backup

1. First use the following command to confirm the device number of the u disk that needs to be backed up.

Sudo fdisk-l

I'm sure it's / dev/sdc

2. Set up a backup directory:

Mkdir jetson_nano_data & & cd jetson_nano_data

3. Backup information

Sudo fdisk-l / dev/sdc > fdisk_info.txtsudo parted-s / dev/sdc print > parted_info.txt

4. Backup 12 partitions and backup partition tables

Sudo dd if=/dev/sdc2 of=./sdc02_TBC.imgsudo dd if=/dev/sdc3 of=./sdc03_RP1.imgsudo dd if=/dev/sdc4 of=./sdc04_EBT.imgsudo dd if=/dev/sdc5 of=./sdc05_WB0.imgsudo dd if=/dev/sdc6 of=./sdc06_BPF.imgsudo dd if=/dev/sdc7 of=./sdc07_TOS.imgsudo dd if=/dev/sdc8 of=./sdc08_EKS.imgsudo dd if=/dev/sdc9 of=./sdc09_LNX.imgsudo dd if=/dev/sdc10 of= . / sdc010_DTB.imgsudo dd if=/dev/sdc11 of=./sdc011_RP4.imgsudo dd if=/dev/sdc12 of=./sdc012_BMP.imgsudo dd if=/dev/sdc1 of=./sdc01_APP_16M.img bs=1M count=16sudo dd if=/dev/sdc of=./sdc_32M.img bs=1M count=32

5. Mount the first partition of the backup (the partition where the system data resides):

Sudo mkdir-p / media/fzyzm/linux_syssudo mount-t ext4 / dev/sdc1 / media/fzyzm/linux_sys

6. Backup system data

Sudo dump-0uj-f. / dump_backup_20190701.dump.bz2 / media/fzyzm/linux_sys/

If the above command has the following error: DUMP: You can't update the dumpdates file when dumping a subdirectory

DUMP: The ENTIRE dump is aborted.

You can use the following command:

Sudo dump-0uj-f. / dump_backup_20190701.dump.bz2 / dev/sdc

2. Restore (full use of root users)

1. First use the following command to confirm the device number of the u disk that needs to be recovered

Sudo fdisk-l

I'm sure it's / dev/sdc

2. Check the partition situation and delete the existing partition:

Parted-s / dev/sdc printparted-s / dev/sdc rm 1parted-s / dev/sdc rm 2parted-s / dev/sdc rm 3parted-s / dev/sdc rm 4parted-s / dev/sdc rm 5parted-s / dev/sdc rm 6parted-s / dev/sdc rm 7parted-s / dev/sdc rm 8parted-s / dev/sdc rm 9parted-s / dev/sdc rm 10parted-s / dev/sdc rm 11parted-s / dev/sdc rm 12

3. Create a partition:

Parted / dev/sdc-- script-- mklabel GPTparted-- script / dev/sdc mkpart APP ext4 24576s 100%parted-- script / dev/sdc mkpart TBC 2048s 2303sparted-- script / dev/sdc mkpart RP1 4096s 4991sparted-- script / dev/sdc mkpart EBT 6144s 7295sparted-- script / dev/sdc mkpart WB0 819s 8319sparted-script / dev/sdc mkpart BPF 10240s 10623sparted-script / dev/sdc mkpart TOS 12288s 13439sparted-script / dev/sdc mkpart EKS 14336s 14463sparted-script / dev/sdc mkpart LNX 16384s 17663sparted-script / dev/ Sdc mkpart DTB 18432s 19327sparted-script / dev/sdc mkpart RP4 20480s 20735sparted-script / dev/sdc mkpart BMP 22528s 22687s

3. Restore the remaining 11 partitions:

Dd of=/dev/sdc2 if=./sdc02_TBC.imgdd of=/dev/sdc3 if=./sdc03_RP1.imgdd of=/dev/sdc4 if=./sdc04_EBT.imgdd of=/dev/sdc5 if=./sdc05_WB0.imgdd of=/dev/sdc6 if=./sdc06_BPF.imgdd of=/dev/sdc7 if=./sdc07_TOS.imgdd of=/dev/sdc8 if=./sdc08_EKS.imgdd of=/dev/sdc9 if=./sdc09_LNX.imgdd of=/dev/sdc10 if=./sdc010_DTB.imgdd of=/ Dev/sdc11 if=./sdc011_RP4.imgdd of=/dev/sdc12 if=./sdc012_BMP.img

4. Format the system data partition and mount it

Mkfs.ext4 / dev/sdc1sudo mkdir-p / media/fzyzm/linux_syssudo mount-t ext4 / dev/sdc1 / media/fzyzm/linux_sys

5. Recovery system:

Cd / media/fzyzm/linux_sysrestore-r-f / media/fzyzm/S_LINUX_OTHER/jetson_nano_data/dump_backup_20190701.dump.bz2

Note: if you restore to an existing system disk, you can start with step 4

On how to carry out jetson nano system backup and recovery to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report