Mailinglist Archive: opensuse (3232 mails)
| < Previous | Next > |
Re: [SLE] HDD Upgrade
- From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
- Date: Thu, 3 Aug 2006 08:09:48 +0000 (UTC)
- Message-id: <Pine.LNX.4.61.0608031007170.32738@xxxxxxxxxxxxxxx>
>>> >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:
I do not know what happened to your `mv` but mine certainly keeps
permissions and stuff. And, I'd say that's default because mv does not have
a -p option.
>>> cp -- preserve /oldhome/* /home
>>
>> rsync - ar works a treat and preserves owner/modes.
You certainly want -HSa. (And note that -r is in -a)
>Thank you everyone for filling in the blanks. I will give this a shot later tonight and see how it goes. Luckily /home does not have a bunch of data. I will try the rsync -ar and if not that the cp --preserve.
>
>Thanks,
>Brian
>
>
>--
>Check the headers for your unsubscription address
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the archives at http://lists.suse.com
>Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>
>
Jan Engelhardt
--
>>> >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:
I do not know what happened to your `mv` but mine certainly keeps
permissions and stuff. And, I'd say that's default because mv does not have
a -p option.
>>> cp -- preserve /oldhome/* /home
>>
>> rsync - ar works a treat and preserves owner/modes.
You certainly want -HSa. (And note that -r is in -a)
>Thank you everyone for filling in the blanks. I will give this a shot later tonight and see how it goes. Luckily /home does not have a bunch of data. I will try the rsync -ar and if not that the cp --preserve.
>
>Thanks,
>Brian
>
>
>--
>Check the headers for your unsubscription address
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the archives at http://lists.suse.com
>Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>
>
Jan Engelhardt
--
| < Previous | Next > |