-   Linux - Hardware (
-   -   Where to mount usb drive on ro kernel filesystem (

rymjones222 02-12-2013 04:37 PM

Where to mount usb drive on ro kernel filesystem
When running ubuntu 10.04 with a read-only root filesystem where would be the preferred location to mount usb drives since /media would also be ro.

Kustom42 02-12-2013 04:42 PM

Think about your question here... When you mount a device you are presenting a new mount point with its own options to the linux kernel. So you can very easily do the mount command with the -o rw option.

rymjones222 02-12-2013 05:18 PM

but in order to mount i would need to have a mount point right? and that would require creating a directory under /media which is ro. I can create something while my filesystem is rw, but that doesn't seem like the correct solution

Kustom42 02-12-2013 05:25 PM

All you need is an existing mount point so if you create the directory /media/usb it will always be there you can then mount your USB drive as rw to that folder and it will be its own read/write filesystem in /media/usb

dilbert_uk 02-13-2013 04:42 PM

Maybe you got already something mounted to tmpfs. "mount | grep tmpfs"

All times are GMT -5. The time now is 04:50 PM.