Re: Help with moving /home

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Richard Whitney
Date:  
To: plug-discuss
Subject: Re: Help with moving /home
Quoting "Jeremy C. Reed" <>:

> On Thu, 17 Feb 2005, Ric Fischer wrote:
>
> > 1. How can I find out if my /home is in its own partition?
>
> df
> mount
>
> > 2. If it isn't in its own partition, how do I make a new partition and
> > move /home over there? (I have a lot of hard drive space left, so if
> > there's a way to squeeze down the size of existing partition(s) and
> > use the reclaimed space, that would be great.)
>
> fdisk (or sfdisk or cfdisk or other partitioning tool) to create new
> partition
>
> mkfs to create filesystem on new partition. (Be careful to not mkfs an
> existing partition.)
>
> mount new partition (and add to /etc/fstab as /home for later reboots).
>
> Copy all of /home to new mount point. Be sure to preserve all attributes.
>


I've found that rsync works great for this:


> mv /home /home.old
>
> unmount new partition and mount as /home


# rsync -auv /home.old /home



>
> Remove /home.old once you think new /home is fine.
>
> Have fun!
>
> Jeremy C. Reed
>
>                  technical support & remote administration
>                 http://www.pugetsoundtechnology.com/

>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



R. Whitney
Transcend Development
"Producing the next phase of your internet presence"
http://xend.net
Premium Quality Web Hosting
http://xendhosting.com
rw AT xend.net
Net Binder http://netbinder.net
310-943-6498
602-288-5340

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss