That is correct. I must have at some point mounted the sd card to develop my scripts because I DO have information on the SD card, it is just not current.
My assumption was/is that if the SD card is in the device, it is mounted.
My linux experience is limited to everything I have learned developing an application on the Mudi, so there are basic things I just do not know, but I am technical.
So, what should I do?
Do I have to mount the SD card every time the device boots?
If I do not mount the SD card and create a directory called /mnt/sda1/logs, does that now take precedent to the SD card?
How can I determine if the directory I have created is on the device or on the SD card?
A directory is entirely different from a mount point. If you do not mount the card, nothing will happen. You might write files into the directory, but they will not be transferred to the SD card - even if you mount it afterward.
If you later mount the SD card at /mnt/sda1 , the mount action will essentially “overlay” the SD card’s file system over the /mnt/sda1 directory. The original /mnt/sda1/logs directory (and its contents) you created will be hidden beneath the mount. It’s not deleted or overwritten, but it becomes inaccessible as long as the SD card is mounted at that path.
Usually, you will work with a temporary directory (like /home/user/blahblah) and then copy using rsync for example to the mount point as soon as it gets valid.