On Tue, 20 Mar 2012 22:02:31 -0400, Joshua Murphy wrote:

> 1) make backups and... 1.a) verify backups... consider this my
> disclaimer... 2) mkdir /mnt/root-bind/ /mnt/usr-bind/
> 3) mount --bind / /mnt/root-bind/
> 4) mount --bind /usr/ /mnt/usr-bind/

4a) mount /usr -o remount,ro

Makes sure nothing changes on /usr between starting the sync and
rebooting.

> 5) rsync --archive --hard-links --sparse --progress /mnt/usr-bind/
> /mnt/root-bind/usr/
> 6) edit fstab ...
> 7) cross fingers and reboot ...
> 8) rm -r /mnt/root-bind/ /mnt/usr-bind/

Create the temporary mounts points in /tmp and you save this step - since
I added one, it is only fair to remove one to not increase the workload :)


-- 
Neil Bothwick

When companies ship Styrofoam, what do they pack it in?

Attachment: signature.asc
Description: PGP signature

Reply via email to