On 07/02/2014 11:50 AM, lynn wrote:
On Wed, 2014-07-02 at 11:25 +0200, Per Jessen wrote:
lynn wrote:
Can I make /home a partition? Without repartitioning? If someone can reply with an acronym, I think I've got it. But the documentation doesn't make it easy.
If you have a spare partition, you could copy /home over there and mount that.
No, the whole disk is one partition:(
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 Notes: a) Loop-mounting is of course a bit slower than a native disk. b) The sizes of the dd(1) command above may need to be adjusted. c) The mv(1) command above may have to be tweaked to match all directories there (or for omitting lost+found). d) You'd have to adapt /etc/fstab to mount /home automatically on boot. You didn't tell why you want /home on a separate file system, so I can't judge if the above suffices your needs. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org