I have ubuntu 5.10.65-tegra on Jetson Xavier where I am running out of space in the root / folder. The output of df -h is
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 28G 26G 339M 99% /
none 16G 0 16G 0% /dev
tmpfs 16G 36K 16G 1% /dev/shm
tmpfs 3.1G 19M 3.1G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.1G 20K 3.1G 1% /run/user/124
tmpfs 3.1G 64K 3.1G 1% /run/user/1000
Therefore, for some installations, I started using the /dev folder
Two questions -
I understand that the 'none' Filesystem mounted on /dev is some sort of virtual space and not mapped to any space on the hard disk. Therefore, on reboot or shutdown, this will be wiped clean. But could it also be possible that it can be erased when the system runs out of RAM or swap space? It seems to be the case, since even without the system rebooting, the space was wiped clean when compiling something heavy and I had to re-install a lot of stuff
To install something in /dev, I have to constantly use sudo. Is it possible to mount the 'none' to some folder in the /home directory as -
mkdir /home/install
sudo mount none /home/install
Will the size of this now be 16 gb as well?
none
filesystem. This is just to explain that/dev
has no file system. It's reserved for device drivers like your (e)MMC driver (which creates the/dev/mmcblk0
"file". You can access is with the same tools like you would access a file. But/dev
is not a secret place to store something. Doesn't the board have some MicroSD card socket or free USB host for plugging a USB stick? This you could indeed mount and use it for your purpose.