go - 在 VM 中运行 go-bindata 会导致输入/输出错误?

标签 go virtual-machine

我在我的虚拟机中运行 go-bindata。好像是提示输入/输出错误,没有任何进一步的描述。 然而,当我在我的主机操作系统上运行相同的 go-bindata 时,绝对没有错误。我在这里缺少什么?

步骤:

1) Use an oracle virtualbox VM . Enable networking and start the vm. Download the go-bindata and check if it is installed . You can do so by checking the help menu(go-bindata -h) or the version(go-bindata -version). I get a proper help menu and version 3.1.0 when i do that.

2) Now power off the vm, disable the networking and start the vm again.
3) run go-bindata now( or again you can just do go-bindata -h or go-bindata -version). I am getting an error here. 

-bash: /path/to/bin/go-bindata: Input/output error

此后不再赘述。 我检查了/var/log/dmesg,但也没有发现坏 block 问题。

最佳答案

这已经解决了。问题是当磁盘上有坏 block 时,您往往会出现此输入/输出错误。但是这个错误可能有很多原因。所以很难说出它的确切原因是什么,但就我而言,我尝试了很多试验和错误的东西来掌握它并证明需要通过发送关闭信号而不是关闭电源来重新启动 VM机器。您可以在关闭 Oracle VirtualBox 机器时轻松获得这些选项。谢谢:)

关于go - 在 VM 中运行 go-bindata 会导致输入/输出错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48167104/

相关文章:

powershell - 自动化 Runbook 中的 Start-AzureStorageBlobCopy 错误

linux - 如何增加精简配置vm的硬盘空间

go - exec 没有从 Golang 应用程序运行命令

postgresql - 单元测试 Postgres 数据库连接 golang

virtual-machine - PHPStorm + XDebug + Vagrant

.net - 虚拟机的 GA 框架

go - 将 <tag value ="val"/> 解码为 Go 中的标记字符串

elasticsearch - GoLang、elasticsearch多个查询参数

javascript - 转到 : regexp to swap cases

virtual-machine - Vagrant 的停止不起作用