2017-01-26 85 views
0

我試圖從EC2實例安裝主要的/ dev/sda1的volumen,到一個新的,但我有這些問題:EC2實例,裝配卷DOS/MBR引導扇區

$ sudo mount -t ext4 /dev/xvdg /mnt/xvdg/ 
mount: wrong fs type, bad option, bad superblock on /dev/xvdg, 
     missing codepage or helper program, or other error 

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

從dmesg的信息:

$ dmesg | tail 
[ 673.481965] xvdg: xvdg1 
[ 673.589140] xvdg: xvdg1 
[ 673.711554] xvdg: xvdg1 
[ 673.802113] xvdg: xvdg1 
[ 673.872627] xvdg: xvdg1 
[ 673.978105] xvdg: xvdg1 
[10382.432880] EXT4-fs (xvdg): VFS: Can't find ext4 filesystem 

更多信息:

$ sudo fdisk -l /dev/xvdg 
Disk /dev/xvdg: 16 GiB, 17179869184 bytes, 33554432 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes/512 bytes 
I/O size (minimum/optimal): 512 bytes/512 bytes 
Disklabel type: dos 
Disk identifier: 0x00000000 

Device  Boot Start  End Sectors Size Id Type 
/dev/xvdg1 * 16065 33543719 33527655 16G 83 Linux 
Looking for more info, got to this link 

我也跟着these steps來修復一個破損的Ext4超級塊。但它不起作用。

回答

7

磁盤分區的方式,而不是用這個:

$ sudo mount /dev/xvdg1 /mnt/xvdg/