Announcement

Collapse
No announcement yet.

Heres a strange one Copy home to other partition

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Heres a strange one Copy home to other partition

    Ok I

    Code:
    rcp -r -p -v /home /media/sda5
    and it copied (as far as I can tell) everything including hidden files and subdirectories. Then I changed fstab so home was sda5 from hdb2 and rebooted. Everththing seemed to work fine but when I got KDE up it was like I was a new user, all my customization gone and the KDE wizzard to set up a new user popped up. So I put fstab back and reboot and everything is back. What happened? I need to copy home over so I can split hda2 in to hdb2, 3, & 4 then put home back on hdb4 with no data/customization lost. Help.
    Thanks
    Alvin ARS ka9qlq
    Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
    Just believing there IS a God won't get you to Heaven.
    Accepting Jesus as your Lord and master is the only way!
    http://www.4laws.com/laws/languages.html
    http://www.godssimpleplan

    #2
    Re: Heres a strange one Copy home to other partition

    This is part of aysiu's instruction on creating a separate home partition. I don't know if it is what is required in your case, but it may help nonetheless.

    Quote

    Next, we're going to specify to use the new home partition as /home:

    sudo cp /old/etc/fstab /old/etc/fstab_backup
    sudo nano /old/etc/fstab
    You'll then be taken to the nano text editor. Add in this line:

    /dev/(new home) /home ext3 nodev,nosuid 0 2
    Then save (Control-X), confirm (Y), and exit (Enter)
    After you reboot, you should be now using your new /home partition.
    Unquote

    Hope this may help.
    I wish I was the man my dog thinks I am.<br /><br />Registered Linux User No. 402825

    Comment


      #3
      Re: Heres a strange one Copy home to other partition

      This is how i copy Kubuntu:

      Example: moving/copying kubuntu from hdb1 to the sda1

      Start kubuntu from cd.

      Choose:Start Kubuntu in safe graphic mode


      Make directories and mount them. In the konsole:
      Code:
      sudo mkdir /media/old
      sudo mount /dev/hdb1 /media/old
      
      sudo mkdir /media/new
      sudo mount /dev/sda1 /media/new

      Copy kubuntu:
      Code:
      sudo rsync -a /media/old/ /media/new
      Note:
      A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination.

      Edit fstab.

      This is from HOWTO: Copy kubuntu system
      http://kubuntuforums.net/forums/index.php?topic=11116.0
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Heres a strange one Copy home to other partition

        Well when I change

        Code:
        /dev/hdb1 /        ext3  defaults,errors=remount-ro 0    1
        /dev/hdb2 /home      ext3  defaults    0    2
        To
        Code:
        /dev/sda5 /home      ext3  defaults    0    2
        it mounts the partition as home and not the /home directory I copied to the partition so it doesn't see the user directory in /home so I'm going to try this

        Code:
        /dev/sda5 /home/home      ext3  defaults    0    2
        I know there are linux wizzards out there that will pop rolaids over this but we'll see.
        Thanks
        Alvin ARS ka9qlq
        Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
        Just believing there IS a God won't get you to Heaven.
        Accepting Jesus as your Lord and master is the only way!
        http://www.4laws.com/laws/languages.html
        http://www.godssimpleplan

        Comment


          #5
          Re: Heres a strange one Copy home to other partition

          Got it done by putting the user directory to the root of sda5
          Thanks
          Alvin ARS ka9qlq
          Kubuntu 12.04 on a AMD X2 6000+ Asus M3A78-CM 4 GB RAM ATI Radeon 3100 256MB & 2 TB SATA HD
          Just believing there IS a God won't get you to Heaven.
          Accepting Jesus as your Lord and master is the only way!
          http://www.4laws.com/laws/languages.html
          http://www.godssimpleplan

          Comment

          Working...
          X