After following this answer a while back I have now run into some problems.
My situation: I have a USB-HDD set up to get mounted to a directory on my SD card using fstab. Using the Raspebrry Pi Camera Board, it will take photos and save them to the USB-HDD.
The problem is that if my USB-HDD is NOT plugged into my Raspebrry Pi, the directory still exists and files can get saved to the SD card. This is a big problem as my SD card is only 4GB and I need to save days-worth of images to the USB-HDD and that ends up using 1GB in just 15 minutes. I will have no access to the Raspberry Pi so it can't be using up all my SD card space, and possibly wearing it out.
GNU nano 2.2.6 File: /etc/fstab proc /proc proc defaults,noatime 0 0 /dev/mmcblk0p1 /boot vfat defaults,noatime 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 /dev/sda1 /media/VISION vfat defaults,users,umask=000,noatime 0 0 /dev/mmcblk0p2 /mnt/sdcard ext4 defaults,noatime 0 0 # a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
I want the system to have no permissions to save to the directory when the USB-HDD is unplugged, but when it is plugged in it does have permission. Maybe this can be done by having the fstab mount directory not on the SD card(could have it on the USB-HDD so it wont be there when its unplugged?).