No ... but it's ALMOST that simple. Don't delete the partition because you
need it there to be the mount point. 

If /opt contains nothing that you need, go ahead and delete its contents,
then mount the new partition there. Add it in /etc/fstab (follow the pattern
of the entries that are already there, or check "man fstab") so it will
mount during the boot-init sequence.

If it does contain stuff that you need, follow this sequence to copy it over:

        mv /opt /oldopt
        mkdir /opt
        mount /dev/whatever /opt  <<replace whatever with your new partition
        cp -R /opdopt/* /opt/     << double check the -R flag before using
        rm -r /oldopt

At 11:39 AM 3/14/00 +0000, Rogers, Paul wrote:

>I am using RH 6.0/2.2.14.
>
>I have an rpm which is trying to install itself in the directory /opt.   
> This directory is part of the root (/) partition.  However there is not   
>enough room on this partition to carry out the install.
>
>If I were to add another HDD and create a partition on it, could I then   
>delete the existing opt directory and mount the new partition as /opt?
>
>Is it really this simple?

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to