ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Ubuntu

ÇóÖú ubuntuµÄgrub¶ªÊ§

·¢²¼Ê±¼ä:2012-08-02 14:07:44À´Ô´:ºìÁª×÷Õß:catcatsai
ÇóÖú£¬ÒÔÇ°µÄubuntuµÄgrub½çÃæÓÉÓÚijÖÖÔ­Òò²»¼ûÁË£¬ÎÒ°´ÍøÉϵĽ̳Ì×öÈ¥Õһأ¬µ«ÊÇÓöµ½ÁËÂé·³
Çó½â
ÓÃubuntu isoÆô¶¯
1.ʹÓÃLiveCDÆô¶¯µçÄÔ
2.´ò¿ªÖÕ¶Ë
3¡¢²éѯubuntuËùÔÚ·ÖÇø
4¡¢µÃµ½rootȨÏÞ
sudo -i
½Ó×ÅÊäÈëmkdir /media/ubuntu£¨ÕâÀïÓÃÓÚ´´½¨Ò»¸öÎļþ¼Ðubuntu£¬ÓÃÓÚ¹ÒÔظղŵÄsda1£¬´ËÎļþ¼ÐÃû³ÆÄã¿ÉÒÔÒÀ¸öÈË°®ºÃ¶ø¶¨£¬Ã»ÓÐÌ«¶àÒªÇó£©
mount /dev/sda1 /media/ubuntu£¨½«sda1¹ÒÔØÓÚubuntuÎļþ¼ÐÏ£©
ÏÂÃæ½øÈëÁ˱¾´Î»Ö¸´×îΪ¹Ø¼üºÍ¼¤¶¯ÈËÐĵÄʱ¿Ì£¬ÔÚÖÕ¶ËÊäÈëÒÔÏÂÃüÁ
grub-install --root-directory=/media/ubuntu /dev/sda


¾ÍÔÚ×îºóÒ»²½³ö´íÏÔʾ/usr/sbin/grub-probe:error cannot find a device for /boot/grub£¿

how to solve it ? thank you
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. Ïà˼°®ÎÄ ÓÚ 2012-08-02 23:28:20·¢±í:

    chroot /media/ubuntu
    Ö®ºóÔÙÖØ×°grub