讓RH4U4支持Reiserfs文件系統(tǒng)
讓RH4U4支持Reiserfs文件系統(tǒng) 由Linux系統(tǒng)中文網(wǎng)(Linux521.com)編輯收集整理,除Linux521注明原創(chuàng)文章外,其版權(quán)歸原作者所有。如果您在學(xué)習(xí)中遇到問題歡迎在下面的評(píng)論中留言,我們會(huì)盡全力解答您的問題。
讓RH4U4支持Reiserfs文件系統(tǒng)
*************************************************************************************************
本機(jī)環(huán)境:RHEL4u4(2.6.9-42)
需要的軟件包:
2.6.18支持reiserfs的補(bǔ)丁
wget [url]ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.18/reiser4-for-2.6.18-3.patch.gz[/url]
2.6.18內(nèi)核:
wget [url]http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2[/url]
you need to work with ReiserFS (mkreiserfs)
wget [url]ftp://ftp.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.19.tar.gz[/url]
(在安裝reiserfsprogs也有可能用到):
[url]ftp://ftp.namesys.com/pub/reiser4progs/libaal-1.0.5.tar.gz[/url]
**************************************************************************************************
實(shí)際的安裝步驟:
# cd /usr/src
# tar zxvf linux-2.6.18.tar.bz2
# cd linux-2.6.18
# cp ../reiser4-for-2.6.18-3.patch.gz /usr/src/linux-2.6.18
# gunzip -c reiser4-for-2.6.18-3.patch.gz | patch -p1
# cp /usr/src/kernels/2.6.9-42.EL-i686/.config /usr/src/linux-2.6.18
# make menuconfig
Code maturity level options--> Prompt for development and/or incomplete code/drivers
File systems--> Reiser4 (EXPERIMENTAL)
Reiserfs support-->Stats in /proc/fs/reiserfs
去掉Kernel hacking中的Use 4Kb for kernel stacks instead of 8Kb
# make
# make bzImage
# make modules
# make modules_install
# make install (這步會(huì)將你新編譯的內(nèi)核自動(dòng)寫到/etc/grub.conf中)
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18
# cd /boot
# mkinitrd /boot/initrd-2.6.18.img 2.6.18
基本上就OK了,重新引導(dǎo)系統(tǒng)進(jìn)入到新內(nèi)核中
(根據(jù)你的實(shí)際情況,操作下列步驟)
# tar -xzvf libaal-1.0.5.tar.gz
# cd libaal-1.0.5
# ./configure
# make
# make install
萬一你不幸看到這個(gè)錯(cuò)誤后,請(qǐng)不要慌張。你應(yīng)該重新啟動(dòng)計(jì)算機(jī),然后用舊內(nèi)核進(jìn)入。修改grub.conf文件在kernel (your new kernel)后面加上enforcing=0就可以了
如果是VFS:cannot load root=LABEL=/的錯(cuò)誤,也請(qǐng)你用舊內(nèi)核啟動(dòng),更改root=LABEL=/為root=/dev/sdan(這里看你安裝的分區(qū)數(shù)目來填)