Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2007 13:37:56 -0400 (EDT)
From:      Michael S <msherman77@yahoo.com>
To:        "illoai@gmail.com" <illoai@gmail.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Trying to move /usr
Message-ID:  <508113.84269.qm@web88303.mail.re4.yahoo.com>
In-Reply-To: <d7195cff0708201015n3acdd927t915c99f1d38798e7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@gmail.com" <illoai@gmail.com> wrote:

> On 20/08/07, Michael S <msherman77@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.
> 
> -- 
> --
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?508113.84269.qm>