[quote:b6bd8e0a4f="serry"]if system is load by linux,that grub is install in mbr.
happy![/quote]
这可不一定,如果grub安装在活动分区的首扇区,那么mbr也可以用win的那种引导,因为win的引导通常是由mbr引向活动分区的首扇区,这种情况下也是grub为引导器,但没安装在mbr
if `grep -a GRUB hd.img &> /dev/null`; then
echo "Yeah! Grub is installed on your MBR";
else
echo "Your GRUB is installed on:";
fdisk -l /dev/cciss/c0d0 | grep '*' | tail -n 1;
fi[/code:1]