1 2 3 | bash# mkdir /ds47k_boot /ds47k_root bash# mount /dev/sdb2 /ds47k_root bash# mount /dev/sdb1 /ds47k_boot |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | bash# cd /ds47k_boot/grub bash# vi grub.conf bash# more /ds47k_boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-194.el5) with MPP support root (hd0,0) kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/sdb2 rhgb quiet initrd /mpp-2.6.18-194.el5.img |
1 2 3 4 5 6 7 8 9 10 | bash# cd /ds47k_root/etc/ bash# vi fstab bash# more fstab /dev/sdb2 / ext3 defaults 1 1 /dev/sdb1 /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/sdb3 swap swap defaults 0 0 |
1 2 3 4 5 6 7 8 9 10 11 12 | bash# cd /ds47k_boot/ bash# cp mpp-2.6.18-194.el5.img mpp-2.6.18-194.el5.img.bak bash# mkdir /sanboot bash# cd /sanboot bash# cp /ds47k_boot/mpp-2.6.18-194.el5.img ./initrd.gz bash# gunzip initrd.gz bash# ls initrd bash# mkdir tmp bash# cd tmp bash# cpio -id < ../initrd 16148 blocks |
1 2 3 4 5 6 7 8 9 | bash # cd /sanboot/tmp/ bash# ls bin dev etc init lib proc sbin sys sysroot var bash# cp init init.bak bash# vi init …… resume /dev/sdb3 echo Creating root device. mkrootdev -t ext3 -o defaults,ro sdb2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | bash# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb2 49G 2.5G 44G 6% / /dev/sdb1 99M 28M 66M 30% /boot tmpfs 7.9G 0 7.9G 0% /dev/shm bash# mppUtil -S H6C0T0 Active Active ARCDS48K96122 H0C0T0L000 Up H1C0T1L000 Up H6C0T1 Active Active ARCFT900A7382 H0C0T3L000 Up H1C0T2L000 Up Missing Arrays There are no missing arrays bash# fdisk -l Disk /dev/sda: 85.8 GB, 85899345920 bytes 255 heads, 63 sectors/track, 10443 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 6540 52428127+ 83 Linux /dev/sda3 6541 7584 8385930 82 Linux swap / Solaris Disk /dev/sdb: 91.2 GB, 91268055040 bytes 255 heads, 63 sectors/track, 11096 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 13 104391 83 Linux /dev/sdb2 14 6540 52428127+ 83 Linux /dev/sdb3 6541 7584 8385930 82 Linux swap / Solaris |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |