[NTLUG:Discuss] / filling up, again. 2nd try
Greg Edwards
greg at nas-inet.com
Tue Aug 26 22:47:03 CDT 2003
Wayne Dahl wrote:
>
> I realize I may be asking the impossible but I'm not sure what else to
> do. I am enclosing the partition information for you so you'll know how
> I have this hard drive split up.
>
> For background, this box is a dual boot into Win98 and RH 8.0. It
> originally had a 6 Gig drive in it that I've partitioned into vfat (3.8
> Gigs for Win98) and the rest as a the boot partition for Linux. I also
> used some other space for some of the other partitions. So my partition
> info is given below...
>
> /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
>
> Incidentally, why is there no /dev/hda4 or /dev/hdc4? Why does the
> system skip hdx4 when setting up partitions?
>
> Boot I can deal with by deleting old kernals and sources I no longer
> need. But / I have no idea what to do with.
>
> Thanks for your input.
>
> Wayne
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!!
/dev/hdx4 is a primary partition that is holding the extended partitions
5, 6, and 7. The max primary partitions is 4 so if you use more than 4
a primary is split up to give you more.
--
Greg Edwards
New Age Software, Inc. - http://www.nas-inet.com
======================================================
Galactic Outlaw - http://goutlaw.nas-inet.com
The ultimate cyberspace adventure!
More information about the Discuss
mailing list