Trimming Ubuntu image

Dear Community,

I’m working on a prototype, which is based on a Jetson Nano 4GB devkit, running the latest Ubuntu image (Linux version 4.9.253-tegra (buildbrain@mobile-u64-5434-d8000)).
This image looks cluttered with a lot of useless partitions (some are only 64kB large):

Périphérique    Début       Fin  Secteurs Taille Type
/dev/mmcblk0p1  28672 124733439 124704768  59,5G Système de fichiers Linux
/dev/mmcblk0p2   2048      2303       256   128K Système de fichiers Linux
/dev/mmcblk0p3   4096      4991       896   448K Système de fichiers Linux
/dev/mmcblk0p4   6144      7295      1152   576K Système de fichiers Linux
/dev/mmcblk0p5   8192      8319       128    64K Système de fichiers Linux
/dev/mmcblk0p6  10240     10623       384   192K Système de fichiers Linux
/dev/mmcblk0p7  12288     13055       768   384K Système de fichiers Linux
/dev/mmcblk0p8  14336     14463       128    64K Système de fichiers Linux
/dev/mmcblk0p9  16384     17279       896   448K Système de fichiers Linux
/dev/mmcblk0p10 18432     19327       896   448K Système de fichiers Linux
/dev/mmcblk0p11 20480     22015      1536   768K Système de fichiers Linux
/dev/mmcblk0p12 22528     22655       128    64K Système de fichiers Linux
/dev/mmcblk0p13 24576     24959       384   192K Système de fichiers Linux
/dev/mmcblk0p14 26624     26879       256   128K Système de fichiers Linux

I’m wondering how I could clean it:

  • Remove useless partitions
  • Remove useless (desktop) applications

I’ve read this post, which describes how to create a minimal image, but the attached file is not longer available. Following the thread, I’ve visited Pythops’ github but this image doesn’t support the 4Gb board. Could anyone point me to a proper trimmed image (including PyTorch)?

Thanks in advance for any help!

Jetsons do not have a BIOS (most embedded systems don’t; they would be more expensive, use more power, be larger, and be subject to “bricking”). This means the traditional work of a BIOS must be done in software. Those “useless” partitions are the equivalent to the BIOS and boot stages. Once the system is booted they are “useless”. However, the first time you turn the Jetson off, it’s never starting again until you flash that content. You will have to work within the rootfs to reduce size.

1 Like

Hi @jeanluc.garnier, you could check out this Guide To Minimizing Jetson Disk Usage:

https://nvidia-ai-iot.github.io/jetson-min-disk/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.