LinuxÒÁµéÔ°ÂÛ̳'s Archiver

passionone ·¢±íÓÚ 2006-3-21 17:17

Çë½ÌÄں˱àÒëÎÊÌâ

ÎÒÔÚÐéÄâ»úÉϰ²×°ÁËRed Hat 9.0(linux-2.4.20-8) ÏÂÔØÁËlinux-2.6.0.tar.gz
°´ÕÕÒ»°ãµÄ·½·¨±àÒëÄÚºË Ò²Éú³ÉÁËbzImage ºÍ System.map Îļþ °´ÕÕÌáʾ
¸´ÖƵ½Ö¸¶¨µÄλÖã¨/boot£©²¢ÔÚ/bootϽ¨Á¢ÁËinitrd-2.6.0.imgÎļþ Õâһ·¶¼Ã»ÓÐÎÊÌâ
ÎÒµÄ/bootĿ¼ÏµÄÎļþÈçÏ£º
///////////////////////////////////////////////////////////////
boot.b initrd-2.6.0.img module-info System.map-2.6.0
chain.b kernel.h module-info-2.4.20-8 vmlinux-2.4.20-8
config-2.4.20-8 lost+found os2_d.b vmlinuz
grub message System.map vmlinuz-2.4.20-8
initrd-2.4.20-8.img message.ja System.map-2.4.20-8 vmlinuz-2.6.0


/////////////////////////////////////////////////////////////////////////
Ñ¡Ôñlinux-2.4.20-8¿ÉÒÔÕý³£Æô¶¯ ¿ÉÊÇ
Ñ¡Ôñlinux-2.6.0 Æô¶¯ºóÏÔʾµÄ´íÎóÈçÏÂ:
////////////////////////////////////////////////////////////////
pivotrootivot_root(/sysroot,/sysroot/initrd) failed :2
UMount /initrd/proc failed :2
Kernel panic :No init found ,Try passing init = option to kernel
//////////////////////////////////////////////////////////////////
³¢ÊÔÁ˸÷ÖÖ°ì·¨ ÔõôҲûÓÐͨ¹ý Ï£Íû¸ßÊÖÄÜÖ¸µãÃÔ½ò ¸Ð¶÷²»¾¡£¡
¸½£ºÎÒµÄÓÊÏä[email="passionone11@163.com"]passionone11@163.com[/email]
ÎÒµÄÓ²ÅÌÊÇIDEµÄ
ϱßÊÇÎÒµÄgrubÎļþ£¨ÎÒÐ޸Ĺý£©
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
color light-blue/red
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img

title Red Hat Linux (2.6.0)
root(hd0,0)
kernel /vmlinuz-2.6.0 ro root=LABEL=/
initrd /initrd-2.6.0.img


ϱßÊǵĵÄfstab Îļþ£¨ÏµÍ³×Ô´ø£©
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0



ϱßÊÇÎÒÓÃfdisk -lÃüÁîÏÔʾµÄÐÅÏ¢
Disk /dev/hda: 18.8 GB, 18897856000 bytes
255 heads, 63 sectors/track, 2297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2249 17960670 83 Linux
/dev/hda3 2250 2297 385560 82 Linux swap



ϱßÊÇÎÒµÄinittabÎļþ£¨ÏµÍ³×Ô´ø£©
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <[email="miquels@drinkel.nl.mugnet.org"]miquels@drinkel.nl.mugnet.org[/email]>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0ait:/etc/rc.d/rc 0
l1:1ait:/etc/rc.d/rc 1
l2:2ait:/etc/rc.d/rc 2
l3:3ait:/etc/rc.d/rc 3
l4:4ait:/etc/rc.d/rc 4
l5:5ait:/etc/rc.d/rc 5
l6:6ait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf:owerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345owerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.