Strategy for /tmp and /home Partitioning
Mike McCarty
mike.mccarty at sbcglobal.net
Wed Oct 12 03:45:50 UTC 2005
I've been considering how one could put /tmp and /home on another
disc from that containing /etc and other areas necessary for
boot.
I've thought about possibly adding a disc, and putting a file system
on it. Then emptying out /home, and mounting the new file
system to /home. On the new file system, I'd also have a directory
which would be, after the mount, /home/tmp. Then make /tmp be a
soft link to this directory.
Would this work? Or is there some dependency on /tmp actually being
present before auto mounts take place?
The steps would be:
Boot some rescue disc.
Add new disc, and partition as one big piece.
Make an ext3 file system.
Mount the new fs to /mnt/tmp (or sth.)
Copy all files recursively from /home to /mnt/tmp,
preserving permissions, owners, and dates (prolly
a tar/untar or cpio operation).
Delete /home/* recursively.
Unmount the new fs.
Mount the new fs at /home.
Update /etc/fstab.
Create /home/tmp.
Delete /tmp.
Make a soft link /tmp->/home/tmp
Reboot from hard disc.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
More information about the fedora-list
mailing list