[Ubuntu-zh] 请问怎么用 grub-install 命令建立一个启动U盘呢

依云 lilydjwg在gmail.com
星期二 五月 15 15:30:41 UTC 2012


我这里的版本是 --boot-directory。这个命令应该会自己复制 grub2 的文件过去
的。

你 fdisk -l /dev/sdb 看看分区表是不是有问题?

On Tue, May 15, 2012 at 07:43:53PM +0800, Yihuan Hau wrote:
> 我现在用的是grub2(ubuntu和debian都用grub2了),应该是:
> grub-install --root-directory=/mnt/tmp /dev/sdb
> 
> 都用过N多次了,装在一个32M大小的U盘上。
> 
> 在 12-5-15,杜宏羽<dongfengweixiao在gmail.com> 写道:
> > grub-install --boot-directory=/mnt /dev/sdb
> > 这个命令的解释是这样的
> >
> > grub-install --boot-directory=启动文件目录 启动设备
> >
> > 但是现在的问题是,你的U盘的根目录没有启动文件(grub的引导文件)
> >
> > 在 2012年5月15日星期二,chenchacha <1241824064在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 就不需要了。
> >> >

-- 
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
-- 
A: Because it obfuscates the reading.
Q: Why is top posting so bad?



关于邮件列表 ubuntu-zh 的更多信息