LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount a writable directory in a read-only file system? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-a-writable-directory-in-a-read-only-file-system-4175491767/)

leetwanker 01-18-2014 10:39 PM

Mount a writable directory in a read-only file system?
 
I have a dd-wrt router I need to create a /usr/share directory to satisfy a path requirement that I can't figure out how to change. The /usr filesystem is read-only.

The device I want to mount is @
/dev/scsi/host0/bus0/target0/lun0/part3

I've tried
Code:

root@DD-WRT:/dev/mtdblock# mount -t ext2 /dev/scsi/host0/bus0/target0/lun0/part3 /usr/share/
mount: mount point /usr/share/ does not exist

being that /usr/share/ doesn't exist and I can't create it, how do I mount it?

Can anyone tell me how to do this? Thanks!

druuna 01-19-2014 03:54 AM

The only way around this is to:
1 - reboot into single user mode
2 - manually (re)mount /usr with read-write permissions ( mount -n -o remount, rw /usr )
3 - manually create /usr/share,
4 - reboot.

Now the target exists and you can mount something on it. That what is mounted on /usr/share still has read-only permission!

It isn't clear from your post if the solution I gave is at all possible. You mention a dd-wrt router , which might not allow you to do the above steps.


All times are GMT -5. The time now is 03:59 AM.