Re: Strategy for /tmp and /home Partitioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim wrote:
On Tue, 2005-10-11 at 22:45 -0500, Mike McCarty wrote:


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?


With the distros I've seen, /tmp is something that can be mounted on a
partition.  Sometimes that's even a recommendation!  So, as far as I can
see, /tmp doesn't have to be around until /etc/fstab has been paid
attention to.

On top of that, /home isn't used until well after you've booted up.  So
I'd expect any links inside it, like you've suggested, ought to be fine.
Though I can't see why you want it inside /home.

Well, I don't especially. And I'm open to suggestions.
My point is to let the variable-sized stuff which can
grow beyond all bounds due to defects in software or
boo-boos by the operator (read: me) not contaminate the
system.

All significant software has defects. A file system is
a significant piece of software. I don't want to push
the limits on the FS where the OS is contained. I don't
want an unbootable system. I want one partition on a
separate disc to contain that stuff. But I see that /home
and /tmp (and /var to a lesser extent, though /var/spool
is pretty much vulnerable) both need mount points.

I don't want two, three, five, you count'em partitions
on the disc, because then I'd have to know in advance how
much to allocate to each, and each would always be larger
than it would have to be. I'd rather have one partition,
and let the various pieces dynamically get resized as
needed.

But then I have a mounting problem. (I suppose the politically
correct term would be challenge.) I'd rather have /home/tmp
than /tmp/home :-)

But loopback mounting may be the exact ticket to solve
that. I'm still thinkin'.

Live'n'learn!

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!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux