How To Set Up SSD on Nvidia Jetson Nano
Learn how to mount and configure an SSD on your Nvidia Jetson Nano, transitioning from a MicroSD setup. This step-by-step guide will walk you through the process.
Categories:
Prerequisites
- Nvidia Jetson Nano
- SSD
- MicroSD card
- Terminal access
Steps
1. Wipe SSD Using Terminal
- Connect the SSD to your Jetson Nano.
- Open a terminal.
- Use the
fdisk
command to manage partitions:sudo fdisk /dev/sda
- Delete existing partitions by typing
d
and follow the on-screen prompts. - Create a new partition by typing
n
and follow the prompts. ChoosePrimary
and use the default values. - Set the partition type to Linux (
83
) by typingt
and choosing83
. - Write the changes and exit by typing
w
.
2. Format and Mount the SSD
- Format the SSD partition with the Ext4 file system:
sudo mkfs.ext4 /dev/sda1
- Create a mount point:
sudo mkdir /media/ssd
- Mount the SSD:
sudo mount /dev/sda1 /media/ssd
- Confirm that the SSD is mounted:
df -h
- Make the SSD mount automatically on boot by adding an entry to
/etc/fstab
:echo '/dev/sda1 /media/ssd ext4 defaults 0 0' | sudo tee -a /etc/fstab
- Check the entry in
/etc/fstab
:cat /etc/fstab
3. Additional Configuration (Optional)
- If you want to set up a SWAP partition (optional), you can create and enable it using the following commands:
sudo fallocate -l 4G /media/ssd/swapfile sudo chmod 600 /media/ssd/swapfile sudo mkswap /media/ssd/swapfile sudo swapon /media/ssd/swapfile
- To make the SWAP file permanent, add an entry to
/etc/fstab
:echo '/media/ssd/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Conclusion
You have successfully wiped, formatted, and mounted your SSD using the terminal on your Nvidia Jetson Nano.
2. Download and Move Files
- After the SSD is mounted, open
Terminal
to installnano
:sudo apt install nano
- Download the
bootFromUSB
repository from JetsonHacks:git clone https://github.com/jetsonhacks/bootFromUSB
- Enter the
bootFromUSB
folder:cd bootFromUSB
- Obtain the SSD UUID:Remember the output:
./partUUID.sh
root=PARTUUID=a40b6c71-ca35-79d3-8an0-d6v66749e060
. - Move files from MicroSD to SSD:
./copyRootToUSB.sh -p /dev/sda1
3. Configure SSD
- Navigate to the SSD folders:
cd /media/syslogine/myproject/boot/extlinux
- Open
extlinux.conf
:sudo nano extlinux.conf
- Replace:
with the SSD UUID obtained earlier:root=/dev/mmcblk0p1
root=PARTUUID=a40b6c71-ca35-79d3-8an0-d6v66749e060
- Save and exit
nano
(Ctrl
+X
,Y
,Enter
). - Shutdown Jetson Nano:
sudo poweroff
- After your Jetson Nano powers off, remove the MicroSD card and power it on again. The system should now boot from the SSD instead of the MicroSD card.
Conclusion
Congratulations! You have successfully set up your SSD on Nvidia Jetson Nano, enhancing storage and performance.