Additional HardDisk
Steve
steve at focb.co.nz
Sun Apr 11 22:46:00 UTC 2004
On Sun, 11 Apr 2004 peter at vratny.at wrote:
> On Sun, Apr 11, 2004 at 12:14:48PM -0700, IAK Tanoli wrote:
> >
> > Step 4:
> > copy dir. to that paritions
> > # cp -rf /home /mnt/hd2
> > # cp -rf /var /mnt/hd3
>
> this step is fatal!
> by doing a -rf you will lose all file-attributes like owner:group and
> permissions
>
> user cp -a instead!
actually, it would be better to use something like cpio or tar, you will
run into issues with cp if it finds certain device special files (like
/dev/zero) that have been created in the /var filesystem (it should be
safe to expect these to not appear within /home but you never know.. :-) )
cd /newvar
find /var -print -depth | cpio -pmvd .
--
Steve.
More information about the redhat-list
mailing list