最近在弄一个Intel 的Desktop Board-D525MW, 在该主板上安装了几个操作系统如:OpenSUSE,CentOS,Trixbox/Elastix(均基于CentOS)等。但这个过程中出现了个小问题:
reboot之后,系统无法真正reboot。而是系统在卸载完所有的应用程序及服务的时候停止不动了。类似如
Please stand by file rebooting the system:
md: Stopping all md devices
Synchronizing SCSI cache for dish sda:
Restarting System.
....
解决方法是:在CentOS的/etc/grub.conf中添加reboot=b. 如:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title trixbox (2.6.18-128.1.10.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.10.el5 ro noht maxcpus=1 root=LABEL=/ reboot=b
或者在OpenSUSE的/boot/grub/menu.list中添加boot=b。如:
7 ##YaST - generic_mbr
8 gfxmenu (hd0,1)/boot/message
9 ##YaST - activate
10
11 ###Don't change this comment - YaST2 identifier: Original name: linux###
12 title Desktop -- openSUSE 11.4 - 2.6.37.1-1.2
13 root (hd0,1)
14 kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-Hitachi_HTS545016B9A300_100623PD6B0 0CXHLU1TB-part2 resume=/dev/disk/by-id/ata-Hitachi_HTS545016B9A300_100623PD6B00CXHLU1TB-part1 splash=silent quiet showopts vga=0x31a reboot=b
保存并退出。系统在下次启动后才会生效。如下附上reboot的参数及解释(来自互联网):
/* reboot=b | s | t | k | e [, arm | old] | p
54 warm Don't set the cold reboot flag
55 cold Set the cold reboot flag
56 bios Reboot by jumping through the BIOS (only for X86_32)
57 smp Reboot by executing reset on BSP or other CPU (only for X86_32)
58 triple Force a triple fault (init)
59 kbd Use the keyboard controller. cold reset (default)
60 acpi Use the RESET_REG in the FADT
61 efi Use efi reset_system runtime service
62 pci Use the so-called "PCI reset register", CF9
63 force Avoid anything that could hang.
该方法在OpenSUSE-11.4/CentOS-5.7/Trixbox-2.6.2.3/Elastix-2.2.0/Elastix-2.0.4/Elastix-1.6.0中测试通过。
Cheers!
Website: www.voipevents.com