Average Joe (tmtl) wrote in freebsd_users,
Average Joe
tmtl
freebsd_users

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

Thanks!
  • Post a new comment

    Error

    default userpic
  • 4 comments