[NTLUG:Discuss] / filling up, again. 2nd try
Tom McDonald
tom at compuclaim.com
Sun Aug 31 22:56:08 CDT 2003
On 31 Aug 2003 17:51:58 -0500
Wayne Dahl <w.dahl4 at verizon.net> wrote:
>
> > > /dev/hda1 vfat 3.8 GB /mnt/hda1
> > > /dev/hda2 53.2 MB /boot
> > > /dev/hda3 509.6 MB /swap
> > > /dev/hda5 341.8 MB /
> > > /dev/hda6 1.3 GB /tmp
> > > /dev/hdc1 2.2 GB /var
> > > /dev/hdc2 3.8 GB /opt
> > > /dev/hdc3 2.4 GB /usr/local
> > > /dev/hdc5 2.4 GB /usr/src
> > > /dev/hdc6 13.5 GB /home
> > > /dev/hdc7 13.5 GB /usr
>
> > 341M is small for / when you consider that /bin /sbin /etc /lib are
> > all going to be on that partition. How much is in /opt?
>
> /opt is 3.8 GB with 3.3 GB free.
>
> I got the size of that partition from a book (can't remember which it
> was) when I was installing this second hd. It gave suggested
> partition sizes for each partition and I made each one bigger than
> what it suggested, but I used about the same relative percentages for
> each partition it suggested.
>
> > One idea:
> >
> > Copy all of /opt to another location, maybe /home/tmpopt. Unmount
> > /opt and make a symlink from /opt to /home/tmpopt. Change the mount
> > point of /opt to /newroot in /etc/fstab. Mount /newroot and copy
> > all dirs on the current / partition to /newroot (ie /lib to
> > /newroot/lib /bin to /newroot/bin and so on). Change the mount
> > points in /etc/fstab so that / is the now where /newroot was and
> > /oldroot is where / was. Do not unmount anything, just change
> > /etc/fstab. Shutdown and restart, shutdown does not use /etc/fstab.
> > This should mount / on the partition
> > that /opt was originally on and /oldroot where / was. After all
> > this you can move /home/tmpopt back to /opt or even to old /
> > partition.
>
> I like this idea, but is there some compelling reason to move /opt at
> all? Why not just create the /newroot in the /opt partition and do
> the rest as suggested?
>
> > Before you try this, someone double check my logic here!!
>
> Thanks for your input on this Terry, but I don't have the moolah for
> another hd right now.
>
> Thanks again,
>
> Wayne
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
Another thing you might consider;
You have /usr sized at 13.5G - which allows plenty of room on /usr.
Then you mount hdc3 at /usr/local which effectively limits /usr/local to
2.4G, you would have a lot more room on /usr/local if you didn't make
this a different file system. You do the same thing with /usr/src.
I would make /usr/local and /usr/src just subdirectories which would
free up the hdc3 and hdc5 partitions (maybe make one of these the /opt
file system.)
/usr/local is the normal location to install tarballs so it has a
tendency to fill up pretty quickly if you install a lot of them. I
have about 8G installed on /usr/local.
On Mandrake /usr/local also contains an auxillary heirachy -
/usr/local/etc, /usr/local/bin, /usr/local/lib /usr/local/man,
/usr/local/src, /usr/local/sbin, and /usr/local/doc directories, which
can fill a drive pretty quickly.
Anyway, it's just something to consider. By the way where is hdb ?
----
Tom McDonald <tom at compuclaim.com>
Compuclaim Inc.
There are two types of Linux developers - those who can spell, and
those who can't. There is a constant pitched battle between the two.
(From one of the post-1.1.54 kernel update messages posted to c.o.l.a)
More information about the Discuss
mailing list