Bernhard Voelker <mail@bernhard-voelker.de> writes:
You could create a file system in a (huge) file [1][2], loop-mount it somewhere [3], move /home/* to there [4], umount it [5], and mount it (still with -o loop) on /home [6].
[0] export IMG="/somewhere/home.img" [1] dd if=/dev/zero of=$IMG bs=1G count=100 [2] /sbin/mkfs.ext4 -F $IMG /mnt [3] mount -o loop $IMG /mnt [4] mv /home/* /mnt [5] umount /mnt [6] mount -o loop $IMG /home
The "loop" kernel module also must be loaded- it is no longer loaded by default. To have it automatically loaded at boot time, one can put: ,---- | loop `---- in /etc/modules-load.d/local.conf. Charles -- "On a normal ascii line, the only safe condition to detect is a 'BREAK' - everything else having been assigned functions by Gnu EMACS." (By Tarl Neustaedter)