I am using it to save video by connecting a sata hard drive to the path named /mnt/C.
When the /mnt/C mount is unmounted, the image is saved in emmc (16GB) and the emmc capacity becomes full.
How can I prevent images from being saved to emmc even if /mnt/C is unmounted?
Can you give me some advice?
No,
If /mnt/C is unmounted, video clips should not be saved in emmc.
Because emmc has a small capacity, if you save video clips, the capacity will fill up in a short time and Jetson may not work properly.
After unmounting you could remove the subdirectory βC/β, and then create a symbolic link of the same name to β/dev/nullβ. Then, before mounting, delete the symbolic link and make the subdirectory βC/β again.
If β/mntβ exists, but there is no subdirectory βC/β, then an example for making the symbolic link: sudo ln -s /dev/null /mnt/C
(then any write to this location would be silently thrown away)