Mailinglist Archive: opensuse (3232 mails)

< Previous Next >
Re: [SLE] HDD Upgrade
  • From: Ken Schneider <suse-list2@xxxxxxxxxxxxx>
  • Date: Tue, 1 Aug 2006 18:11:08 +0000 (UTC)
  • Message-id: <1154455841.24041.24.camel@xxxxxxxxxxxxxxxxx>
On Tue, 2006-08-01 at 09:53 -0600, Darryl Gregorash wrote:
> On 01/08/06 09:45, Darryl Gregorash wrote:
> >logout all users
> >login as root
> >mv /home /oldhome
> >make /etc/fstab entry for /home
> >mount /home
> >move contents of /oldhome to /home
> >delete /oldhome and contents (rm -R /oldhome, IIRC)
> >
> >
> Oops, to preserve permissions, links, etc more easily, "move contents of
> /oldhome to /home" should be:
>
> cp --preserve /oldhome/* /home
>

rsync -ar works a treat and preserves owner/modes.

--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998


< Previous Next >