Is it possible to move root & the whole system from eMMC to SSD?

I have recently flash my Jetson AGX Orin 32gb Module with JP6.1 and installed CUDA, etc on the internal eMMC. However, it is now FULL and I would like to transfer root and the system to an installed NVMe on the M.2 Key M socket. Is it possible and is there any script to do that?

Below is my system:

jetson@orin:~$ df -kh
Filesystem       Size  Used Avail Use% Mounted on
/dev/mmcblk0p1    54G   51G  763M  99% /
tmpfs             15G  172K   15G   1% /dev/shm
tmpfs            6.0G   27M  6.0G   1% /run
tmpfs            5.0M  4.0K  5.0M   1% /run/lock
/dev/mmcblk0p10   63M  118K   63M   1% /boot/efi
tmpfs            3.0G  132K  3.0G   1% /run/user/1000
/dev/nvme0n1p1   1.8T  134G  1.6T   8% /media/jetson/sensordata1

FYI, you could first clone the existing rootfs as a backup. That takes a lot of space on the host PC, but it is an option before you do anything.

You could then flash using the initrd flash. Note that you could first use the clone to create your default flash content so you start out almost the same as with your current eMMC. Some of the content related to boot would change, but much of the rest would remain the same.

Note that your L4T release can be found with “head -n 1 /etc/nv_tegra_release”, and then you can find documentation on topics like initrd flash and cloning for that release here:
https://developer.nvidia.com/linux-tegra

Regarding cloning, you can just clone the rootfs partition, and you can use any rootfs clone (the backup/restore information goes further than this because it assumes you are restoring exactly what you saved and not modifying some other flash) to replace the “Linux_for_Tegra/rootfs/” (more likely you’d save the original rootfs/ rather than just overwriting…there are options).

1 Like

I used this script and have been able to switch root & boot to my NVMe SSD
change-rootfs-storage.zip (1.3 KB)

jetson@orin:~$ df -hk
Filesystem       1K-blocks      Used  Available Use% Mounted on
tmpfs             15717420       172   15717248   1% /dev/shm
tmpfs              6286968     35480    6251488   1% /run
tmpfs                 5120         4       5116   1% /run/lock
/dev/nvme0n1p1  1921724608 192599264 1631433288  11% /
/dev/mmcblk0p10      64511       118      64394   1% /boot/efi
tmpfs              3143484       128    3143356   1% /run/user/1000
/dev/mmcblk0p1    56451232  52781032     770232  99% /media/jetson/5a68f905-5eae-490a-89fe-9a93c6cec226

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.