ethOSをアップデートする!(1.2.7→1.3.1)

ethOSをアップデートします。アップデートする前には、ethOSと設定ファイルのバックアップを取得しておきます。

使用した環境

  • ethOS 1.2.7 → 1.3.1

ethOSのOSのバックアップ

インストール済みのUSBを購入したため、まずethOSを他のUSBメモリにddコマンドでバックアップします。

1
# sudo dd if=/dev/sda of=/dev/sdb bs=1M

念のため、ファイルでもバックアップを取得しておきます。

1
# sudo dd if=/dev/sda of=/mnt/ethos-127.img bs=1M

ethOSの設定ファイルのバックアップ

以下のファイルをバックアップしておきます。

  • /home/ethos/remote.conf
  • /home/ethos/local.conf
  • /home/ethos/claymore.stub.conf
  • /home/ethos/custom.sh
  • /etc/default/keyboard
  • /etc/network/interfaces
  • /etc/ssh/sshd_config
  • /etc/X11/xorg.conf

ethOSのアップデートの実行

ethOSを再起動します。

1
# r

マニュアル通り、以下のコマンドでアップデートします。

1
2
3
4
5
6
7
sudo ethos-update reupdate && sleep 5 && sudo reboot
Fri Apr 13 16:54:01 UTC 2018 - ethOS Update on 025aeb Finished, please reboot. see /tmp/ethos-update.log for details about what was updated.
 
Broadcast message from ethos@025aeb
    (/dev/pts/2) at 11:54 ...
 
The system is going down for reboot NOW!

ログインし直し、ライセンスに同意します。ハッシュレートが38.5から38.9に上がったようです!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
...
Do you accept the ethOS License agreement (y/n)?y
Welcome to ethOS 1.3.1
 
Ethereum is up 11.2% today! Spend it at gpuShack.com
 
♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦
 Remote/Local Confs           /home/ethos/remote.conf  /home/ethos/local.conf 
 Documentation / Sample Conf  ethosdistro.com/kb     ethosdistro.com/pool.txt                            
  
 helpme:                show the list of common commands and information
 allow/disallow:        allow OR disallow miner (automatic start)      
 minestop:              turn off all miner instances                    
 show:                  show output of various log files                                                   
♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦
 
01:49 PM ethos@XXXXXXX XXX.XXX.XXX.XXX [38.9 hash] /home/ethos $

show statsコマンドで問題なく、バージョン1.3.1にアップデートされていることを確認します。

1
2
3
4
02:22 PM ethos@025aeb 192.168.11.101 [38.9 hash] /home/ethos $ show stats
...
version:                                  1.3.1
...

マインニング用のソフトウェアのバージョンを確認するとこちらもアップデートされています。

1
2
3
4
5
6
7
8
9
10
11
12
cat /var/run/ethos/miner.versions
ccminer 2.2.5-ethos6
cgminer-skein 3.7.3
claymore v11.6
claymore-xmr v11.3
claymore-zcash v12.6
dstm-zcash 0.6.0.1
optiminer-zcash v1.7.0
sgminer-gm 5.5.6-gm
sgminer-gm-xmr 5.5.6-gm
ewbf-zcash 0.3.4b
ethminer 0.14.0.dev2

claymoreの設定移行確認

claymoreを使用していた場合、claymore.stub.confが削除され、local.confの末尾に設定が移行されます。

1
2
3
$ cat /home/ethos/claymore.stub.conf
...
claymore=flags -epool eth-jp1.nanopool.org:9999 -ewal 0x485dd3be9fb62ce7f9f5bfd5d4bf3898c9a89944.025aeb/isa-ken@miobox.jp -epsw x -eworker 025aeb -mode 1

おわりに

ethOSの最新版へのアップグレードを行いました。アップグレードによって、マイニング用ソフトウェアもアップデートされ、ハッシュレートが改善されます。