I'm probably wrong, but I don't believe your suggestion will work as
hda5, 6 & 7 are on the same logical partition.  Correct ?

-----Original Message-----
From:   Maxwell Smart [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, June 09, 1998 12:15 AM
To:     [EMAIL PROTECTED]
Subject:        RE: Moving directories


On 09-Jun-98 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
> 
> 
> 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 ?

 1) login as root
 2) Temporarily move the /home files to a temporary directory.
    Creating one called /temp works fine. (mv -R /home/* /temp)
 3) umount your hda7 partition.
 4) fdisk the hda7 partition into a couple of smaller partitions. I have
    100MB for /home and it's almost unused with 2 users. You may 
    even want to look at creating a new /usr or adding a /usr/doc or
    a /usr/local to this after you're finished with this trick. Possibly
all
    of the above. I'd do it all one at a time if I were you,
 5) In /etc/fstab, create entries for the new /home (smaller partition) 
    and a /var1 for the new /var partition.
 6) mount your new partitions.
 7) Move the relocated /home files into the new /home. (mv -R /temp/*
/home)
 8) cp everything in /var to /var1. (cp -R /var/* /var1)
 9) Re-edit fstab and change the /var1 entry to /var.
10) Reboot.

Did I miss something? I think that will work.

I've done similar but, using FileRunner instead of the command line. It
keeps all ownership and permissions the same.

---
Pardon my english - I went to US public school.


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


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

Reply via email to