- 论坛徽章:
- 0
|
解决RHEL5.2对FreeBSD的ufs文件系统的支持___望加精
1.编译内核,准备要编译的内核,版本要比当前系统要高。内核下载地址www.kernel.org/pub/linux。笔者当前内核版本是2.6.18.el5,升级内核版本选择2.6.26.6。
2. #cp linux-2.6.26.6.tar.gz /usr/src
3. #tar zxvf linux-2.6.26.6.tar.gz
4. #ln -s linux.2.6.26.6 linux
5. #pwd (确认当前工作目录在/usr/src/linux)
6. #make mrproper 清楚系统.*,.o的文件,上这一步一下编译很有可能失败。
7. #make menuconfig
添加如下选项的支持
Filesystems -> Miscellaneous filesystems ->
<*> UFS file system support (read only)
Filesystems -> Partition types ->
Advanced partition selection
PC BIOS (MSDOS partition tables) support
BSD disklabel (FreeBSD partition tables) support
8. #make dep
9. #make clean
10.#make modules
make
11.make install
12. #depmod -a 创建模块链接
13. #cp /usr/src/linux/System.map /boot/System.map-2.6.26.6
#cp /usr/src/linux/arch/x86/boot/bzImage /boot/vmlinuz
14. #cd boot
#net-kerner-pkg --mkinitrd --depmod --install 2.6.26.6
15. #vi /boot/grub/menu.lst ————修改grub配置文件
16. #reboot |
|