Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Just making sure....

  • 20-11-2007 01: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