Average Joe (tmtl) wrote in freebsd_users,
Average Joe

Changing drives

What would be the best way to change drives around. I currently have all my partitions on ad0, but have recently installed a pair of drives with gmirror doing the RAID

% df
Filesystem            Mounted on
/dev/ad0s1a           /
/dev/ad0s1e           /tmp
/dev/ad0s1f           /usr
/dev/ad0s1d           /var
/dev/mirror/gm1s1d    /newRoot
/dev/mirror/gm1s1e    /newTmp
/dev/mirror/gm1s1f    /newVar
/dev/mirror/gm1s1h    /newUsr

I figure I can't just do a cp -R / /newRoot as I think cp would cross mount points?

I've tried using dd, but the new partitions are larger than the old. Using dd appeared to create partitions of the same size. Which, I guess is to be expected

What would the best way of migrating all my data from <mountpoint> to <newmountpoint>. I would guess that once all the data's migrated, it's just a case of updating /etc/fstab to point to the new locations

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.