我无法将 AWS EBS 驱动器重新安装到 Ubuntu 实例。我不确定这是 Ubuntu 的问题还是 Amazon Web Services 的问题。它不是可启动驱动器。
sudo mount /dev/xvdf /data
mount(2) system call failed: Structure needs cleaning.
我最初按照以下步骤安装它:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
我重新启动了,但安装座不见了。
我试过
sudo fsck.ext4 /dev/xvdf
/dev/xvdf: clean, 17665/1073741824 files, 233339937/4294967296 blocks
e2fsck also output the same.
我认为 fstab 可能已损坏,因此我将其恢复到原始状态然后重新启动,但我仍然无法挂载驱动器。
编辑:
我运行了下面的命令,结果显示错误。根据sudo stat -f /dev/xvde
sudo e2fsck -c /dev/xvde
badblocks: Value too large for defined data type invalid end block
(4294967296): must be 32-bit value
/dev/xvde: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/xvde: ***** FILE SYSTEM WAS MODIFIED *****
/dev/xvde: 17666/1073741824 files (15.2% non-contiguous), 233339938/4294967296 blocks