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

Wayne Dahl w.dahl4 at verizon.net
Wed Sep 10 23:38:01 CDT 2003


On Tue, 2003-08-26 at 22:47, Greg Edwards wrote:
> Wayne Dahl 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?
> 
> 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.
> 
> Before you try this, someone double check my logic here!!

Ok, before I try this, anyone else see anything wrong with what Greg is
recommending here?  

Thanks, 

Wayne




More information about the Discuss mailing list