Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

Easy way to free up Jetson Nano SD card disk space by 40%

1 min read

The NVIDIA® Jetson Nano Developer Kit is a great way to get started with AI. It is a small, powerful computer that lets you run multiple neural networks in parallel for applications like image classification, object detection, segmentation, and speech processing. All in an easy-to-use platform that runs in as little as 5 watts.

Last week, I wanted to run NVIDIA DeepStream software in a Docker container on top of Jetson Nano. To my surprise, I found that the only SD card available was 16GB in size. Then I realized that I hardly got 291 MB space left on my device.

 df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1   15G   14G  291M  98% /
none            947M     0  947M   0% /dev
tmpfs           986M   40K  986M   1% /dev/shm
tmpfs           986M   44M  943M   5% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           986M     0  986M   0% /sys/fs/cgroup
tmpfs           198M   20K  198M   1% /run/user/1000
 

Luckily, I was able to solve this problem. Here’s what I followed to free up some disk space in NVIDIA Jetson Nano.

Step 1. Update the existing repo

sudo apt update
 

Step 2. Remove unnecessary packages

sudo apt autoremove -y
 

Step 3. Clean up your repo

sudo apt clean
 

Step 4. Remove Libreoffice related packages

sudo apt remove thunderbird libreoffice-* -y
 

Step 5. Remove samples

 

sudo rm -rf /usr/local/cuda/samples \
/usr/src/cudnn_samples_* \
/usr/src/tensorrt/data \
/usr/src/tensorrt/samples \
/usr/share/visionworks* ~/VisionWorks-SFM*Samples \
/opt/nvidia/deepstream/deepstream*/samples

Step 6. Remove local repos

sudo apt purge cuda-repo-l4t-local libvisionworks-repo -y
sudo rm /etc/apt/sources.list.d/cuda*local
 /etc/apt/sources.list.d/visionworks*repo*
sudo rm -rf /usr/src/linux-headers-*

Step 7. Remove GUI

sudo apt-get purge gnome-shell ubuntu-wallpapers-bionic light-themes chromium-browser* libvisionworks libvisionworks-sfm-dev -y
sudo apt-get autoremove -y
sudo apt clean -y

Step 8. Remove static libs

sudo rm -rf /usr/local/cuda/targets/aarch64-linux/lib/.a \
/usr/lib/aarch64-linux-gnu/libcudnn
.a \
/usr/lib/aarch64-linux-gnu/libnvcaffe_parser*.a \
/usr/lib/aarch64-linux-gnu/libnvinfer*.a \
/usr/lib/aarch64-linux-gnu/libnvonnxparser*.a \
/usr/lib/aarch64-linux-gnu/libnvparsers*.a

Woah! I was able to install NVIDIA DeepStream 6.0 on my 16GB SD card.

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

49 Replies to “Easy way to free up Jetson Nano SD card…”

  1. This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!

  2. You can certainly see your expertise in the work you write. The world hopes for even more passionate writers like you who are not afraid to say how they believe. Always follow your heart.

  3. you are really a good webmaster. The web site loading speed is incredible. It seems that you’re doing any unique trick. Furthermore, The contents are masterwork. you have done a great job on this topic!

  4. Thank you for sharing superb informations. Your website is so cool. I am impressed by the details that you have on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and simply could not come across. What an ideal web site.

  5. Have you ever considered about adding a little bit more than just your articles? I mean, what you say is important and all. However think of if you added some great photos or video clips to give your posts more, “pop”! Your content is excellent but with pics and clips, this blog could definitely be one of the very best in its niche. Wonderful blog!

  6. Hello would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a fair price? Cheers, I appreciate it!

  7. I’m still learning from you, as I’m trying to achieve my goals. I certainly liked reading all that is written on your blog.Keep the posts coming. I liked it!

  8. I like this web blog so much, saved to bookmarks. “I don’t care what is written about me so long as it isn’t true.” by Dorothy Parker.

  9. I?¦ve been exploring for a bit for any high quality articles or weblog posts in this sort of space . Exploring in Yahoo I eventually stumbled upon this web site. Studying this information So i?¦m happy to express that I’ve an incredibly excellent uncanny feeling I came upon just what I needed. I most surely will make certain to don?¦t disregard this site and give it a glance on a relentless basis.

  10. Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I acquire actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

  11. Very good blog! Do you have any helpful hints for aspiring writers? I’m planning to start my own blog soon but I’m a little lost on everything. Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally overwhelmed .. Any tips? Thanks a lot!

  12. Whats Taking place i am new to this, I stumbled upon this I’ve discovered It absolutely useful and it has aided me out loads. I’m hoping to give a contribution & aid different customers like its aided me. Great job.

  13. I simply wanted to jot down a simple word in order to say thanks to you for all the great tips you are sharing at this website. My prolonged internet research has at the end of the day been recognized with wonderful know-how to go over with my family. I would express that many of us website visitors are undeniably fortunate to exist in a fine site with very many awesome people with very beneficial opinions. I feel pretty blessed to have encountered your weblog and look forward to some more brilliant times reading here. Thanks once again for all the details.

  14. Thanks for the different tips provided on this blog. I have realized that many insurance companies offer prospects generous savings if they opt to insure many cars together. A significant volume of households possess several vehicles these days, especially those with mature teenage kids still living at home, and the savings on policies may soon increase. So it makes sense to look for a bargain.

  15. En yeni türk ifşa,tumblr ifşa,periscope ifşa,
    vk ifşa ve twitter ifşa porno videoları ücretsiz olarak izleyebilirsiniz.
    torununu ağlatarak siken dede izle. admin 1 sene
    riyle ünlü liseli kızların en son çıkan lise
    porno sikiş videolarını izle.

  16. I am not positive the place you’re getting your info, however great topic. I needs to spend a while finding out much more or figuring out more. Thanks for wonderful information I used to be in search of this info for my mission.

  17. I was recommended this website via my cousin. I am not positive whether this submit is written by him as no one else realize such special approximately my difficulty. You’re amazing! Thank you!

  18. You really make it seem so easy along with your presentation but I in finding this topic to be actually something that I believe I would by no means understand. It seems too complicated and extremely broad for me. I am taking a look forward in your subsequent put up, I will try to get the grasp of it!

Leave a Reply to Anonymous Cancel reply

Your email address will not be published.

© Copyright Collabnix Inc

Built for Collabnix Community, by Community