[mdlug] Moving /usr
Mat Enders
mat.enders at gmail.com
Tue Sep 20 22:18:44 EDT 2011
The -a option means to archive so it copies them as symlinks
The original entries in fstab did not use uuids
On Tue, Sep 20, 2011 at 9:57 PM, Jeff Hanson <jhansonxi at gmail.com> wrote:
> I haven't used rsync much. How does it handle symlinks? There are
> many in the lib directories.
>
> The only other thing I can think of is a problem with UUIDs (if your
> distro uses them to identify drive partitions).
>
> On 9/20/11, Mat Enders <mat.enders at gmail.com> wrote:
>> All,
>>
>> I recently had to move /usr on a machine. Since moving /usr
>> when i boot the machine I get this message immediately after the bios
>> prompts are finished and before the boot process starts "error: file
>> not found". After the machine comes up all appears to work normally.
>> I will now explain what i did to move /usr.
>>
>> 1) log in as root unmount /home
>> 2) resize /home
>> 3) create new partition in newly created free space
>> 4) edit fstab to mount new partition as /usr2
>> 5) reboot
>> 6) run rsync -a /usr/ /usr2
>> 7) run diff /usr /usr2 to ensure they are the same
>> 8) edit fstab to mount new partition as /usr instead of /usr2
>> 9) run mv /usr /usr3
>> 10) reboot
>> 11) get error but all appears to work correctly
>>
>> --
>> Mathew E. Enders
>> _______________________________________________
>> mdlug mailing list
>> mdlug at mdlug.org
>> http://mdlug.org/mailman/listinfo/mdlug
>>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
--
Mathew E. Enders
More information about the mdlug
mailing list