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 .



2018年4月19日木曜日

growfs (revision 18/05/03)













in order to know the true fact ,


both 
the master of the languages of that past 
and
the technique of the archaeology .

the politicians lack both of them.
so 
the politicians say often the fake history !
we should not learn  the cooking of the susi  from the politicians !






is  me  , fake fake fake !



i write down here that 
if you use both dd and growfs(6.3) ,
you can clone small hard disk drive to bigger one !

archlinux で openbsdをいれた
HDD1(80GB)を 
より大きな容量のHDD2(160GB)
へddしておきます。
dd if=/dev/sdS of=/dev/sdB bs=32k

なお openbsdでは 
a は  /  
in order to simplify ,  /etc/fstab is
5e6829d8a4741b1.a / ffs rw,wxallowed 1 1





このあとHDD2をつけ 電源をいれます。





boot bsd.rd で起動します




shell



fdisk -e sd0

here 、286749480-4=286749476 








disklabel -E sd0
b -> * -> c -> a



fsck -> growfs


fsck again


reboot is OK !
I'am so happy .