[NTLUG:Discuss] / filling up, again. 2nd try

Wayne Dahl w.dahl4 at verizon.net
Sun Aug 31 17:51:58 CDT 2003


> > /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




More information about the Discuss mailing list