Code: Select all
sudo mount -ro noatime,discard $device $location
Code: Select all
sudo mount -o noatime,discard $device $location
Code: Select all
sudo umount $device
Code: Select all
sudo fuser -km $device; sudo umount $device
I don't know why $device is in use by the script, but I don't want it to be.
And $device was also in use by VLC for some weird reason, so my VLC gets killed against my wishes.
It seems whatever I mount latches on to different programs so I can't unmount it.
Scratching my head...How do I get around this?
Thanks