Orin 添加外置固态硬盘备份还原失败

我是用 sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b jetson-agx-orin-devkit 备份

提示我备份成功

但是当我还原时 提示

请问是什么原因导致的。

Hi askeynil,

Are you using the devkit or custom board for AGX Orin?
What’s your Jetpack version in use?

Are you backup/restore on the same board?
Or another board?

舊版的script有bug 它會在沒有檢查的情況下試圖把硬碟上原有的partition table清空
如果你插一條完全空白的硬碟上去 連partition table都沒有的話 上面那個操作就會失敗

  1. 直接升到5.1.3
  2. 用5.1.3 BSP裡的Linux_for_Tegra/tools/backup_restore/nvrestore_partitions.sh這個檔案取代5.1.2的同樣檔案
  3. 把硬碟接到任意一台host PC 先格式化
1 Like

devkit. 同一块板子

我的 image 是 5.1.2 的,用5.1.3 的备份还原不会有问题吗?

我只是跟你說可以用5.1.3的新版修好bug的script
image當然還是你原本5.1.2的

了解,我试试~

还是一样的错误 ,里面是有分区的。同一块 ssd,使用 -b 之后马上使用 -r 出现问题。

你現在用的是5.1.3的script+5.1.2的image?
很明顯報的是不一樣的錯誤 你要不要換一塊硬碟試試看

是的 5.1.3 的 script 和 5.1.2 的 image

换了还是一样的错误

你如果用5.1.3完整重燒再做一樣的操作還會這樣嗎

备份结果

还原报错

感觉是一样的

能否貼完整的文字log
還有

ls -l Linux_for_Tegra/tools/backup_restore/images

image

Waiting for device to expose ssh …RTNETLINK answers: File exists
RTNETLINK answers: File exists
Device has booted into initrd. You can ssh to the target by the command:
$ ssh root@fe80::1%enxf2891f678d2d
Cleaning up…
Log is saved to Linux_for_Tegra/initrdlog/flash_1-9.4_0_20240726-125957.log
Run command:
ln -s /proc/self/fd /dev/fd && mount -o nolock [fc00:1:1::1]:/data/sdkmanager/data/nvidia/JetPack_5.1.3_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/backup_restore /mnt && /mnt/nvrestore_partitions.sh -e nvme0n1 -n
on root@fc00:1:1::2
/mnt/images ~
nvrestore_partitions.sh: Use the default nvpartitionmap.txt as the index file.
0+0 records in
0+0 records out
0 bytes copied, 3.9136e-05 s, 0.0 kB/s
partx: /dev/nvme0n1: failed to read partition table
partition: none, disk: /dev/nvme0n1, lower: 0, upper: 0

你的機器現在還開得起來?完整重燒一遍 確定可以用之後再跑一次
備份跟還原的log都要 請用附檔的方式

backup.txt (96.2 KB)
restore.txt (95.5 KB)

日志内容和截图对应命令