fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.1k stars 110 forks source link

How do I mount bind some directories (manually) to junest environment without editing junest? #130

Closed adamcavendish closed 8 years ago

adamcavendish commented 8 years ago

How do I mount bind some directories (manually) to junest environment without editing junest?

I have a /data directory where I mostly install some softwares and save data samples. If I switch to junest, it just auto bind my home directory to where home locates.

How can I mount bind some extra directories (via config files or manually are both ok)?

fsquillace commented 8 years ago

Hi,

Maybe this is what you are looking for: https://github.com/fsquillace/junest#bind-directories

For instance if you what to get your /data directory visible in JuNest:

junest -p "-b /data"
adamcavendish commented 8 years ago

Thx. It helps a lot. Probably you should add a message for the help.

AwesomeLemon commented 4 years ago

For someone like me who comes here from Google: if you you use namespaces, the proper command is junest ns -b "--bind /data /data"

abhinav010101 commented 10 months ago

hi, this bind exists just while the program is executing. how to make this bind permenant?