做过这样的 尝试 但是 在设置好root后, 进入不了U盘内部,即设置linux 等时  按tab, 无任何输出,在hd1上, 而设置root在hd0上确可以看到分区内容。<br><br>还有,昨天说的,在装好reflend 后, 关于制作u盘启动的,经过尝试发现,在ubuntu12.04上用启动盘创建的ubuntu12.04的u盘启动盘才能被识别,我试着做一个deppin的 却在macbook 下识别不了,在windows下用ULTRAISO 也是识别不了,不清楚其中的区别。<br>
<br>在 2012年5月12日 上午6:58,Ryan Feng <span dir="ltr"><<a href="mailto:odayfans@gmail.com" target="_blank">odayfans@gmail.com</a>></span>写道:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>2012/5/10 minhua sun <<a href="mailto:asmh1989@gmail.com" target="_blank">asmh1989@gmail.com</a>><br>

<br>
> 按着这个教程<a href="https://help.ubuntu.com/community/UEFIBooting" target="_blank">https://help.ubuntu.com/community/UEFIBooting</a><br>
> 编译了一个grub.efi,把它放入了 mac 下的<br>
> efi/grub下了,启动的时候refilt也能识别出grub了,但里进去以后,里面空白,是应该要自己编写grub.cfg..<br>
><br>
> 教程里面这样写<br>
><br>
> menuentry "Linux (with bios dump)" {  search --file --no-floppy<br>
> --set=root /vmlinuz  loadbios /boot/vbios.bin /boot/int10.bin  linux<br>
> /vmlinuz root=/dev/sda3 video=efifb  initrd /initrd.img}menuentry<br>
> "Linux (with bios dump and fix video)" {  search --file --no-floppy<br>
> --set=root /vmlinuz  fix_video  loadbios /boot/vbios.bin<br>
> /boot/int10.bin  linux /vmlinuz root=/dev/sda3 video=efifb  initrd<br>
> /initrd.img}menuentry "Linux (without bios dump)" {  search --file<br>
> --no-floppy --set=root /vmlinuz  fakebios  linux /vmlinuz<br>
> root=/dev/sda3 video=efifb  initrd /initrd.img}<br>
><br>
> 分为好几种,而我现在要启动u盘里面的系统,那应该怎么设置,直接该root=? 但这里我不清楚U盘是多少<br>
> 在grub的命令模式下: 有hd0 和 hd1  那我这里应该怎么写。 还是需要一个以安装的系统比如一个移动硬盘?<br>
><br>
</div>> grub下只能看到hd0, hd1之类的名字, 一般对应 /dev/sda, /dev/sdb<br>
(hd0,0) 对应/dev/sda1, (hd1,0)对应 /dev/sdb1, 以此类推, 但是不能保证一定是这样,<br>
可以通过补全看看分区下有哪些文件来判断<br>
<br>
注意内核参数里的root和grub命令里的root不一样,前者是用linux的设备路径/dev/sda1等,后者是(hd0,0)的格式<br>
你要先在grub里set root=(hd0,1) 这样来选择分区,然后linux /boot/vmlinuz ... 来加载内核,然后initrd<br>
/boot/initrd.img 加载initrd, 之后boot来启动<br>
<br>
grub里默认是用搜索的办法,也可以用uuid等来确定根分区<br>
-------------- 下一部分 --------------<br>
一个HTML附件被移除...<br>
URL: <<a href="https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20120511/b585903c/attachment.html" target="_blank">https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20120511/b585903c/attachment.html</a>><br>


<div><div>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com" target="_blank">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
</div></div></blockquote></div><br>