WARNING: /dev/sdb1: appears to contain 'dos' partition table

問題

wipefs コマンドを実行すると、次のメッセージが表示される。

wipefs: WARNING: /dev/sdb1: appears to contain 'dos' partition table
wipefs: 警告: /dev/sdb1: 'dos' パーティションテーブルを含んでいるようです。

解決方法

パーティションテーブルの先頭から数 MB をゼロ埋めする。

# dd  if=/dev/zero  of=/dev/sdb1  bs=1M  count=10

OS を再起動する。

# reboot

参考文献

http://thread.gmane.org/gmane.linux.kernel.bcache.devel/2564

Raspberry Pi の VNC サーバーに TightVNC で接続するとエラーになる

エラー内容

f:id:renkin3q:20171007132120j:plain

Error in TightVNC Viewer: No security types supported. Server sent security types, but we do not support any of their.

TightVNC ビューアーのエラー: サポートされているセキュリティタイプがありません。サーバーはセキュリティタイプを送信しましたが、我々はその何れもサポートしていません。

環境

解決方法

/root/.vnc/config.d/vncserver-x11 に次の行を記述する。

Authentication=VncAuth

VNC パスワードを設定する。

$ sudo  vncpasswd  -service
Password:
Verify:

VNC サーバーを再起動する。

$ sudo  systemctl  restart  vncserver-x11-serviced.service

参考文献

https://www.raspberrypi.org/documentation/remote-access/vnc/

ERROR: Kernel configuration is invalid.

カーネルモジュールのコンパイルタスクが次のエラーで失敗する。

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.
...
  WARNING: Symbol version dump tmp/work/arm-poky-linux-gnueabi/linux/2.6.35-r1/git/Module.symvers
           is missing; modules will have no dependencies and modversions.
...
cc1: fatal error: include/generated/autoconf.h: No such file or directory

解決方法

カーネルを cleansstate する。

MySQL Workbench では NULL を含んだ CSV をインポートできない

仕様。

“NULL” と書いても “\N” と書いても、文字列として扱われる。"\N" に至っては “\\N” と、エスケープしてくれる親切設計。 エクスポートでは “NULL” と出力されるのに、インポートに使えないとかいただけない。