Save Data to MicroSD Card
- 
					
					
					
					
 How do you save data to a mount MicroSD Card? Do you need to create file on it or just add the path to you code such as 
 /tmp/run/mountd/mmcblk01 ?Tried the tutorial in Camera Time-Lapse, but no success. Firmware is up to date. Any suggestions? Thanks in advance. 
 
- 
					
					
					
					
 You just need to mount it (if hasn't been for some reason). You can even run manually syncafter creating/editing file(s) but usually that's done automatically and so all the data is saved properly.
 
- 
					
					
					
					
 I've noticed that after installing the MicroSD card and running df -h tha card will show up in the list, but will later disappear from it when it's re-run. Do you know if that is expected behavior once it is automatically mounted? Thanks for the feedback. 
 
- 
					
					
					
					
 Reset card to factory settings and updated through opkg update. Running df -h does not show the drive.  Just want to make sure that the drive is mounted automatically before attempting any manual steps. Navigated to /dev and found this:  Using this thread as a guide. Are any of the mtdblock for the SD card? 
 
- 
					
					
					
					
 Switched out "old" MicroSD card with a new one from SanDisk, then powered up Omega2+. First, the new card was listed in df -h  Next, ran ll and ls a few times. Then, re-ran df -h  It is not listed so navigated to /tmp/mounts  The card is mounted as SD-P1, and no manually steps were necessary. Just need to setup the shortcut as listed in [Time-Lapse Camera].(https://docs.onion.io/omega2-project-book-vol1/timelapse-camera.html) 
 
- 
					
					
					
					
 Do you know if that is expected behavior once it is automatically mounted? I'm not sure - I myself rely on mounting manually (that is: using mountcommand or by adding card tofstabto be sure).
 
- 
					
					
					
					
 It appears that the card is listed every time it is used, then after a while it is 'shut down' and not included in df -h. Here is snippet from the logread  
 
- 
					
					
					
					
 I see it's mounted nearly properly (Linux recommends you to run fsck), but it shouldn't make it auto-unmount. Do you have logs when this unmounting happens?
 
- 
					
					
					
					
 It it working though, not sure what is causing it because the files are accessible. Here is the logfile:  The card is 16GB and is holding data.  It looks like the system unmounts the card after a period of inactivity. 
 
- 
					
					
					
					
 You posted again log when the card is mounted - I was hoping you happen to have logs when the card is being unmounted, that could show us a possible reason. Everything above (on the screenshots) looks ok to me. 
 
