Jetson-Nano-image icon indicating copy to clipboard operation
Jetson-Nano-image copied to clipboard

Shrink image file

Open borelg opened this issue 4 years ago • 2 comments

Thank you very much for the image file. It's very much appreciated.

Unfortunately, I cannot flash it because balena etcher sais that my media is 2.1MB smaller than the image file. (I am using a 32GB SD Card) How do you suggest me to shrink the image file?

Thanks a lot!

borelg avatar Mar 12 '22 11:03 borelg

@borelg , You're mentioning an annoying problem with images and SD cards. A 32 GB SD card isn't exactly 32 GB. There are MBytes allocated for overhead. Every brand uses a different amount, leaving you with SD cards with a capacity dependable of the make. On the other side, Balena etcher (and other imagers) want to write every byte of the image. It doesn't matter if the byte is even in unallocated partitions. If the SD card is larger than the image, it's no problem Balena leaves a (large) partition free. I've started with SanDisk SD cards, but after issues like yours, I switched to Kingston, being just a bit smaller. It seems you have a brand even slightly smaller than the one I used. There is not much you can do about it. As far as I know, there are no tools capable of shrinking the image. Most people use a 64 GB SD card. After flashing the SD card, they use GParted to enlarge the root partition, knowing that deep learning apps tend to be very large.

Qengineering avatar Mar 13 '22 09:03 Qengineering

@Qengineering , Thanks a lot for the reply. Unfortunately I agree, I have found no method to shrink the image. However, I have compiled OpenCV by following your guide and your installation script! It worked perfectly. Thanks a lot for collecting all the information and sharing the procedure :)

borelg avatar Mar 13 '22 12:03 borelg