Mounting of .img file

Hi,

Looking for help to mount the Jetson-Nano sdcard image file without burning on Sdcard

Thanks!!

Hi,

Sorry. no such method. If you don’t want to use sdcard, you could buy production module which uses emmc and carrier board from vendors.

If you have an image of just the root filesystem (some images contain multiple partitions), and it is raw, not sparse, then:
sudo mount -o loop /where/ever/it/is/image.img.raw /mnt

1 Like

Thanks Guys !!

If you’re looking to edit the rootfs, you can ether use SDK Manager to setup an environment for you, or you can download the BSP tarball (L4T Driver Package here), extract that, and then extract the rootfs tarball to the rootfs folder within Linux_for_Tegra (a folder the BSP tarball extracts).

Then you can use chroot or proot with qemu to enter the rootfs interactively and edit it that way. Nvidia’s own scripts like apply_binaries.sh use this method to install software. If you add apt sources, apt-get will work as well, so you can add custom repos, update the system, etc. When you’re done you can either use flash.sh or a script in Linux_for_Tegra/tools to create a sd card from that. I believe it’s called create_disk_image.sh or similar. Instructions on how to do all of this is in the Linux for Tegra documentation and elsewhere on the forum.

Hey, it’s a tad too late, but I was baffled by nvidia’s response on this while searching on the forum for something else. Mounting the image is possible, why on earth wouldn’t it be? Follow the next stept for JetPack 4.5:

  1. Download the latest JetPack image.
wget -q -O jetpack.zip https://developer.nvidia.com/jetson-nano-sd-card-image
unzip jetpack.zip
  1. Inspect the image.
fdisk -l sd-blob-b01.img

For JetPack 4.5, you will get the following output:

Disk sd-blob-b01.img: 13.3 GiB, 14270070784 bytes, 27871232 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 991E26BF-720A-4C06-A4B8-B8720A44C769

Device            Start      End  Sectors  Size Type
sd-blob-b01.img1  28672 27867135 27838464 13.3G Linux filesystem
...
  1. Mount the first partition.

Find the offset in bytes by multiplying this unit size by the Start block of the partition.

sudo mkdir /mnt/jetpack
sudo mount -v -o offset=$((512 * 28672)) -t ext4 sd-blob-b01.img /mnt/jetpack
2 Likes