J
J
JustFailer2016-03-29 01:24:58
linux
JustFailer, 2016-03-29 01:24:58

How to mount network FS over rootfs?

There is a router with a small amount of memory and the inability to connect a USB flash drive.
I plan to mount NFS or SSHFS "on top" of rootfs (which is read only), on which all changes will occur. Is it possible to do this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Chudnovsky, 2016-03-29
@JustFailer

I don't think this will work: you need to mount the remote filesystem to the root first, and then do something like "mount --rbind /something/", which will break the remote filesystem mount (if it works at all).
And any disconnect will lead to a kernel panic.
I think it's better, easier, safer for you to mount /var and /usr over the network, since only the first should be written to in production mode, and the second is usually the thickest.

N
Nazar Mokrinsky, 2016-03-29
@nazarpc

Try OverlayFS if available in the kernel.
There is an example here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question