G
G
ggruno2020-04-27 13:53:37
linux
ggruno, 2020-04-27 13:53:37

Is it possible to link to the entire root system?

There is a Piserver server for downloading raspberries over the network without cd cards. The bottom line is that you can clone chroot rootfs in order to distribute different ones to different clients. The question is, if it is a clone, is it possible to make links to the main FS, except for those directories that are different so as not to take up a lot of space on the hard server?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Karpion, 2020-04-27
@ggruno

I did not understand what you want to do the same and what is different.
The dumbest way:

  1. make each its own root system with the entire folder tree;
  2. shared files - hard link;
  3. individual files - to each his own.
The system turns out to be incredibly flexible: each client can set their own set of files, which they have in common with the rest. Those. you can put one file for three clients, another file for five others, and two real files will take up disk space.
The price of this flexibility is dreary administration. It's a chore because no one really needs such flexibility.
You can also look in the direction of UnionFS, which can hang / mount one directory to another.
You can also play with symlinks - you can make them for the catalog, and they will be resolved on the clients.
If the server's file system can dedupe at least at the file level, then there is no problem at all to create its own full-fledged directory for each client.
In short, you write which directories are known to be shared; which are most likely to be common; and which ones are more likely to be separate. Then it will be clear which way to choose.

A
alfss, 2020-04-27
@alfss

https://wiki.archlinux.org/index.php/Overlay_files...

P
pfg21, 2020-04-27
@pfg21

connect via sshfs, mount via fstab at home. there will be access and protection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question