我正在运行:fsck -n /dev/sdb2
并且我得到了:
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb2
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
有什么建议吗?分区出了什么问题?我该怎么办?
根据要求提供的其他信息:
sudo fdisk -l
输出:
Device Start End Sectors Size Type
/dev/sdb1 32335872 60061695 27725824 13.2G Microsoft basic data
/dev/sdb2 2048 4095 2048 1M BIOS boot
/dev/sdb3 4096 503807 499712 244M EFI System
/dev/sdb4 503808 4610047 4106240 2G Linux filesystem
/dev/sdb5 4610048 32335871 27725824 13.2G Linux filesystem
答案1
fsck
您在错误的分区 (sdb2) 上执行此操作。
sudo fdisk -l
向我们展示以下分区是“Linux 文件系统”……
/dev/sdb4 503808 4610047 4106240 2G Linux filesystem
/dev/sdb5 4610048 32335871 27725824 13.2G Linux filesystem
以下是您应该使用的命令...
在“尝试 Ubuntu”模式下启动 Ubuntu Live DVD/USB。
打开terminal
应用程序并输入:
sudo fsck -f /dev/sdb4
sudo fsck -f /dev/sdb5
reboot