LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1032|回复: 7

如何让debian lenny支持ext4呢

[复制链接]
发表于 2009-11-8 17:19:35 | 显示全部楼层 |阅读模式
我用的是debian lenny,想mount一个ext4的分区,但是提示说不支持ext4,e2fsprogs我已经装了,还需要装哪个包才能支持ext4呢
发表于 2009-11-8 17:22:59 | 显示全部楼层
重新编译内核,也可以安装testing或sid的内核
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-8 18:14:59 | 显示全部楼层
难道就只能换内核,我主要是懒得重启到另一个新的linux系统,想从直接拷点东西出来
回复 支持 反对

使用道具 举报

发表于 2009-11-8 20:21:09 | 显示全部楼层
lenny的内核太老了,不支持ext4

http://ext4.wiki.kernel.org/index.php/Ext4_Howto
  1. In Debian Lenny (Testing), the following current packages provide ext4 support:
  2.     * ext4dev module in the linux-image package (2.6.26-10)
  3.     * e2fsprogs (1.41.3-1)
  4. It should be noted that the stock 2.6.26 ext4 has problems with delayed allocation and with filesystems
  5. with non-extent based files.  So until Debian starts shipping a 2.6.27 based kernel or a 2.6.26 kernel with
  6. at least the 2.6.26-ext4-7 patchset, you should mount ext4dev filesystems using -o nodelalloc and only
  7. use freshly created filesystems using "mke2fs -t ext4dev". (Without these fixes, if you try to use an ext3
  8. filesystem which was converted using "tune2fs -E test_fs -o extents /dev/DEV", you will probably hit
  9. a kernel BUG the moment you try to delete or truncate an old non-extent based file.)
复制代码

所以要打开ext4dev,不过lenny好像,默认是不开的
回复 支持 反对

使用道具 举报

发表于 2009-11-8 22:56:52 | 显示全部楼层
换个内核又不麻烦,要是自己编一个还能更快些
回复 支持 反对

使用道具 举报

发表于 2009-11-9 00:27:26 | 显示全部楼层
只操作一次以后省了很多麻烦, 2.6.30 内核就在 lenny-backports 源里。
回复 支持 反对

使用道具 举报

发表于 2009-11-9 16:37:51 | 显示全部楼层
换新内核,最好添加lenny-backports装,因为新内核还牵扯到几个相关软件包需要升级。
回复 支持 反对

使用道具 举报

发表于 2009-11-9 17:03:56 | 显示全部楼层
用sid的新内核即可。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表