Moving home folder, Gparted

paulderol dr.jackal.mr.hydra at gmail.com
Sat Mar 15 15:07:27 GMT 2008


i've found that gparted doesn't play nicely all the time. i reccomend
using a gparted live cd to wipe the hard drive, just to eliminate any
leftover windows permissions settings among other things. it comes
attatched with clonezilla.
On Sat, 2008-03-15 at 02:37 +0000, ubuntu-us-ga-request at lists.ubuntu.com
wrote:
> Send Ubuntu-us-ga mailing list submissions to
> 	ubuntu-us-ga at lists.ubuntu.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-ga
> or, via email, send a message with subject or body 'help' to
> 	ubuntu-us-ga-request at lists.ubuntu.com
> 
> You can reach the person managing the list at
> 	ubuntu-us-ga-owner at lists.ubuntu.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ubuntu-us-ga digest..."
> 
> 
> Today's Topics:
> 
>    1. Move /home to another HD? (Eric Weir)
>    2. Re: Move /home to another HD? (Michael B. Trausch)
>    3. Re: Move /home to another HD? (Eric Weir)
>    4. Re: Move /home to another HD? (Brian Pitts)
>    5. Re: Move /home to another HD? (Eric Weir)
>    6. Re: Move /home to another HD? (Michael B. Trausch)
>    7. Re: Move /home to another HD? (Eric Weir)
>    8. Sunday IRC Meeting (Jon Reagan)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 14 Mar 2008 12:01:58 -0500
> From: Eric Weir <eeweir at bellsouth.net>
> Subject: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Cc: Kevin Fishburne <sales at eightvirtues.com>
> Message-ID: <47DAAF86.4010506 at bellsouth.net>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I have a very slow system. One problem is that the the HD is small -- 10 
> GB -- and nearly full.
> 
> I have an extra HD on my Windows machine that I use only for backups. If 
> I moved the extra HD to my Ubuntu/Kubuntu machine could I move just my 
> /home folder to the second HD and use the first HD just for the 
> operating system and applications, e.g., so that data files are 
> routinely opened from and saved to the second HD, without my having to 
> constantly be navigating to and from it?
> 
> This is a stop-gap while I decide whether to go to the trouble of 
> upgrading my hardware -- new graphics/video processor, more RAM, larger 
> HD [which would be rendered unnecessary if the above is possible] -- or 
> buy a new machine with Ubuntu/Kubuntu already installed, and until I 
> make sure that my ducks are lined up financially.
> 
> Thanks,
> ------------------------------------------------------------------------
> Eric Weir
> Decatur, GA  USA
> eeweir at bellsouth.net
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/8c8a93d0/attachment-0001.htm 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 14 Mar 2008 14:23:29 -0400
> From: "Michael B. Trausch" <mike at trausch.us>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <1205519009.15940.20.camel at sage>
> Content-Type: text/plain; charset="us-ascii"
> 
> On Fri, 2008-03-14 at 12:01 -0500, Eric Weir wrote:
> > could I move just my /home folder to the second HD and use the first
> > HD just for the operating system and applications, e.g., so that data
> > files are routinely opened from and saved to the second HD, without my
> > having to constantly be navigating to and from it?
> 
> Certainly.  You can put the new drive in, format it, and transfer
> the /home directory to it in single-user mode.  That would be the
> easiest way to do it.  Unless you have a very special situation, using:
> 
>   tar cf - -C /home . | tar xf - -C /new-home
> 
> (Assuming that the new home directory is mounted on /new-home, that is)
> Should move the entire directory structure to a new drive.  Then you can
> remove the contents of the old home directory and mount the new one
> on /home, and you're in business.
> 
> 	--- Mike
> 
> -- 
> Michael B. Trausch                                   mike at trausch.us
> home: 404-592-5746, 1                                 www.trausch.us
> cell: 678-522-7934                       im: mike at trausch.us, jabber
> Ubuntu Unofficial Backports Project:    http://backports.trausch.us/
> 
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: This is a digitally signed message part
> Url : https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/69734ec0/attachment-0001.pgp 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 14 Mar 2008 14:45:00 -0500
> From: Eric Weir <eeweir at bellsouth.net>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <47DAD5BC.9010309 at bellsouth.net>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 3/14/08 Michael B. Trausch wrote:
> > Certainly.  You can put the new drive in, format it, and transfer
> > the /home directory to it in single-user mode.  That would be the
> > easiest way to do it.  Unless you have a very special situation, using:
> >
> >   tar cf - -C /home . | tar xf - -C /new-home
> >
> > (Assuming that the new home directory is mounted on /new-home, that is)
> > Should move the entire directory structure to a new drive.  Then you can
> > remove the contents of the old home directory and mount the new one
> > on /home, and you're in business.
> Thanks, Mike. Doesn't sound too difficult. I'm relatively new to Ubuntu 
> -- well, it's going on nine months now -- and I'm not much of a techie, 
> just a user who's not afraid to try things, so a couple of questions:
> 
> [1]What does "transfer the directory in *single user mode*" mean?
> 
> [2] You refer to "/home" versus "/new-home." Does the directory on the 
> new drive have to have a different name from the current home directory? 
> If the answer is yes at least during the process of moving from one HD 
> to the other, can "/new-home" be renamed after the move is finished?
> 
> Thanks again,
> ------------------------------------------------------------------------
> Eric Weir
> Decatur, GA  USA
> eeweir at bellsouth.net
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/3f586f27/attachment-0001.htm 
> 
> ------------------------------
> 
> Message: 4
> Date: Fri, 14 Mar 2008 17:06:50 -0400
> From: Brian Pitts <brian at polibyte.com>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <47DAE8EA.70800 at polibyte.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Eric Weir wrote:
> > I have a very slow system. One problem is that the the HD is small -- 10 
> > GB -- and nearly full.
> > 
> > I have an extra HD on my Windows machine that I use only for backups. If 
> > I moved the extra HD to my Ubuntu/Kubuntu machine could I move just my 
> > /home folder to the second HD and use the first HD just for the 
> > operating system and applications, e.g., so that data files are 
> > routinely opened from and saved to the second HD, without my having to 
> > constantly be navigating to and from it?
> > 
> > This is a stop-gap while I decide whether to go to the trouble of 
> > upgrading my hardware -- new graphics/video processor, more RAM, larger 
> > HD [which would be rendered unnecessary if the above is possible] -- or 
> > buy a new machine with Ubuntu/Kubuntu already installed, and until I 
> > make sure that my ducks are lined up financially.
> 
> Hi Eric,
> 
> There are different ways of doing this; I'll try to list all the steps I 
> would take to accomplish it. I use double-quotes to mark the things you 
> should type; you would not type the quotes themselves. Whenever I 
> arbitrarily pick the output of a command, you should replace it with 
> your own result when it's used later.
> 
> * Make sure you have the program parted installed by opening a terminal 
> and running "which parted". If there is no output, run "sudo aptitude 
> install parted"
> 
> * Turn off the computer
> 
> * Connect the new hard drive
> 
> * Turn on the computer. When you see the GRUB menu, select the entry 
> that says recovery mode. If you don't normally see the GRUB menu, you 
> may need to hit the escape key to see it
> 
> * Identify the new drive. To do this, run "for i in $(ls /dev/sd?); do 
> fdisk -l $i; done" and look for the drive which has a partition of type 
> HPFS/NTFS. For the rest of these instruction I'll call it /dev/sdz
> 
> * Partition the new drive by running "parted mklabel msdos /dev/sdz && 
> parted mkpart logical ext2 0% 100% /dev/sdz"
> 
> * Format the new partition by running "mkfs.ext3 -c /dev/sdz1"
> 
> * Find the UUID of your new filesystem by running "vol_id --uuid 
> /dev/sdz1". For the rest of these instructions I'll call it a-b-c-d-e
> 
> * Rename your current home directory by running "mv /home /oldhome"
> 
> * Make a mountpoint for your new home filesystem by running "mkdir /home"
> 
> * Tell Ubuntu to automatically mount your new home filesystem each time 
> you boot by running "echo UUID=a-b-c-d-e /home ext3 defaults 0 2 >> 
> /etc/fstab"
> 
> * Mount your new home filesystem now by running "mount -a"
> 
> * Verify that the mount was successful by running "mount | grep home". 
> You should see "/dev/sdz1 on /home type ext3 (rw)"
> 
> * Copy the data from your old home to your new one by running "rsync -av 
> /oldhome/ /home"
> 
> * Reboot by running "reboot"
> 
> * Once you're satisfied that you like the new arrangement, you can open 
> a terminal and run "sudo rm -r /oldhome" to free the space taken by the 
> old copy of home on your original drive.
> 
> I hope the above is helpful.
> 
> -Brian
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Fri, 14 Mar 2008 17:15:47 -0500
> From: Eric Weir <eeweir at bellsouth.net>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <47DAF913.8000902 at bellsouth.net>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 3/14/08 Brian Pitts wrote:
> > Eric Weir wrote:
> >   
> >> > I have an extra HD on my Windows machine that I use only for backups. If 
> >> > I moved the extra HD to my Ubuntu/Kubuntu machine could I move just my 
> >> > /home folder to the second HD and use the first HD just for the 
> >> > operating system and applications, e.g., so that data files are 
> >> > routinely opened from and saved to the second HD, without my having to 
> >> > constantly be navigating to and from it? 
> > There are different ways of doing this; I'll try to list all the steps I 
> > would take to accomplish it. I use double-quotes to mark the things you 
> > should type; you would not type the quotes themselves. Whenever I 
> > arbitrarily pick the output of a command, you should replace it with 
> > your own result when it's used later.
> >   
> 
> Thanks, Brian. Pretty clear.
> 
> ------------------------------------------------------------------------
> Eric Weir
> Decatur, GA  USA
> eeweir at bellsouth.net
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/4a0e44c1/attachment-0001.htm 
> 
> ------------------------------
> 
> Message: 6
> Date: Fri, 14 Mar 2008 17:48:34 -0400
> From: "Michael B. Trausch" <mike at trausch.us>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <1205531314.29574.18.camel at sage>
> Content-Type: text/plain; charset="us-ascii"
> 
> On Fri, 2008-03-14 at 14:45 -0500, Eric Weir wrote:
> > [1]What does "transfer the directory in *single user mode*" mean?
> 
> Single user mode means "recovery" mode in Ubuntu.
> 
> Doing this in single user mode means that you will not have open files,
> and certain portions of the system (such as gconf) will be copied to the
> new hard disk in a consistent state.  Single user mode is generally far
> easier (and is universally possible) compared to copying a filesystem
> snapshot, which isn't possible on all systems AFAIK.
> 
> > [2] You refer to "/home" versus "/new-home." Does the directory on the
> > new drive have to have a different name from the current home
> > directory? If the answer is yes at least during the process of moving
> > from one HD to the other, can "/new-home" be renamed after the move is
> > finished?
> 
> Yes, it can be renamed after the tar command is finished.  You can even
> move the old /home to /oldhome before you start.  However, don't get
> used to that idea:  You can "mv" a normal directory, but you cannot "mv"
> a mounted directory, so if you want to upgrade your storage on /home in
> the future, you will either need to remount /home on /oldhome, or simply
> work in /newhome until you're ready to swap it all out.
> 
> Note that as Brian mentioned, you can use 'rsync' as well.  Which one
> you choose is up to you; if you're moving all of the files though, and
> the destination drive doesn't have anything on it (since you'll be
> formatting it anyway), either way works just fine.
> 
> 	--- Mike
> 
> -- 
> Michael B. Trausch                                   mike at trausch.us
> home: 404-592-5746, 1                                 www.trausch.us
> cell: 678-522-7934                       im: mike at trausch.us, jabber
> Ubuntu Unofficial Backports Project:    http://backports.trausch.us/
> 
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: This is a digitally signed message part
> Url : https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/772625ba/attachment-0001.pgp 
> 
> ------------------------------
> 
> Message: 7
> Date: Fri, 14 Mar 2008 18:03:58 -0500
> From: Eric Weir <eeweir at bellsouth.net>
> Subject: Re: Move /home to another HD?
> To: Georgia Ubuntu Mailing List <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID: <47DB045E.7040104 at bellsouth.net>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 3/14/08 Michael B. Trausch wrote:
> > Note that as Brian mentioned, you can use 'rsync' as well.  Which one
> > you choose is up to you; if you're moving all of the files though, and
> > the destination drive doesn't have anything on it (since you'll be
> > formatting it anyway), either way works just fine.
> Thanks, Mike -- for the explanations, too.
> 
> ------------------------------------------------------------------------
> Eric Weir
> Decatur, GA  USA
> eeweir at bellsouth.net
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.ubuntu.com/archives/ubuntu-us-ga/attachments/20080314/5ba30f10/attachment-0001.htm 
> 
> ------------------------------
> 
> Message: 8
> Date: Fri, 14 Mar 2008 22:37:08 -0400
> From: "Jon Reagan" <jreagan1990 at gmail.com>
> Subject: Sunday IRC Meeting
> To: "Ubuntu Georgia (US) Mailing List" <ubuntu-us-ga at lists.ubuntu.com>
> Message-ID:
> 	<371176e00803141937t298a786aw24e74413962bafc0 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> That's right folks!  The Sunday IRC meetings are back!
> 
> This Sunday's topics include the planning of the Hardy InstallFest.
> 
> The meeting will be held at 3pm on irc.freenode.net, channel #ubuntu-us-ga.
> 
> If you need help connecting, feel free to reply here.
> 
> Thanks!
> 
> Jon
> 
> 
> 
> ------------------------------
> 




More information about the Ubuntu-us-ga mailing list