启动 ubuntu 14.10 后我得到了这样的日志输出
[1377286.486802] EXT4-fs(sda2):无法读取超级块
我可以登录并使用机器,但我猜有些地方不对劲。
使用 fdisk、dumpe2fs 和 e2fsck 进行了一些诊断。
这有多糟糕?应该/可以做什么?
sudo 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
sudo 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
嗯,是的,您正在尝试挂载扩展分区,但结果肯定不会好 —— 该分区上没有文件系统。您想挂载哪个分区?