系统启动中initrd.img起什么作用?
发表于 : 2008-08-22 12:42
我知道vmlinux是压缩的内核,initrd.img是做什么的?
sudo ****fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
……我晕……我都说了是自动……后代 写了:sudo ****fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
00fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
还有:机子启动时configuring network interfaces总是failed,需要启动后手动sudo /etc/init.d/networking restart才能正常使用网络,是怎么回事?
要是/etc/network/interfaces没置好为啥sudo /etc/init.d/networking restart能成功?sinyadvan 写了:方法1.会话fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
还有:机子启动时configuring network interfaces总是failed,需要启动后手动sudo /etc/init.d/networking restart才能正常使用网络,是怎么回事?
方法2.写个脚本,命名为S*,例如:S97startnetwork。把它放到/etc/rc2.d。这个2是用who -r查到的运行级。
你的第二个问题,可能是/etc/network/interfaces没没置好
00fallleaf 写了:sinyadvan 写了:fallleaf 写了:另:如果我想在机子启动时就以root身份自动运行一个命令“XXX”,该怎么做?
还有:机子启动时configuring network interfaces总是failed,需要启动后手动sudo /etc/init.d/networking restart才能正常使用网络,是怎么回事?
代码: 全选
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
# The primary network interface
iface eth0 inet dhcp
auto eth0
00fallleaf 写了:为啥我主贴里的问题没人回?
咳咳,说来话长哦~~fallleaf 写了:为啥我主贴里的问题没人回?
去查查书,弄个笔记在这块。要是继续忽悠人家,不给你挂牌就说不过去咯。sinyadvan 写了:模块的压缩包fallleaf 写了:为啥我主贴里的问题没人回?