I want Make a Recoverable Rootfs,user can use it as normal. when user broken the ubuntu system, I can provide a method to restore ubuntu system!
Linux_for_Tegra/tools/backup_restore/README_backup_restore.txt
that’s correct, please refer to developer guide, Backing Up and Restoring a Jetson Device.
This restore method I known,I want a method, that don’t use usb to flashing the binary files。
such as overlayroot, but official provide a overlayroot tool, it will clean user change when the system reboot.
I just want a method could restore a system without usb flashing.
What would you want to restore to? I mean, everything under / , or under $HOME, or what might the end user possibly do that you would want to erase?
@JerryChang could this work?
@Evil_mage , what is your use case. could you Flash mmc . Then flash nvme and make it mounted to /
After you’ve finished preparing the golden partition /dev/mmcblk0p1:
sudo umount /dev/mmcblk0p1
sudo blockdev --setro /dev/mmcblk0p1
sudo mkdir -p /mnt/golden.
sudo mount -o ro,noload /dev/mmcblk0p1 /mnt/golden
sudo rsync -aHAXSx --numeric-ids \
--info=progress2 \
--exclude='/dev/***' \
--exclude='/proc/***' \
--exclude='/sys/***' \
--exclude='/run/***' \
--exclude='/tmp/***' \
--exclude='/mnt/***' \
--exclude='/media/***' \
--exclude='/boot/efi/***' \
--exclude='/boot/extlinux/extlinux.conf' \
--exclude='/lost+found' \
/mnt/golden/ /
hello Evil_mage,
you may refer to Over-the-Air Update, by having ota_backup_files_list.txt to preserve custom data during image-based OTA.