我现在用的是grub2(ubuntu和debian都用grub2了),应该是:
grub-install --root-directory=/mnt/tmp /dev/sdb

都用过N多次了,装在一个32M大小的U盘上。

在 12-5-15,杜宏羽<dongfengweix...@gmail.com> 写道:
> grub-install --boot-directory=/mnt /dev/sdb
> 这个命令的解释是这样的
>
> grub-install --boot-directory=启动文件目录 启动设备
>
> 但是现在的问题是,你的U盘的根目录没有启动文件(grub的引导文件)
>
> 在 2012年5月15日星期二,chenchacha <1241824...@qq.com> 写道:
>
>> 我的方法是这样的:
>> 首先把U盘挂载到 /mnt/tmp 目录下
>>        sudo mount /dev/sdb2 /mnt/tmp
>> 然后安装 grub
>>        grub-install --boot-directory=/mnt/tmp /dev/sdb
>>
>> 之后它就报错:
>>        /usr/sbin/grub-setup:错误:will not proceed with blocklists
>>
>>
>> 于 2012年05月15日 18:53, 依云 写道:
>> > On Tue, May 15, 2012 at 05:48:00PM +0800, chenchacha wrote:
>> >> 如题,我照着网上的方法将 fdisk, mkfs, grub-install 命令轮流用了个遍,却
>> >> 依然不成功。
>> >>
>> >> 最常见的错误是: “will not proceed with blocklists”, 或者是“无法嵌入,
>> >> 但在跨盘安装时是必须的”
>> >>
>> >> 请问应该怎么做呢?
>> >
>> > 你是怎么安装的?我记得我是这么装的:
>> >
>> > grub-install --boot-directory=/mnt /dev/sdb
>> >
>> > 你是不是把它装到分区里了?
>> >
>> > fdisk 是分区用的,U 盘没必要。另外 cfdisk 的界面就好多了,gparted 就更好
>> > 了,但是它们不支持 GPT。
>> >
>> > mkfs 是格式化用的。如果你用 gparted 就不需要了。
>> >
>>
>>
>> --
>> ubuntu-zh mailing list
>> ubuntu-zh@lists.ubuntu.com <javascript:;>
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>
> -------------- 下一部分 --------------
> 一个HTML附件被移除...
> URL:
> <https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20120515/4d51b570/attachment.html>
> --
> ubuntu-zh mailing list
> ubuntu-zh@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>


-- 
郝以环
QQ:395559102
TEL:18279286007
-- 
ubuntu-zh mailing list
ubuntu-zh@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh

回复