Read only OS + read/write USB drive, any experience?
Posted: Mon Nov 16, 2015 5:25 pm
How to reliably mount a USB flash drive as read/write on read only OS?
I've tried a handful of things including fstab with various settings (sync, auto, exec, and a bunch more), usbmount and bash/python scripting but I don't get any reliable results. It works smooth when powering on, but the project I'm working on should allow unmounting, taking a usb out, popping a different stick in, OS/application/script/whatever mounts the flash drive and run.
So far, this has failed to give me any insights as to how I should go about doing this. Too much hit/miss to say one thing definitely does or doesn't work. Somehow the system, at some point, decides "let's mount the flash drive as read only this time! That'll be fun!" or "Meh, I'm gonna say it's mounted but let the ls command come up empty."
The usb drives used for testing are fine, by the way. I've unleashed various testing programs on them, and no other machine (Macs, other RPis) has any issue with them. The major difference being, of course, those aren't read-only operating systems.
I do have one more idea I wanna test which is using a ram-disk type set-up and mount the USB in the ram-disk. I don't know if this is possible or even a good idea. But before I dive into yet another two day event of Google, outdated tutorials, more Google and 100s of cups of coffee.. Has anyone else tried or know how to mount a read/write USB hdd/flash disk within a read-only OS? :3
I've tried a handful of things including fstab with various settings (sync, auto, exec, and a bunch more), usbmount and bash/python scripting but I don't get any reliable results. It works smooth when powering on, but the project I'm working on should allow unmounting, taking a usb out, popping a different stick in, OS/application/script/whatever mounts the flash drive and run.
So far, this has failed to give me any insights as to how I should go about doing this. Too much hit/miss to say one thing definitely does or doesn't work. Somehow the system, at some point, decides "let's mount the flash drive as read only this time! That'll be fun!" or "Meh, I'm gonna say it's mounted but let the ls command come up empty."
I do have one more idea I wanna test which is using a ram-disk type set-up and mount the USB in the ram-disk. I don't know if this is possible or even a good idea. But before I dive into yet another two day event of Google, outdated tutorials, more Google and 100s of cups of coffee.. Has anyone else tried or know how to mount a read/write USB hdd/flash disk within a read-only OS? :3