1 2 3 4 5 6 7 8 9 | bash# cp /ds8k_boot/initrd-2.6.18-194.el5.img \ /ds8k_boot/initrd-2.6.18-194.el5.img.bak bash# mkdir /sanboot bash# cd /sanboot/ bash# cp /ds8k_boot/initrd-2.6.18-194.el5.img ./initrd.gz bash# gunzip initrd.gz bash# mkdir tmp bash# cd tmp bash# cpio – id < ../initrd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | bash# cd /sanboot/tmp bash# cp init init.bak bash# vi init …… echo Scanning and configuring dmraid supported devices resume /dev/mapper/mpath1p3 echo Creating root device. mkrootdev -t ext3 -o defaults,ro /dev/mapper/mpath1p2 echo Mounting root filesystem. mount /sysroot echo Setting up other filesystems. setuproot echo Switching to new root and running init. Switchroot |
1 2 3 4 5 | bash# cd /sanboot/tmp bash# find . | cpio – create – format= ’ newc ’ > /sanboot/newinitrd bash# cd /sanboot bash# gzip newinitrd bash# cp newinitrd.gz /ds8k_boot/initrd-2.6.18-194.el5.img |
1 2 3 4 | bash# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/mpath1p2 39G 3.0G 34G 9% / /dev/mapper/mpath1p1 99M 22M 72M 24% /boot |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |