I’ve used the latest Jetson Nano image from Nvidia and found out that:
MicroSD card is mounted as /sda and has a more or less 56Gb free storage left
The image created a mmblk0 device where the root account lives, which is only 14Gb.
This capacity is not enough for our application: why can’t I just use the /sda/home/myuser to install the application? Why am I restricted into this mmblk0 device (which I don’t need at all)?
Thanks for the advice! I’ve actually begun reading on Linux filesystem as I understood I was missing something here…
By the way, on this particular case, many files have been copied to the current home folder (/nvidia/Documents or /nvidia/Images): would the modification you suggest move those files to the new location or would they be lost in the migration?
Looks like your solution would fit my needs but I don’t really know how to apply it… When I enter the system, my only choice is to use “nvidia” user, thus having mmcblk0p1 as root folder. Running lsblk doesn’t show any sda partition available.
My questions then are:
How can I access the sda partition?
Once logged on sda, how can I create a new Home directory and copy my current mmcblk0p1/home folder content to this new Home?
How can I then modify the fstab file to point to this new Home folder at power on?
How can I remove the mmcblk0p1 partition and reclaim its space to sda?
Not sure I’ve properly expressed my needs, I hope you get it… Basically, I want to get rid of this useless partition which has no sense for me: the SD card is only 64GB, I want to use it all!
Thanks in advance for any help!
PS: didn’t understand what the doc for flashing is actually describing… 🤔 Would this command copy the current mmcblk0p1 partition on another SDCard as sda1?
Sorry for the dumb questions but should these commands run from the card I want to modify? I just can’t see sda… Which partition are you referring to in point1: sda1 or mmcblk0p1?
The point is that mmcblk0p1 is now almost full and I can’t apply any software update… Why did Nvidia create this weird architecture?
Let’s make sure, the available options are that you either keep the internal eMMC as the root partition, and make your SD card the /home partition, or entirely re-flash so all the stuff lies in the SD card.
For the first option, currently both / and /home are on the eMMC, and you’d like to replace the /home with the partition on the SD card.
How can I access the sda partition?
Not sure why you cannot access the sda partition. Or you need to manually mount it?
Once logged on sda, how can I create a new Home directory and copy my current mmcblk0p1/home folder content to this new Home?
It’s not that you “logged on sda”, your root partition is now on the internal eMMC. You just make sure you can access sda, and copy everything in /home into it.
How can I then modify the fstab file to point to this new Home folder at power on?
There are a bunch of tutorials on the Internet teaching you how to modify this file, go Google for that.
I’m not gonna go step-by-step here.
How can I remove the mmcblk0p1 partition and reclaim its space to sda?
They live in different physical devices (SD card / eMMC), so you cannot “reclaim” the space, all you can do is either move the /home partition to the SD card, or do a clean re-flash so all the stuff is on the SD card. Also, the mmcblk0p1 on the eMMC is built directly in the machine, so you cannot remove it.
Sorry for the dumb questions but should these commands run from the card I want to modify? I just can’t see sda… Which partition are you referring to in point1: sda1 or mmcblk0p1?
As mentioned above, all the system stuff is on the mmcblk0p1 partiton.
Things are clearer now, thanks! Actually, the whole stuff is already installed on the SD card, so what I’d prefer is to boot directly on /sda1 and keep the eMMC partition for additional storage.
Currently booting on mmcblk0p1, here’s what sudo blkid returns:
Hi, so your /home partition is now on the SD card right?
Unfortunately, AFAIK, without re-installing or re-flashing the whole system, you can only change where /home resides, not / (root), so I’d suggest you either keep the system as is, or start the whole process from the ground up, and make sure you install the system on the SD card.
I’m afraid the SD card is simply dead… 😉 I’ve tried to read it from another machine which cannot detect it either! Obvious conclusion… By the way, as I’ve read from another post, the board I’m using (Axiomtek) is not a dev board so I can’t expect it to boot as Nvidia’s devkit and I’ll probably have to keep the eMMC as the system partition and configure a (new) SD card as the /home partition and run my software from it.
This closes the case, so thanks a lot for your help!
You can often boot with an SD card as rootfs on a third party carrier board with eMMC module, but the manufacturer would have to provide the instructions. Note that an SD card on the module is quite different than an SD card on the carrier board. I’m not even sure if there is an eMMC model of Nano? In any case, the third party carrier board manufacturer would have the instructions for that if it is supported.