Install grub with multiple partition labels error

2016年12月30日 由 Creater 留言 »

遇到了一个安装grub的错误:

root@bcat:~# grub-install /dev/sdc
    Installing for i386-pc platform.
    grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
    grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists
are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

执行以下指令

dd if=/dev/zero of=/dev/sdc seek=1 count=2047 bs=1b

这个命令会在磁盘的开始写入1M的zero,由于Linux下使用fdisk进行分区时会空出前2048个块,
所以执行这个命令不会影响现有的数据,执行完毕后,grub可以顺利安装

root@bcat:~# grub-install /dev/sdc
    Installing for i386-pc platform.
    Installation finished. No error reported.
    root@bcat:~#

广告位

发表评论

你必须 登陆 方可发表评论.