无法在AWS上安装现有EBS


28

我尝试将现有的EBS存储(具有数据)安装到实例,但是它始终抛出此错误。

mount: wrong fs type, bad option, bad superblock on /dev/xvdf,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

存储详细信息是:

ec2-user@ip ~]$ sudo parted -l
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvda: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                 Flags
128     1049kB  2097kB  1049kB               BIOS Boot Partition  bios_grub
 1      2097kB  8590MB  8588MB  ext4         Linux


Model: Xen Virtual Block Device (xvd)
Disk /dev/xvdf: 16.1GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                 Flags
128     1049kB  2097kB  1049kB               BIOS Boot Partition  bios_grub
 1      2097kB  16.1GB  16.1GB  ext4         Linux

dmesg | 尾部显示以下详细信息

   [ec2-user@ip- ~]$ dmesg | tail
[    2.593163] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
[    2.625565] evbug: Connected device: input0 (AT Translated Set 2 keyboard at isa0060/serio0/input0)
[    2.625568] evbug: Connected device: input2 (Power Button at LNXPWRBN/button/input0)
[    2.625570] evbug: Connected device: input3 (Sleep Button at LNXSLPBN/button/input0)
[    3.657958] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
[    3.664979] evbug: Connected device: input4 (ImExPS/2 Generic Explorer Mouse at isa0060/serio1/input0)
[    5.731219] EXT4-fs (xvda1): re-mounted. Opts: (null)
[    5.938276] NET: Registered protocol family 10
[   11.720921] audit: type=1305 audit(1412199137.191:2): audit_pid=2080 old=0 auid=4294967295 ses=4294967295 res=1
[  101.024164] EXT4-fs (xvdf): VFS: Can't find ext4 filesystem
[ec2-user@ip- ~]$ 

Answers:


56

看起来您已经对该块设备进行了分区。在这种情况下,您需要安装/dev/xvdf1,而不仅仅是/dev/xvdf


似乎可以工作。将在几分钟内更新。谢谢你
2014年

1
是。即使使用AWS Dashboard附加为“ xvdf”,也必须安装为xvdf1。要确定您是否有分区驱动器,请检查/ dev:,ls /dev/xvdf*如果有,您将看到多个条目。
布伦特·浮士德2015年

@Rubistro仅在对块设备进行分区时适用。
EEAA 2015年

这确实挽救了我的工作(可能)。奇怪的是,Amazon AWS文档没有在此页面上提及此问题-aws.amazon.com/articles/5213606968661598
bigp
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.