[rescue] Solaris cp question

Dave McGuire mcguire at neurotica.com
Fri Mar 21 23:59:19 CST 2003


On Saturday, March 22, 2003, at 12:38 AM, Joshua D. Boyd wrote:
> I want to switch the disk that /usr is on.
>
> If this were linux, I'd mount the new disk under /mnt/temp, then do
> cp -av /usr/* /mnt/temp
> then
> mv /usr /usrold
> then modify my /etc/fstab file to mount the disk on /usr.
>
> Now, on solaris, I know how to edit my /etc/vfstab, but the copy step 
> is
> kicking my but.  I can't seem to identify a set of cp switches that
> copies symlinks and pipes correctly while preserving the ACL.

   I usually copy filesystems this way:

# cd <src>
# tar -cf - . | (cd <dest>; tar -xvBpf -)

        -Dave

--
Dave McGuire             "I've grown hair again, just
St. Petersburg, FL           for the occasion."       -Doc Shipley


More information about the rescue mailing list