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

Re: Moving /usr problem



On Wed, 07 Jan 2004 14:59:22 +0000, Fred Richards wrote:

> I've installed a new hard disk and decided to shift /usr.
>  
> I've tried using tar but I get lots of error messages - symbolic links
> or something.
>  
> When I unpack the file, amend fstab and reboot, the new /usr isn't
> picked up properly and I have to re-mount the old version.
>  
> Any ideas?
>  
>  

Do it like this:

(I'm assuming that your new filesystem is created and EMPTY and is on, for
the sake of the example, /dev/hdb1)

mkdir /mnt/usr
mount /dev/hdb1 /mnt/usr
cp -ax /usr /mnt

Oh, and:

Please don't post HTML
Please line wrap

-- 
....................paul

Programming without a hex editor is like watchmaking without a hammer.




Reply to: