LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: wcw

[已解决]重新分区并用上LVM2和reiser4

[复制链接]
 楼主| 发表于 2006-12-11 21:24:00 | 显示全部楼层
哇塞!那非试不可!太神奇了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-11 22:13:24 | 显示全部楼层
问下torres,你用reiser4是用哪个补丁?有最新2.16.19的补丁吗?稳定吗?
还有resier4好像停止开发了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-12 12:31:48 | 显示全部楼层
我用的内核是2.6.19-gentoo-r1,然后我下了2.6.19-rc1-mm1.bz2(应该没下错吧?),解压后出来一个2.6.19-rc1-mm1,然后在内核源码树里面:
  1. linux# patch -p1 < /tmp/2.6.19-rc1-mm1
  2. The next patch would create the file .mm,
  3. which already exists!  Assume -R? [n] y
  4. patching file .mm
  5. patching file CREDITS
  6. patching file Documentation/00-INDEX
  7. The next patch would create the file Documentation/ABI/testing/cfag12864b,
  8. which already exists!  Assume -R? [n]
  9. ……
  10. ……
复制代码
出来n多警告和错误,是哪里做错了吗?
回复 支持 反对

使用道具 举报

发表于 2006-12-12 14:17:28 | 显示全部楼层
Post by wcw
问下torres,你用reiser4是用哪个补丁?有最新2.16.19的补丁吗?稳定吗?
还有resier4好像停止开发了?

2.16.19的补丁应该还没出来,可试试这个:
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=172058
这个是旧一点的转贴:
http://www.linuxsir.cn/bbs/showthread.php?t=258172
里面有使用ebuild的方法。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-12 15:01:23 | 显示全部楼层
我是看到了reiser4官方上面说的mm serie的补丁里有2.6.19-rc*-mm1.bz2,难道这些不是内核2.6.19的补丁?
还有mm serie和vanilla kernel有什么区别?mm1又和mm2有什么区别?


--------------------------------------------------------------------------------------------------------
http://gentoo.linuxsir.cn/doc/cn/gentoo-kernel.xml
回复 支持 反对

使用道具 举报

发表于 2006-12-12 16:21:18 | 显示全部楼层
Post by wcw
你的portage才需要220M,我刚刚看了下我的,除去distfile也要753M!!!难道是用reiser4省这么多空间?

回一下,我的portage也只是300多M,而且是经常更新。。。用的reiserfs,难道reiser4还更省空间?
回复 支持 反对

使用道具 举报

发表于 2006-12-12 17:12:45 | 显示全部楼层
Post by wcw
我是看到了reiser4官方上面说的mm serie的补丁里有2.6.19-rc*-mm1.bz2,难道这些不是内核2.6.19的补丁?
还有mm serie和vanilla kernel有什么区别?mm1又和mm2有什么区别?

没用过mm source,只知道不太稳定。Hauser那些ebuild是基于稳定版的gentoo-sources的,用起来放心些。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-12 21:33:39 | 显示全部楼层

搞定reiser4!

torres:我用你给的第一个链接,编译内核时出错了:

  1.   CC      init/do_mounts.o
  2. init/do_mounts.c:31:37: error: macro "suspend2_try_resume" passed 1 arguments, but takes just 0
复制代码

于是我依葫芦画瓢,在r4sus2-sources-2.6.18.ebuild的基础上剪了个只带reiser4功能的reiser4-sources-2.6.18.ebuild(即去了suspend2),这凑合算是我第一个ebuild(嘻嘻!“窃取”了torres和Hauser的成果,在此感谢2位!):

  1. # copyright 1999-2006 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: reiser4-sources-2.6.18.ebuild, 2006/12/12 $

  4. ETYPE="sources"
  5. K_WANT_GENPATCHES="base extras"
  6. K_GENPATCHES_VER="4"
  7. R4V="-3"

  8. inherit eutils kernel-2
  9. detect_version
  10. detect_arch

  11. KEYWORDS="~amd64 ~x86"
  12. HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.namesys.com/v4/v4.html"

  13. DESCRIPTION="Full sources including the gentoo patchset, Software Suspend 2 and
  14. the Reiser4 patchset"

  15. UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
  16. UNIPATCH_STRICTORDER="yes"

  17. SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"

  18. pkg_postinst() {
  19. postinst_sources

  20. echo

  21. einfo "For more info on this patchset, and how to report problems, see:"
  22. einfo "${HOMEPAGE}"
  23. }
复制代码

其它步骤跟torres说的一样
http://www.linuxsir.cn/bbs/showthread.php?t=258172

make menuconfig时我只多加了2个关于reiser4的选项

  1.   <*> Reiser4 (EXPERIMENTAL)                                                                  │ │  
  2.   │ │                      [*]   Enable reiser4 debug mode     
复制代码

不知第二个是否多余?但是至少加上去是没问题的。

现在我的portage分区已经用上reiser4了

  1. #df -h
  2. Filesystem                                       Size  Used Avail Use% Mounted on
  3. /dev/mapper/myvg-portage                210M  188M   22M  90% /usr/portage
复制代码

比起我以前用ext3放portage,portage少占了753-210=543M,呵呵!很神奇吧!像我磁盘空间比较紧张的同志不妨也来试试!
回复 支持 反对

使用道具 举报

发表于 2006-12-13 21:02:18 | 显示全部楼层
Post by wcw
...
于是我依葫芦画瓢,在r4sus2-sources-2.6.18.ebuild的基础上剪了个只带reiser4功能的reiser4-sources-2.6.18.ebuild(即去了suspend2),这凑合算是我第一个ebuild(嘻嘻!“窃取”了torres和Hauser的成果,在此感谢2位!):
...

是Hauser的成果,我不过是转帖而已。既然现在你也会写ebuild了,那2.6.19的patch出来,可要把新的ebuild贡献出来呀!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-14 12:14:07 | 显示全部楼层
哈哈!一定一定!只是我是教育网,上不了外网的,消息很闭塞,怕是等到我知道时,各位大侠早已动手了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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