無法讀取虛擬伺服器上的超級區塊

無法讀取虛擬伺服器上的超級區塊

啟動 ubuntu 14.10 後,我得到這樣的日誌輸出

[1377286.486802] EXT4-fs (sda2): 無法讀取超級區塊

我可以登入並使用機器,但我猜出了什麼問題。

使用 fdisk、dumpe2fs 和 e2fsck 進行了一些診斷。

這有多糟?

須藤 fdisk -l

Disk /dev/sda: 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: 0x71f43c62

Device     Boot  Start      End  Sectors  Size Id Type
/dev/sda1  *      2048   499711   497664  243M 83 Linux
/dev/sda2       501758 33552383 33050626 15.8G  5 Extended
/dev/sda5       501760 33552383 33050624 15.8G 8e Linux LVM

Disk /dev/mapper/Ubuntu--vg-root: 11.8 GiB, 12624855040 bytes, 24657920 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
Disk /dev/mapper/Ubuntu--vg-swap_1: 4 GiB, 4294967296 bytes, 8388608 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

須藤 dumpe2fs /dev/sda2

dumpe2fs 1.42.10 (18-May-2014)
dumpe2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Couldn't find valid filesystem superblock.

sudo e2fsck -f /dev/sda2

e2fsck 1.42.10 (18-May-2014)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2

Could this be a zero-length partition?

答案1

嗯,是的,您正在嘗試安裝擴充分割區,這永遠不會有好結果——該分割區上沒有檔案系統。您想安裝哪個分割區?

相關內容