【问题标题】:aws configure command giving [Errno 5] Input/output erroraws configure 命令给出 [Errno 5] 输入/输出错误
【发布时间】:2016-11-13 22:25:01
【问题描述】:

我正在配置 awscli

我运行以下命令:

[bharthan@pchirmpc007 ~]$ aws configure
AWS Access Key ID [None]: adfasdfadfasdfasdfasdf
AWS Secret Access Key [None]: adfasdfasdfasdfasdfasdfasd
Default region name [None]: us-east-1
Default output format [None]: json

它给了我以下错误:

[Errno 5] Input/output error

任何建议可能是什么原因。

【问题讨论】:

  • 在哪里配置 CLI?

标签: unix amazon-web-services aws-cli


【解决方案1】:

您的目标硬盘上可能有一些坏扇区。

要在 Linux 中检查 sda1 卷是否有坏扇区,请运行 fsck -c /dev/sda1。对于 Windows 中的驱动器 C:,它应该是 chkdsk c: /f /r

恕我直言chkdsk 方式将更合适,因为它会重新映射硬盘上的坏块,而 Linux fsck 只是将这些块标记为在当前文件系统中不可用。

引用man fsck.ext2

-c 该选项使e2fsck 使用badblocks(8) 程序对设备进行只读扫描,以查找任何坏块。如果发现任何坏块,则将它们添加到坏块 inode 中,以防止将它们分配给文件或目录。如果此选项指定了两次,则将使用非破坏性读写测试完成坏块扫描

【讨论】:

    猜你喜欢
    • 2023-03-15
    • 2019-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-10
    • 2021-09-11
    • 1970-01-01
    相关资源
    最近更新 更多