At 11:17 PM 6/8/98 -0700, Mike A. Lewis, CNE wrote:
>
>I have a system which has the fs setup as follows:
>
>Filesystem Size Used Avail Capacity Mounted on
>/dev/hda1 99M 72M 22M 77% /
>/dev/hda7 4.2G 2.3M 4.0G 0% /home
>/dev/hda6 478M 386M 68M 85% /usr
>/dev/hda5 949M 139M 761M 15% /usr/src
Here's what I would do.
See that great BIG hda7 partition. /usr would LOVE to 'own' that. /home
needs 'very' little space at all (though home will still be able to use
this in the end).
mkdir /usr/home
cd /home
cp -au * /usr/home
Go look around /usr/home to satisfy yourself. ls -la /usr/home
Still in /home
rm -rf *
cp -au /usr/* .
To satisfy your self again ls -la will show you everything in /usr except
of course your still in /home
cd /usr
rm -rf *
cp -au /var/* .
Yet again, to satisfy ls -la (your in /usr and will see everything that
belongs in /var )
cd /var
rm -rf *
ln -s /usr/home /home
Then just edit /etc/fstab and remove the entry /home and replace it with
/usr then, add in /var where /usr is right now.
So fstab will boot these partitions as such;
Filesystem Size Used Avail Capacity Mounted on
/dev/hda1 99M 72M 22M 77% /
/dev/hda7 4.2G 2.3M 4.0G 0% /usr
/dev/hda6 478M 386M 68M 85% /var
/dev/hda5 949M 139M 761M 15% /usr/src
This 'will' work! Though I give no guaranties...there is a new mini howto
that 'should' ease your mind, as this is somewhat what I did afew weeks ago
to another system.
http://sunsite.unc.edu/pub/Linux/docs/howto/mini/Hard-Disk-Upgrade
Too bad he forgot to include howto make the swap partitions. =)
fdisk it to be linux-swap
mkswap -c /dev/???
swapon /dev/???
Then make sure it's in /etc/fstab =)
Rok'N Roll!
Dan
>
>
>As you can see, I have lots of free space on /dev/hda7, but very little
>on /. Sendmail is giving me errors about not having enough space in
>/var/mqueue.
>
>How can I move /var/* to /dev/hda7 ?
>
>Any help appreciated,
>Thanks,
>Mike
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.