当前位置: 技术问答>linux和unix
升级(编译)内核后grub.conf应该怎么改?没有用lilo. initrd-2.4.7-20.img怎样生成?
来源: 互联网 发布时间:2015-01-26
本文导语: 各位好,给大家拜年了. 为了在Redhat7.2上装oracle817,改shmmax和sem. 原Redhat7.2的内核是2.4.7-10,下载了2.4.7-20的内核源码, /usr/src/linux-2.4.20/#make xconfig /usr/src/linux-2.4.20/#make dep /usr/src/linux-2.4.20/#make clean /usr/src/linux-2.4.20/#make b...
各位好,给大家拜年了.
为了在Redhat7.2上装oracle817,改shmmax和sem.
原Redhat7.2的内核是2.4.7-10,下载了2.4.7-20的内核源码,
/usr/src/linux-2.4.20/#make xconfig
/usr/src/linux-2.4.20/#make dep
/usr/src/linux-2.4.20/#make clean
/usr/src/linux-2.4.20/#make bzImage
/usr/src/linux-2.4.20/#make modules
/usr/src/linux-2.4.20/#make modules_install
#cp /usr/src/linux-2.4.20/arch/i386/boot/bzImage /boot/bzImage.myker.20030205
#more /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-20)
root (hd0,2)
kernel /bzImage.myker.20030205 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
title Win2000 Sever
rootnoverify (hd0,1)
cHAinloader +1
title Red Hat Linux (2.4.7-10)bak(以防万一用)
root (hd0,2)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
症状1:Win2000 Sever不能进了,我欲哭无泪.
问题1:怎样做能同时进Win2000 Sever和Redhat?
问题2:与新内核对应的”initrd /initrd-2.4.7-20.img”(initrd-2.4.7-20.img文件)应该怎样生成?
为了在Redhat7.2上装oracle817,改shmmax和sem.
原Redhat7.2的内核是2.4.7-10,下载了2.4.7-20的内核源码,
/usr/src/linux-2.4.20/#make xconfig
/usr/src/linux-2.4.20/#make dep
/usr/src/linux-2.4.20/#make clean
/usr/src/linux-2.4.20/#make bzImage
/usr/src/linux-2.4.20/#make modules
/usr/src/linux-2.4.20/#make modules_install
#cp /usr/src/linux-2.4.20/arch/i386/boot/bzImage /boot/bzImage.myker.20030205
#more /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-20)
root (hd0,2)
kernel /bzImage.myker.20030205 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
title Win2000 Sever
rootnoverify (hd0,1)
cHAinloader +1
title Red Hat Linux (2.4.7-10)bak(以防万一用)
root (hd0,2)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda5
initrd /initrd-2.4.7-10.img
症状1:Win2000 Sever不能进了,我欲哭无泪.
问题1:怎样做能同时进Win2000 Sever和Redhat?
问题2:与新内核对应的”initrd /initrd-2.4.7-20.img”(initrd-2.4.7-20.img文件)应该怎样生成?
|
mkinitrd /boot/initrd-2.4.7-20.img (2.4.7)
扩号中的是你升级后的内核版本号
扩号中的是你升级后的内核版本号