在Linux 4.4.0中安装ext4安装为ext2 [RHEL]

时间:2016-04-19 05:09:38

标签: filesystems mount ext4 ext2

  

我执行的命令

mkfs .ext4 -F / dev / xxx0

mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
524288 inodes, 2097152 blocks
104857 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

mount -o dax / dev / xxx0 / mnt / ext4-xxx0

  

安装输出

/dev/xxx0 on /mnt/ext4-xxx0 type ext2 (rw,relatime,seclabel,block_validity,barrier,dax,user_xattr,acl)
  

dmesg输出

[ 2917.044866] EXT4-fs (xxx0): DAX enabled. Warning: EXPERIMENTAL, use at your own risk
[ 2917.044869] EXT4-fs (xxx0): mounting ext2 file system using the ext4 subsystem
...
...
[ 2917.045459] EXT4-fs (xxx0): mounted filesystem without journal. Opts: dax

随后导致fallocate失败,因为ext2不支持fos ext2。

任何建议/解决方案都将不胜感激。

1 个答案:

答案 0 :(得分:1)

安装时提供类型为ext4。否则它将采用/etc/fstab中提到的默认类型(或)类型。

# mount -o dax -t ext4 /dev/xxx0 /mnt/ext4-xxx0