Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Just making sure....

  • 20-11-2007 02:43PM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    So...I'm migrating my OS to a new hard drive this evening.....

    if I copy over the files, then install grub, I'm good, right?

    boot to live cd, mount both drives, cp -pr <old drive mount point> <new drive mount point>, install grub, job done.

    Just seems a bit too simple, but my brain tells me it's correct.


Comments

  • Hosted Moderators Posts: 7,486 ✭✭✭Red Alert


    Just be careful of /dev and /proc - I'm not sure how they'll handle the change.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Hmmm.

    I'm thinking both should get created at boot time.

    I found an interesting argument for cp.... -x.....from the man page:
    -x, --one-file-system
                  stay on this file system
    

    edit: So I'm thinking: No live cd, normal boot then: cp -rpx / <new mount point>

    edit: Hmmm, telinit 1 first methinks.


Advertisement