How to flash only rootfs partition?

How to flash only rootfs partition on Jetson Xavier devkit?

Use what options for flash.sh script?

Unless all other partitions are an exact match to what the rootfs uses, this will leave the unit not booting. Those other partitions also only take a minute to flash, and almost all other time for flash is for the rootfs anyway.

In theory, if you have a rootfs partition already generated, then during flash you’d use option “-r” to prevent generating it again and to use the existing “Linux_for_Tegra/bootloader/system.img” as your rootfs. The option to flash only the rootfs (the “APP” partition) is “-k APP”. So to create a new partition for rootfs and to flash only that (this will overwrite the “bootloader/system.img” prior to flash):
sudo ./flash.sh -k APP jetson-xavier mmcblk0p1

To do the same thing without generating a new rootfs, but reuse what is there (this will not overwrite the “bootloader/system.img” prior to flash):
sudo ./flash.sh -r -k APP jetson-xavier mmcblk0p1

Make sure you really want to not flash the other content…it might take all of 30 seconds, and if your rootfs size has changed, then you might need to reposition those partitions even if the actual partition content remains constant.

Thanks for help