随风看海es1024.blog.chinaunix.net
es1024
全部博文(76)
shell(10)
Radhat(2)
Note(10)
bus-dev(0)
2010年(58)
2009年(18)
格伯纳
blue_jui
kkx1988
cccdbmw
wuhui_20
ablist
foxrocky
haooooaa
wyg2cxy
分类:
2010-03-23 11:33:43
[root@jli jli]# cat init #!/bin/nash mount -t proc /proc /proc setquiet echo Mounted /proc filesystem echo Mounting sysfs mount -t sysfs none /sys echo Creating /dev mount -o mode=0755 -t tmpfs none /dev mknod /dev/console c 5 1 mknod /dev/null c 1 3 mknod /dev/zero c 1 5 mkdir /dev/pts mkdir /dev/shm echo Starting udev /sbin/udevstart echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug echo Loading scsi_mod.ko module insmod /lib/scsi_mod.ko echo Loading sd_mod.ko module insmod /lib/sd_mod.ko echo Loading mptbase.ko module insmod /lib/mptbase.ko echo Loading mptscsi.ko module insmod /lib/mptscsi.ko echo Loading mptspi.ko module insmod /lib/mptspi.ko echo Loading mptsas.ko module insmod /lib/mptsas.ko echo Loading mptscsih.ko module insmod /lib/mptscsih.ko echo Loading megaraid_sas.ko module insmod /lib/megaraid_sas.ko echo Loading jbd.ko module insmod /lib/jbd.ko echo Loading ext3.ko module insmod /lib/ext3.ko /sbin/udevstart echo Creating root device mkrootdev /dev/root umount /sys echo Mounting root filesystem mount -o defaults --ro -t ext3 /dev/root /sysroot mount -t tmpfs --bind /dev /sysroot/dev echo Switching to new root switchroot /sysroot umount /initrd/dev
上一篇:从vmlinuz解压vmlinux的一个方法
下一篇:从XXX航航班延误看软件风险管理
登录 注册