Changing Storage of the Root File System. [EMMC to M.2 SSD]

Changing Storage of the Root File System. [EMMC to M.2 SSD]

Jetson AGX Xavier | Jetson Nano | Jetson Xavier NX

20 February 2021
WHAT YOU WILL LEARN?

1- How to connect to M.2 Device and how to format it as ext4?

2- How to copy the root file system?

3- How to assign M.2 Device as root file system?

ENVIRONMENT

Hardware: Jetson Xavier NX

OS: JetPack 4.4.1 (L4T-32.4.4)







Most of the time EMMC flash is not enough. In this blog post, we will explain how to move your root file system on EMMC flash to SSD storage on M.2 slot.

This post applicable to:

  • DSBoard-NX2,
  • DSBOX-NX2,
  • DSBOX-N2.


Prerequisites:

  1. Connect your M.2 compatible storage device to M.2 connector(For DSBOX-NX2 and DSBOX-N2 you have to open it's casing) of your device while it is powered off.
  2. Connect basic interfaces(HDMI, keyboard, mouse, ethernet) then power on.

To copy the Root File System, you have to find the name of the newly connected storage device. To this, you can use gnome-disks command on terminal.

 

 

Format the disk as ext4 format(partition size is up to you but must be min 16GB).

 


    Check the newly created partition's name.

     

     

    Copy the script which attached below to the device then extract it.

     

     

    Open a new terminal and run change-rootfs-storage.shscript with new partition name. This script copy file system on EMMC to SSD then create service to use SSD as the default root file system storage. After this script, reboot your device.

      • sudo ./change-rootfs-storage.sh /dev/nvme0n1p1

         

        After rebooting you can see that new storage is assigned as root file system.

         

         

        Thank you for reading our blog post. 


        If you want to get updated on new blog posts, product launches and discounts, you can fill out the form and sign up for our newsletter. By signing up, you can reach various blog posts about AI, deep learning, machine vision, high-speed cameras, and industrial interfaces. 


        You will receive a "free shipping" code for next purchase immediately.

        Türkçe