我一直试图在ubuntu服务器上挂载ext2硬盘,但是当我运行sudo mount /dev/sdb /media/mynewdrive -t ext2时
wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so我还运行fsck /dev/sdb并获得了
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
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/sdb
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>不知道从这里往哪里走!有人有什么想法吗?
发布于 2013-06-15 19:15:34
如果在整个磁盘上创建了ext2文件系统,则
sudo mount /dev/sdb /media/mynewdrive -t ext2应该是正确的,但是如果您在分区上创建了一个ext2文件系统,那么命令应该如下所示:
sudo mount /dev/sdb1 /media/mynewdrive -t ext2(或S/sdb1 1/sdbN/用于第N分区)。fsck实用程序也适用于文件系统(可以位于分区或整个磁盘上)。尝试:
sfdisk -l /dev/sdb(或fdisk -l /dev/sdb)查看磁盘布局(没有分区,xor有多少分区,以及类型)。
(编辑以澄清整个磁盘混乱)
文件系统可以在多种块设备上创建:整个磁盘、分区、逻辑卷、raid阵列.
在整个磁盘上创建FS可能是不寻常的,但这是可能的。典型的全Linux情况是一个分区磁盘,其中一个分区上有/boot,另外至少还有一个分区,其中可能包含ext{2,3,4} FS,或LUKS加密卷,或者包含一个或多个文件系统的PV/VG/LV的LVM堆栈。
多磁盘系统可能会将整个磁盘分配给LUKS或LVM。双引导系统可能有更多的分区。YMMV这是我的:
# mke2fs -t ext4 /dev/sdf
mke2fs 1.42.3 (14-May-2012)
/dev/sdf is entire device, not just one partition!
Proceed anyway? (y,n) ymke2fs &未显示挂载输出
https://unix.stackexchange.com/questions/79530
复制相似问题