[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copy entire /usr



Sex, 2008-09-12 às 09:28 +0200, Raven escreveu:
> Thanks for the replies. I will definitely use rsync.
> Also, I am planning to put the new /usr not on a new partition but on
> the same one that currently has / .
> After I rsync, how do I tell the system to use the new /usr folder
> (since I am not doing the whole "remount" thing)?

You can umount the old /usr and move the new directory to it's place:

# rsync -av /usr/ /newusr/
# umount /usr
# rmdir /usr
# mv /newusr /usr

Don't forget to change /etc/fstab.
-- 
Paulo Silva <paulojjs@bragatel.pt>

Attachment: signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente


Reply to: