求教.iso文件直接起动
Tofloor
poster avatar
ir0nman
deepin
2014-05-26 22:07
Author
如题
我想在U盘里直接起动deepin_2014_alpha_zh-hans_amd64.iso
请问grldr里的代码怎么写
Reply Favorite View the author
All Replies
xingtianduiyue
deepin
2014-05-26 22:15
#1
参考http://www.linuxdeepin.com/forum/25/18199
不过我试过,Deepin 2013、Ubuntu 14.04、RHEL 6.4这种方法都可以,而Deepin 2014却提示磁盘I/O错误,不晓得问题出在哪。
Reply View the author
ir0nman
deepin
2014-05-26 23:11
#2
请问,用UNetbootin写入U盘之后,如下代码:
title 【03】 运行 CDlinux
find --set-root /CDlinux/bzImage
kernel /CDlinux/bzImage CDL_DEV=hd0 CDL_LANG=zh_CN.UTF-8
initrd /CDlinux/initrd
Boot
是否可以启动linux,或者说,怎么启动casper里面的文件,deepin_2014_alpha_zh-hans_amd64.iso中没有cdlinux,只有哦一个isolinux
Reply View the author
xingtianduiyue
deepin
2014-05-27 02:19
#3
在U盘根目录下建立deepin文件夹,从deepin_2014_alpha_zh-hans_amd64.iso中提取vmlinuz、initrd.lz两个文件(在casper文件夹里)放到deepin文件夹内,再将deepin_2014_alpha_zh-hans_amd64.iso也拷贝到deepin文件夹中。
修改menu.lst
  1. title LinuxDeepin_x64
  2. find --set-root /deepin/vmlinuz
  3. kernel /deepin/vmlinuz boot=casper iso-scan/filename=/deepin/deepin_2014_alpha_zh-hans_amd64.iso locale=zh_CN.UTF-8
  4. initrd /deepin/initrd.lz
Copy the Code

大致这样吧,没实验
Reply View the author
ArthurDeepin
deepin
2014-05-27 02:29
#4
楼上正确!
楼主为什么用UNetbootin制作U盘后还要用grldr,分这么多段干嘛。
如果想直接在U盘里起动ISO镜像文件,先开始就不要解包。可以这样做:
1.用bootice在U盘主引导区MBR写入GRUB4DOS
2.然后U盘根目录放入grldr和menu.lst文件
3.将ISO镜像直接复制到U盘的根目录或任意文件夹,并提取镜像中casper中的initrd.lz、vmlinuz放在一起。
4.编辑menu.lst文件(给你一个多系统共存完整版,包括win8):
  1. default 0
  2. timeout 10
  3. title >> windows8.1_cn
  4. find --set-root /bootmgr
  5. chainloader /bootmgr
  6. boot
  7. title >> Deepin_2013.1
  8. root (hd0,0)
  9. kernel (hd0,0)/deepin/vmlinuz boot=casper iso-scan/filename=/deepin/deepin_2013.1_zh-hans_i386.iso ro locale=zh_CN.UTF-8
  10. initrd (hd0,0)/deepin/initrd.lz
  11. title >> deepin-2014-bate
  12. root (hd0,0)
  13. kernel (hd0,0)/deepin2014/vmlinuz boot=casper iso-scan/filename=/deepin2014/deepin-desktop-i386.iso ro locale=zh_CN.UTF-8
  14. initrd (hd0,0)/deepin2014/initrd.lz
  15. title >> Linuxmint-16-cinnamon-dvd-32bit
  16. root (hd0,0)
  17. kernel (hd0,0)/mint/vmlinuz boot=casper iso-scan/filename=/mint/linuxmint-16-cinnamon-dvd-32bit.iso ro locale=zh_CN.UTF-8
  18. initrd (hd0,0)/mint/initrd.lz
  19. title >> ubuntukylin-13.10-desktop-i386
  20. root (hd0,0)
  21. kernel (hd0,0)/ubuntu/vmlinuz boot=casper iso-scan/filename=/ubuntu/ubuntukylin-13.10-desktop-i386.iso ro locale=zh_CN.UTF-8
  22. initrd (hd0,0)/ubuntu/initrd.lz
  23. title reboot
  24. reboot
  25. title shutdown
  26. halt
Copy the Code
win8镜像要解包散放到U盘根目录(win7相同,win8的bootmgr.efi在U盘根目录下可以自动启动)。
Reply View the author
xliang9550
deepin
2014-05-27 02:43
#5
win8镜像要解包散放到U盘根目录(win7相同,win8的bootmgr.efi在U盘根目录下可以自动启动)。

这个好像还取决于主板的UEFI实施(implementation),本人制作64位Vista/7/8.x安装盘的方式仍然是采用USB-HDD+镜像写入的方式,然后再复制相应的efi文件,这样制作出来的U盘既支持UEFI又支持BIOS。根目录下放置一个shellx64.efi,而将bootm***.efi放在/efi/boot下面。

另外还尝试过简单的方式创建多合一启动盘,不过efi安装程序不能识别相对路径,没有成功。
Reply View the author
ArthurDeepin
deepin
2014-05-27 02:47
#6
[quote]win8镜像要解包散放到U盘根目录(win7相同,win8的bootmgr.efi在U盘根目录下可以自动启动)。

这个好像还取决于主板的UEFI实施(implementation),本人制作64位Vista/7/8.x安装盘的方式仍然是采用USB-HDD+镜像写入的方式,然后再复制相应的efi文件,这样制作出来的U盘既支持UEFI又支持BIOS。根目录下放置一个shellx64.efi,而将bootm***.efi放在/efi/boot下面。

另外还尝试过简单的方式创建多合一启动盘,不过efi安装程序不能识别相对路径,没有成功。[/quote]
对,是这样的,用上面的方法之后,如果主板支持uefi,那么插上U盘后开机会自动进入win8的安装(bootmgr.efi),如果不支持,可以手动选择U盘启动,这样会进入grub引导界面,可以开始win8一般的安装(bootmgr)和其他系统的安装。
Reply View the author