2018年4月23日月曜日

cloning to smaller hard disk

i want to clone bigger HDD(sd1) to smaller HDD(sd0) 



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 



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


 at present namely , 10 days later
i think that
 In advance the fstab of the bigger hard disk
should be  /dev/sd0a / ffs rw,wxallowed 1 1  
this setting is more convinient 



15) then do upgrade again


all is done


but
this method require 2 times of USB memory booting .

so i write down only 1 time USB memory booting method on
https://qiita.com/tyokai/items/2aaac13642599b09dd68 

but 
both methods may change kernel by upgrade ,
in thi point growfs is superior . 
so they are  most usable at virsion grade up .



0 件のコメント:

コメントを投稿