• 欢迎浏览“String me = Creater\忠实的资深Linux玩家;”,请文明浏览,理性发言,有侵犯你的权益请邮件我(creater@vip.qq.com).
  • 把任何的失败都当作一次尝试,不要自卑;把所有的成功都想成是一种幸运,不要自傲。
  •    2年前 (2016-12-30)  Linux Linux应用 |   抢沙发  9 
    文章评分 0 次,平均分 0.0

    遇到了一个安装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:~#

     

    除特别注明外,本站所有文章均为String me = "Creater\忠实的资深Linux玩家";原创,转载请注明出处来自http://unix8.net/home.php/5316.html

    关于

    发表评论

    暂无评论

    切换注册

    登录

    忘记密码 ?

    切换登录

    注册

    扫一扫二维码分享