Skip to content

Cart

Your cart is empty

How to Protect the Root Filesystem on Jetson with Overlayroot?

WHAT YOU WILL LEARN?

1- Initial Setup

2- Enabling the Overlayroot

3- Disabling the Overlayroot

ENVIRONMENT

Hardware: DSBOARD-XV2 with AGX Xavier SoM

OS: Jetpack 4.6


In this blog-post, we will protect the root file-system for overwriting with Overlayroot. First, we will clone the project files' repository & do the initial setup. Then, we will enable the Overlayroot. Finally, we will disable the Overlayroot on it.

Initial Setup

To begin with, we need to clone the project files from GitHub. Open a terminal & type the following commands below:


git clone https://github.com/mistelektronik/jetson_overlayroot.git
cd jetson_overlayroot/
sudo apt update


Afterwards, start the initial setup on Jetson.


sudo ./setup.sh


At the end of the script file, the Jetson is ready for using Overlayroot.

Enabling the Overlayroot

To enable the Overlayroot, there is a script file in the project file. Open a terminal from the project folder & enable the Overlayroot.


sudo ./enable_overlayroot.sh
reboot


After the system rebooted, you can see that the root file-system mounted as read-only from "mount" command or gnome-disks application.

At this point, all the differences have gone to the next boot-up time.

Disabling the Overlayroot

To disable the Overlayroot, there is a script file in the project file. Open a terminal from the project folder & disable the Overlayroot.


sudo ./disable_overlayroot.sh
reboot


After the system rebooted, you can see that the root file-system mounted as read-write enabled from "mount" command or gnome-disks application.

At this point, all the differences have been saved.



Thank you for reading our blog-post.