Trying to move /usr
Michael S
msherman77 at yahoo.com
Mon Aug 20 10:37:58 PDT 2007
I reverted to the old /usr.
What I had done:
Initially I set up the newly installed drive (da2)
to have only one partition (da2s1d) which I chose to
be /user (note the e).
I tarred /usr to a file in /user
tar -cf /user/usr.tar /tar
and extracted the file
tar -xf usr.tar
I had the whole structure of /usr underneath /user/usr
And then
cd usr
mv * ..
to have everything under /user
Then I edited fstab. Whatever was /user became /usr
and /usr became /user.
I will definitely try dump. Never used it before.
Thanks a lot,
Michael
--- "illoai at gmail.com" <illoai at gmail.com> wrote:
> On 20/08/07, Michael S <msherman77 at yahoo.com> wrote:
> > Jerry,
> >
> > *** When I untarred the file I had everything
> under
> > /user/usr. I was under /user/usr and then I did mv
> *
> > ..
> >
> > I then edited fstab and changed
> > /dev/da2s1d to be /usr, instead of /user
> >
> > And of course the old /usr I switched to /user
>
> So is your /usr now under /usr/usr?
>
> What I have done is:
> # mkdir /mnt/usr
> # mount /dev/whatever /mnt/usr
> # cd /mnt/usr
> # dump -L -f - /usr | restore -r -f -
> And then edit your /etc/fstab to reflect the changes
> and reboot.
>
> --
> --
>
More information about the freebsd-questions
mailing list