RepositoryShellUSUnited States
JetsonHacksNano

JetsonHacksNano/installSwapfile

Install a swap file on the NVIDIA Jetson Nano Developer Kit. This should help with memory pressure issues.

151stars
68forks
4issues
1views

installSwapfile

Note: While you can still use this method to add a swap file, note that newer versions of L4T/JetPack have swap memory as part of the default distribution, implemented through zram. You may choose to use both a swapfile, as implemented here, and the zram swap memory at the same time.

Original article on JetsonHacks: https://wp.me/p7ZgI9-1ac

Install a swap file on the NVIDIA Jetson Nano Developer Kit. This should help with memory pressure issues.

Setup Swap File

installSwapFile.sh - Create a swap file ; Use on external media like USB drive or SSD

usage: installSwapFile.sh [[[-d directory ] [-s size] -a] | [-h]]

-d | --dir [directoryname] Directory to place swapfile (defaults to /mnt)

-s | --size [gigabytes] (defaults to 6 )

-a | --auto Enable swap on boot in /etc/fstab (default: "Y")

-h | --help This message

Defaults to creating a 6GB Swapfile in the current directory

Note: If you enable swap on boot, you should also automount the drive that you're using

Automount

Automount a device given the label

autoMount.sh - Automount a device, useful for external media like USB drives

usage: autoMount.sh [ [-l label] | [-h]]

-l | --label [labelname] Label to lookup

-h | --help This message

Example usage:

$ ./shellScript.sh -l RaceUSB

where RaceUSB is the label of the device mounted at /media/jetsonhacks/RaceUSB

Tool to help automount the device given from the label The script looks up the device, mounting point and UUID for the given label Optionally add it to /etc/fstab

Release Notes

v0.7 April 2019

  • Add Automount Support
  • L4T 32.1.0 (JetPack 4.2)
  • Tested on Jetson Nano

Initial Release April, 2019

  • L4T 32.1.0 (JetPack 4.2)
  • Tested on Jetson Nano

Similar Projects

Discover other similar projects and AI models.

RepositoryShell
turing-machines/BMC-Firmware

Turing-pi BMC firmware

323
Sep 2, 2025
RepositoryShell
piyoki/jetson-packages-family

The ultimate software installation guide for Nvidia Jetson Nano/Xavier Dev Kit

196
Mar 31, 2025
RepositoryShell
jetsonhacks/installRealSenseSDK

Install the Intel RealSense SDK on the NVIDIA Jetson Development Kits

172
Dec 15, 2021
RepositoryShell
JetsonHacksNano/installLibrealsense

Build and install Intel's librealsense for the NVIDIA Jetson Nano Developer Kit

170
Sep 8, 2021
RepositoryShell
VC-MIPI-modules/vc_mipi_nvidia

Vision Components MIPI CSI-2 driver for NVIDIA Jetson Nano, Xavier NX, AGX Xavier, TX2 and Orin Nano, Orin NX

137
Nov 16, 2026
RepositoryShell
jetsonhacks/bootFromUSB

Boot NVIDIA Nano Jetson Developer Kit from a mass storage USB device (Jetson Nano devices A02, B01, 2GB and possibly Jetson TX1)

135
May 16, 2021
RepositoryShell
JetsonHacksNano/rootOnUSB

Set rootfs to be on a USB drive

131
Jan 17, 2020
RepositoryShell
JetsonHacksNano/installVSCode

No description provided.

111
Oct 21, 2024
RepositoryShell
JetsonHacksNano/buildKernelAndModules

Build the Linux Kernel and Modules on board the NVIDIA Jetson Nano Developer Kit

100
May 5, 2024