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.

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

  1. My spouse and I stumbled over here from a different web page and thought I might check things out. I like what I see so now i’m following you. Look forward to looking over your web page for a second time.

  2. I was just looking for this info for some time. After 6 hours of continuous Googleing, at last I got it in your website. I wonder what is the lack of Google strategy that don’t rank this kind of informative web sites in top of the list. Usually the top websites are full of garbage.

  3. Hey! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.

  4. There are definitely quite a lot of details like that to take into consideration. That may be a great level to convey up. I provide the thoughts above as common inspiration but clearly there are questions just like the one you bring up the place the most important thing will be working in honest good faith. I don?t know if finest practices have emerged round things like that, however I’m certain that your job is clearly recognized as a fair game. Each girls and boys feel the influence of only a second’s pleasure, for the rest of their lives.

  5. It is appropriate time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or advice. Maybe you could write next articles referring to this article. I wish to read more things about it!

  6. In this awesome design of things you’ll secure a B- just for effort and hard work. Where you lost me personally ended up being on all the facts. You know, it is said, details make or break the argument.. And that couldn’t be more true here. Having said that, permit me reveal to you exactly what did deliver the results. Your authoring is highly convincing which is possibly the reason why I am taking an effort in order to opine. I do not make it a regular habit of doing that. Second, while I can easily notice a leaps in reasoning you make, I am not necessarily certain of exactly how you appear to connect the ideas which produce your conclusion. For now I will, no doubt subscribe to your issue but trust in the near future you connect your facts much better.

  7. I like the valuable information you provide in your articles. I’ll bookmark your blog and check again here frequently. I’m quite sure I will learn many new stuff right here! Best of luck for the next!

  8. I have been exploring for a bit for any high quality articles or weblog posts in this kind of area . Exploring in Yahoo I ultimately stumbled upon this web site. Studying this information So i am glad to exhibit that I’ve an incredibly good uncanny feeling I came upon exactly what I needed. I such a lot undoubtedly will make certain to don?¦t omit this web site and provides it a look regularly.

  9. Great site. Plenty of useful information here. I am sending it to a few friends ans also sharing in delicious. And obviously, thank you to your sweat!

  10. I was wondering if you ever thought of changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two pictures. Maybe you could space it out better?

  11. I’ve been surfing online greater than 3 hours lately, but I never found any attention-grabbing article like yours. It is lovely price enough for me. Personally, if all webmasters and bloggers made just right content material as you probably did, the web can be much more useful than ever before.

  12. Nice read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch because I found it for him smile Therefore let me rephrase that: Thank you for lunch!

  13. Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!

  14. I’m no longer certain the place you’re getting your info, but great topic. I needs to spend some time studying much more or working out more. Thank you for great info I used to be searching for this information for my mission.

  15. In this awesome pattern of things you’ll secure an A with regard to hard work. Exactly where you misplaced us was first in your details. As they say, the devil is in the details… And that could not be much more correct in this article. Having said that, let me say to you precisely what did do the job. Your article (parts of it) is definitely highly convincing and this is most likely the reason why I am taking an effort in order to comment. I do not make it a regular habit of doing that. Secondly, while I can easily notice the leaps in logic you make, I am not really confident of exactly how you seem to unite your points which make the final result. For right now I will yield to your point however wish in the future you link your facts much better.

  16. I am now not sure the place you’re getting your info, but great topic. I must spend some time studying much more or figuring out more. Thank you for wonderful information I was looking for this info for my mission.

  17. Hi there! Someone in my Facebook group shared this website with us so I came to give it a look. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers! Excellent blog and terrific style and design.

  18. Hi! This is my first comment here so I just wanted to give a quick shout out and tell you I really enjoy reading through your blog posts. Can you recommend any other blogs/websites/forums that go over the same topics? Thank you so much!

  19. I am really enjoying the theme/design of your website. Do you ever run into any internet browser compatibility problems? A few of my blog visitors have complained about my blog not working correctly in Explorer but looks great in Chrome. Do you have any suggestions to help fix this problem?

Leave a Reply

Your email address will not be published.