0

I am trying to create a dm-zero device and mount it,but getting the following errors during mount.I have been stuck here for very long. Any help will be appreciated.

Error

mount: wrong fs type, bad option, bad superblock on /dev/mapper/zero_1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so

steps I followed are:

  1. dmsetup create zero_1 --table '0 20000 zero'
  2. mkfs -t ext2 /dev/mapper/zero_1
  3. mount -t ext2 /dev/mapper/zero_1 /mnt

dmesg says:

[ 2547.110310] EXT2-fs (dm-0): error: can't find an ext2 filesystem on dev dm-0.

4

1 回答 1

0

真的吗?dm-zero 创建仅返回0s 的设备。所以你永远不会看到 ext2 文件系统。

于 2014-08-18T12:35:50.240 回答