|
发表于 2005-11-23 08:54:55
|
显示全部楼层
Post by jiandaoxu
springwind426 --我大致明白你说的意思了,也觉得这个方法可行,但烦请把步骤说的详细些好吗?
怎样将那些模块写到/etc/mkinitrd/modules中呢?(能请你贴一个样例上来么?)
还有我mount -o loop /root/initrd.img-xxxx /mnt/tmp时,系统提示说没有定义文件系统的类型?
首先必须将craimfs,ext2,ext3编译进内核中(不能是模块)
cat /etc/mkinitrd/modules
# /etc/mkinitrd/modules: Kernel modules to load for initrd.
#
# This file should contain the names of kernel modules and their arguments
# (if any) that are needed to mount the root file system, one per line.
# Comments begin with a `#', and everything on the line after them are ignored.
#
# You must run mkinitrd(8) to effect this change.
#
# Examples:
#
# ext2
# wd io=0x300
vesafb
intelfb
i810fb
vga16fb
fbcon
usbcore
ide-core
scsi_mod
usb-storage
uhci-hcd
ehci-hcd
ohci-hcd
usbkbd
usbhid
piix
generic
ide-generic
ide-disk
sd_mod
sr_mod
cat /etc/mkinitrd/mkinitrd.conf
# /etc/mkinitrd/mkinitrd.conf:
# Configuration file for mkinitrd(8). See mkinitrd.conf(5).
#
# This file is meant to be parsed as a shell script.
# What modules to install.
MODULES=dep
# The length (in seconds) of the startup delay during which linuxrc may be
# interrupted.
DELAY=10
# If this is set to probe mkinitrd will try to figure out what's needed to
# mount the root file system. This is equivalent to the old PROBE=on setting.
ROOT=/dev/sda1
# This controls the permission of the resulting initrd image.
UMASK=022
# Command to generate the initrd image.
MKIMAGE='mkcramfs %s %s > /dev/null'
# Set this to yes if you want to use busybox(1).
BUSYBOX=no
# Set this to no if you want to disable /usr/share/initrd-tools/scripts.
PKGSCRIPTS=yes
# This is the value for LD_LIBRARY_PATH when deciding what goes onto the
# image.
INITRD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# Hardcode partition to resume from so it doesn't have to be specified
# on the command line. The command line will override this setting.
# RESUME=
注:这些是U盘启动时的配置信息,至于scsi启动我就不清楚了。 |
|