ubuntu 11.04 GRUB 重写到系统盘"/"失败
发表于 : 2011-07-06 16:47
由于想学习DSDT制作,看了论坛高手的文章以后,需要使用linux系统获取DSDT相关信息(声卡驱动)。
Step1:安装了ubuntu 11.04,安装完毕后,系统有win7(64bit) + ubuntu(11.04),mbr于是变成了grub。
Step2:由于需要变色龙,所以我不能让grub占领引导区,win7启动盘,dos模式: bootrec /fixmbr。mbr回来了。
Setp3:变色龙找不到ubuntu系统,需要把ubuntu grub2重写进ubuntu系统盘。于是使用liveCD模式启动进入ubuntu
sudo -i
mount /dev/sda6(这个是偶滴ubuntu系统盘) /mnt
chroot /mnt
grub-install --boot-directory=/mnt /dev/sda6(说明一下:ubuntu 11.04的grub-install命令把原来的root改成boot了不是我打错了)
Step4:悲剧就这样产生了,无论如何,系统都提示操作失败:
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error:will not proceed with blocklists.
这句该死的红字就出来了!
第三句网上查到的帖子写的都会变成:Installation finished. No error reported.我却从来没有体验过这样的快乐。
求助高手相助如何解决啊?!!!!!!!!!!!!!!!!!!!!!!!!
感激万分!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
另外说明:grub2支持重写mbr或者pbr两种方式,重写mbr就直接把硬盘的主引导区干掉了,这种方式使用命令grub-install /dev/sda就可以了,这种我是可以成功的。
但是grub2也支持写pbr这种方式,就是写入逻辑盘的引导区,这样的话,变色龙就能找到ubuntu了。
Step1:安装了ubuntu 11.04,安装完毕后,系统有win7(64bit) + ubuntu(11.04),mbr于是变成了grub。
Step2:由于需要变色龙,所以我不能让grub占领引导区,win7启动盘,dos模式: bootrec /fixmbr。mbr回来了。
Setp3:变色龙找不到ubuntu系统,需要把ubuntu grub2重写进ubuntu系统盘。于是使用liveCD模式启动进入ubuntu
sudo -i
mount /dev/sda6(这个是偶滴ubuntu系统盘) /mnt
chroot /mnt
grub-install --boot-directory=/mnt /dev/sda6(说明一下:ubuntu 11.04的grub-install命令把原来的root改成boot了不是我打错了)
Step4:悲剧就这样产生了,无论如何,系统都提示操作失败:
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error:will not proceed with blocklists.
这句该死的红字就出来了!
第三句网上查到的帖子写的都会变成:Installation finished. No error reported.我却从来没有体验过这样的快乐。
求助高手相助如何解决啊?!!!!!!!!!!!!!!!!!!!!!!!!
感激万分!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
另外说明:grub2支持重写mbr或者pbr两种方式,重写mbr就直接把硬盘的主引导区干掉了,这种方式使用命令grub-install /dev/sda就可以了,这种我是可以成功的。
但是grub2也支持写pbr这种方式,就是写入逻辑盘的引导区,这样的话,变色龙就能找到ubuntu了。