[Novalug] More than one linux version on a machine question

Don E. Groves, Jr. dgrovesjr at gmail.com
Sun Apr 29 19:59:12 EDT 2012


the answer to "Part 2" is YES it's fairly simple. <GRIN>

Create a partition, format it (ext3 or something equal or better)
 mount it:
    $ sudo  mkdir /tmp/newhome
    $ sudo  mount /dev/(your new partition)  /tmp/newhome
          { where (your new partition) is the device for your new
partition.}

    $ sudo telinit s                   // switch to single user mode

now comes the fun parts(?)  in single user mode the following steps

  Transfer (copy) the files from /home to /tmp/newhome
   #  (cd /home; tar cf - *) | ( cd /tmp/newhome; tar xfp -)

   # unmount  /tmp/newhome
   # edit /etc/fstab
     /\ add the '/home' entry, you can do this step to a copy before
switching to single user mode. /\

{note: the following steps must be done in single user mode or from an
alternate boot}

  # mv /home  /oldhome         // rename your current home directory
  # mkdir /home                     // create a new mount point.
  # mount /home                    // mount the new /home partition

If the 'mount' works you've edited 'fstab' correctly, else fix things now
Once that's done it safest to 'reboot' the system:
  # reboot

Later you can clean up the /oldhome  directory/tree

On Sun, Apr 29, 2012 at 2:21 PM, Bonnie Dalzell <bdalzell at qis.net> wrote:
>
>
> Part 2 - if answer to the above is "yes" is there a simple way to
> reassign to a different /home partition one a linux os is already
> installed on a harddrive in its own / partition.
>
> --
--
Don E. Groves, Jr.

Tag it's your turn now... ... ....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20120429/48f5ae02/attachment.html 


More information about the Novalug mailing list