Linux论坛's Archiver

《开源》旗舰电子杂志2009年第1期火热下载!

ctpyy 发表于 2008-4-17 17:34

为什么 mke2fs 制作的ramdisk最大值不能超过128M,当超过128M就报错

centos5.1 内存2G)
为什么 mke2fs 制作的ramdisk最大值不能超过128M,当超过128M就报错
[root@my ~]# [color=Red]mke2fs  /dev/ram0   256M[/color]
mke2fs 1.39 (29-May-2006)
mke2fs: Filesystem larger than apparent device size.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
65536 inodes, 65536 blocks
3276 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=67108864
2 block groups
32768 blocks per group, 32768 fragments per group
32768 inodes per group
Superblock backups stored on blocks:
        32768

mke2fs: 无效的参数 while zeroing block 65520 at end of filesystem
Writing inode tables: 1/2
Could not write 8 blocks in inode table starting at 32787: 无效的参数
[color=Red]怎样配置才能超过128M呢?[/color]

锅盖头 发表于 2008-4-18 07:16

不知道,顶一下吧  呵呵

ctpyy 发表于 2008-4-19 09:16

谢谢版主帮我顶,已经搞定,/etc/grub.conf        kernel行结尾处增加ramdisk=5242888
重启就可以
最大512M

linuxpk 发表于 2008-4-22 20:41

欢迎ctpyy这样的朋友,和大家分享自己的知识!

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.