系统启动中initrd.img起什么作用?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#16

帖子 冲浪板 » 2008-08-22 15:04

有模块不假,但是,仅有模块可跑不起来,因为她里边还有初始化文件等等...等等...
不相信你就把她解开,然后file看看。

没听说过软盘上的linux?minilinux?文件系统就是这个,当然为了小型话还要改造一下下。
头像
sinyadvan
帖子: 724
注册时间: 2008-04-02 15:36
来自: O_O

#17

帖子 sinyadvan » 2008-08-22 16:30

冲浪板 写了:有模块不假,但是,仅有模块可跑不起来,因为她里边还有初始化文件等等...等等...
不相信你就把她解开,然后file看看。

没听说过软盘上的linux?minilinux?文件系统就是这个,当然为了小型话还要改造一下下。
当然要有初始化文件了,出门打酱油肯定要穿鞋啊。也可以不穿,全编译成内核啊。usb的linux系统是需要它的。
我说的不详细罢了,LZ要是真想深入就google了啊。文件系统怎么是软盘上的linux。LOOK:

代码: 全选

Definition1:
A directory structure contained within a disk drive or disk area. The total available disk space can be composed of one or more filesystems. A filesystem must be mounted before it can be accessed. To mount a filesystem, you must specify a directory to act as the mount point. Once mounted, any access to the mount point directory or its subdirectories will access the separate filesystem.

Definition2:
A method of organising files on a disk, eg NTFS, FAT,EXT,XFS,REISERFS.

Definition3:
A data structure or a collection of files. In Unix, filesystem can refer to two very distinct things, the directory tree or the arrangement of files on disk partitions.

Definition4:
the structure of files on a disk medium which is visible via the operating system, ie the structure of files which a Unix user can see using "ls" and other tools.

Definition5:
A software mechanism that defines the way that files are named, stored, organized, and accessed on logical volumes of partitioned memory.

Definition6:
In computing, a file system is a method for storing and organizing computer files and the data they contain to make it easy to find and access them. File systems may use a storage device such as a hard disk or CD-ROM and involve maintaining the physical location of the files, or they may be virtual and exist only as an access method for virtual data or for data over a network (e.g. NFS).
^o^ && O_O && ^_^
One World|One Dream|One Piece
愛 ^_^ 這個 美麗的世界O_O

本公司专治各种不服、不爽、谩骂、挑衅。
头像
fallleaf
帖子: 694
注册时间: 2006-12-29 20:13

#18

帖子 fallleaf » 2008-08-26 10:02

真郁闷,network还是不能自动配置,每次手动配置尽管不算麻烦,但让人感觉很不爽
在学习linux的道路上自在而行。
头像
foolegg
帖子: 249
注册时间: 2007-12-01 14:56

#19

帖子 foolegg » 2008-08-26 10:57

fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
还有:机子启动时configuring network interfaces总是failed,需要启动后手动sudo /etc/init.d/networking restart才能正常使用网络,是怎么回事?
可以修改/etc/rc.local
写在里面的命令会在启动gdm前,以root权限执行
我的cpufreq也有这样的问题,一定要自己rmmod,再重新modprobe后才能正常调节-__-

我的rc.local样本

代码: 全选

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


echo "access acpi-cpufreq"
rmmod acpi-cpufreq
modprobe acpi-cpufreq

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "done"

echo "mount ctexlive iso"
mount -o loop /home/foolegg/database/downloads/linux/iso/CTeXLive20051018.iso /home/foolegg/.ctexlive2005_bin
echo "done"

exit 0
回复