Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Ubuntu:突然我发现我的一个硬盘分区(/dev/sda5)显示为';未知驱动器';_Linux_Ubuntu - Fatal编程技术网

Linux Ubuntu:突然我发现我的一个硬盘分区(/dev/sda5)显示为';未知驱动器';

Linux Ubuntu:突然我发现我的一个硬盘分区(/dev/sda5)显示为';未知驱动器';,linux,ubuntu,Linux,Ubuntu,突然,我发现我的一个硬盘分区(/dev/sda5)显示为“未知驱动器”。我无法装载/检索此驱动器上的数据。我也无法编辑分区。如何检索/存储驱动器 我执行了以下命令 demo@demo-laptop:~$ sudo fsck -c /dev/sda5 fsck from util-linux-ng 2.17.2 e2fsck 1.41.11 (14-Mar-2010) fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2:

突然,我发现我的一个硬盘分区(/dev/sda5)显示为“未知驱动器”。我无法装载/检索此驱动器上的数据。我也无法编辑分区。如何检索/存储驱动器

我执行了以下命令

demo@demo-laptop:~$ sudo fsck -c /dev/sda5
fsck from util-linux-ng 2.17.2
e2fsck 1.41.11 (14-Mar-2010)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda5

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
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>

demo@demo-laptop:~$ sudo e2fsck -b 8193 /dev/sda5
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Bad magic number in super-block while trying to open /dev/sda5

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
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>
demo@demo-笔记本电脑:~$sudo fsck-c/dev/sda5
来自util linux ng 2.17.2的fsck
e2fsck 1.41.11(2010年3月14日)
fsck.ext2:超级块无效,正在尝试备份块。。。
fsck.ext2:尝试打开/dev/sda5时超级块中存在错误的幻数
无法读取该超级块或该超级块未描述正确的ext2
文件系统。如果设备有效且确实包含ext2
文件系统(而不是交换、ufs或其他),然后是超级块
已损坏,您可以尝试使用备用超级块运行e2fsck:
e2fsck-B8193
demo@demo-笔记本电脑:~$sudo e2fsck-b 8193/dev/sda5
e2fsck 1.41.11(2010年3月14日)
e2fsck:尝试打开/dev/sda5时超级块中存在错误的幻数
无法读取该超级块或该超级块未描述正确的ext2
文件系统。如果设备有效且确实包含ext2
文件系统(而不是交换、ufs或其他),然后是超级块
已损坏,您可以尝试使用备用超级块运行e2fsck:
e2fsck-B8193

请帮帮我。提前谢谢。

小心点。检查该分区是扩展分区还是交换分区。试试
sudofdisk-l
,它会告诉你系统上的所有分区。

属于或…它是一个扩展分区。它在分区表(/dev/sda5)中可见demo@demo-笔记本电脑:~$sudo fdisk-l/dev/sda1 3221 25867979 7 HPFS/NTFS/dev/sda2 3221 19456 130412033 f W95分机(LBA)/dev/sda5 6375 12748 5119915583 Linux/dev/sda6*12749 19456 53881978+83 Linux/dev/sda7 3221 6238 24237056 83 Linux/dev/sda8 6238 6374 1092608 82 Linux swap/