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

David david at hayes-family.org
Thu Sep 11 21:20:49 CDT 2003


On Wed, Sep 10, 2003 at 11:38:01PM -0500, Wayne Dahl wrote:
> On Tue, 2003-08-26 at 22:47, Greg Edwards wrote:
> > Wayne Dahl wrote:
> > 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.

Um, most likely no.  Most Linux distributions today boot by loading
the kernel and an initial root disk image from the boot drive.  What
ultimately ends up as root depends on what configuration is in that
initial root disk image, not /etc/fstab.  

It appears that all you want to do is to make / bigger.  I'd suggest
you examine the GNU Partition Editor, parted, and see if that will
meet your needs.

-- 
David Hayes
david at hayes-family.org



More information about the Discuss mailing list