hi all .
i manage to clone bigger HDD(sd1) to smaller HDD(sd0)

this is dangerous , so please test .
and there may be some errors , then please point them out .


1) boot pc by USB stick ( indtall53.fs)
2)chose install

3) acertain disks by !
4) exit

5) which disk is the root dik ? ---> sd0
then formatting sd0

6)which disk do you want to initialize? --->sd1
   then
   controll + c  <--- important

7)mkdir -p /m1
   mkdir -p /m2
   mount /dev/sd1a /m1
   mount /dev/sd0a /m0

8) (cd m1 ; tar cvpf - .)|( cd /m0 ; tar xpf -)

10) halt -p
11) remove bigger HDD (namely smaller HDD only inserted)
12 ) reboot and then choose upgrade

13)mkdir /m0
     mount /dev/sd0a /m0

14) echo '/dev/sd0a / ffs rw,wxallowed 1 1' > /m0/etc/fstab <--- this is
essential

15) then do uggrade menu again

---------------
regards

details is on
http://openbsd-akita.blogspot.jp/2018/04/cloning-to-smaller-hard-disk.html

Reply via email to