无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 6150|回复: 13
打印 上一主题 下一主题

折腾到半夜,仍旧没有解决grub引导ISO的问题

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-11 04:51:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的一个移动硬盘,分成三个区,暂时称为1、2、3;
1分15G,为主分区,装GURB4DOS引导并且已经有了2个PE自己加入了一些软件且正常使用。并且放置了大量的GHO文件和ISO文件。
2区为逻辑分区,75G,放置各种软件。
3区为逻辑分区,4G,解压缩了一个win7的系统在那里,刚好用完。
所有分区格式都是NTFS。
我想用grub来引导ISO启动Ubuntu和bt4prefinalbones光盘,但是怎么试都是失败。
几乎google得到的都试过了。
特来请教给为大大们有没有什么比较好用的方法可以实现引导iso,或者不用grub4dos有没有方法?


下面这个菜单是正常使用的。
  1. default 0
  2. timeout 30

  3. fontfile /boot/fonts.gz
  4. splashimage /boot/bj2008.gz

  5. title ☆深度技术论坛<USB硬盘>维护和Ghost工具☆ 2007.07
  6. clear
  7. title ──────────────────────────────────  
  8. clear

  9. title 【1】自动搜索和恢复深度万能克隆快速装机系统(特定GHO文件存放在FAT分区)
  10. find --set-root /io.sys
  11. chainloader /io.sys


  12. title 【2】启动 GHOST 11 手动操作功能 (GHO文件存放在NTFS分区请使用这个选项)
  13. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  14. initrd /boot/ghost11.img

  15. title ──────────────────────────────────
  16. clear

  17. title 【3】启动深度技术 WinPE 维护系统
  18. chainloader /LDRXPE (hd0)+1

  19. title 【4】启动 XUSBOOT 中文DOS维护工具
  20. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  21. initrd /boot/xusboot.img

  22. title 【5】启动 PQMAGIC 8.05 中文版分区工具
  23. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  24. initrd /boot/pm805.IMG

  25. title 【P】天意 PE (支持96M内存)
  26. find --set-root /TYPE/SETUPLDR.BIN
  27. chainloader /TYPE/SETUPLDR.BIN (hd0)+1


  28. title ──────────────────────────────────
  29. clear

  30. title 【6】启动本机硬盘的 WINDOWS NT/2003/XP 系统
  31. map (hd0) (hd1)
  32. map (hd1) (hd0)
  33. root (hd1,0)
  34. chainloader (hd1,0)+1
  35. boot
  36. rootnoverify (hd1,0)
  37. chainloader +1

  38. title 【7】启动本机硬盘上 Vista/Windows7 系统(如果存在)
  39. find --set-root /bootmgr
  40. chainloader /bootmgr

  41. title 【8】从光盘启动
  42. cdrom --init
  43. map --hook
  44. chainloader (cd0)
  45. boot

  46. title 【9】重启计算机
  47. reboot

  48. title 【10】关闭计算机
  49. halt
复制代码

[ 本帖最后由 binghe 于 2010-1-11 04:52 编辑 ]
2#
 楼主| 发表于 2010-1-11 04:53:53 | 只看该作者
这个是我改过的。<br />启动深度DeepinXP-V4精简版这个可以引导成功,但是我只是拿那个做实验。因为我要引导的是基于linux的。

引用部分是我从bt4的光盘里面那个menu.lst  copy出来的。。
光盘目录:
M就是我移动硬盘的第一个分区,也就是主分区。另外,这个列表太长了,一些正常的,不影响了解目录结构的我都删掉了。。
M:.
│  DeepinXP-V4.iso
│  grldr
│  grldr.mbr
│  initrd.gz
│  Ubuntu1004.iso
│  vmlinuz
│  menu.lst
   
│  
├─.disk
│      base_installable
│      casper-uuid-generic
│      cd_type
│      info
│      release_notes_url
│      
├─BT4
│  │  boot.catalog
│  │  bt4cn.iso
│  │  md5sum.txt
│  │  menu.lst
│  │  
│  ├─boot
│  │  │  bootsplash
│  │  │  initrd.gz
│  │  │  initrd800.gz
│  │  │  initrdfr.gz
│  │  │  memtest86+.bin
│  │  │  vmlinuz
│  │  │  
│  │  └─grub
│  │          bt4.xpm.gz
│  │          menu.lst
│  │          stage2_eltorito
│  │         
│  └─casper
│          filesystem.manifest
│          filesystem.manifest-desktop
│          filesystem.squashfs
│              
│─boot



title      Start BackTrack FrameBuffer (1024x768)
root (hd0,3)
kernel (hd0,3)/BT4/boot/vmlinuz from=BT4 BOOT=casper boot=casper
nopersistent rw quiet vga=0x317
initrd (hd0,0)/BT4/boot/initrd.gz

title      Start BackTrack FrameBuffer (800x600)
root (hd0,0)
kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 BOOT=casper boot=casper
nopersistent rw quiet vga=0x314
initrd (hd0,0)/BT4/boot/initrd800.gz

title Blacktrack 4
root (hd0,0)

kernel /BT4/boot/vmlinuz max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6666 from=BT4 root=/dev/ram0 rw
initrd /BT4/boot/initrd.gz

title     Boot BackTrack 4

kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 root=/dev/ram0     vga=791

initrd (hd0,0)/BT4/boot/initrd.gz



  1. default 0
  2. timeout 30

  3. fontfile /boot/fonts.gz
  4. splashimage /boot/bj2008.gz
  5. splashimage=/BT4/boot/grub/bt4.xpm.gz

  6. title ☆深度技术论坛<USB硬盘>维护和Ghost工具☆ 2007.07
  7. clear
  8. title ──────────────────────────────────  
  9. clear

  10. title 【1】自动搜索和恢复深度万能克隆快速装机系统(特定GHO文件存放在FAT分区)
  11. find --set-root /io.sys
  12. chainloader /io.sys


  13. title 【2】启动 GHOST 11 手动操作功能 (GHO文件存放在NTFS分区请使用这个选项)
  14. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  15. initrd /boot/ghost11.img

  16. title ──────────────────────────────────
  17. clear

  18. title 【3】启动深度技术 WinPE 维护系统
  19. chainloader /LDRXPE (hd0)+1

  20. title 【4】启动 XUSBOOT 中文DOS维护工具
  21. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  22. initrd /boot/xusboot.img

  23. title 【5】启动 PQMAGIC 8.05 中文版分区工具
  24. kernel /boot/memdisk.gz c=80 h=2 s=36 floppy
  25. initrd /boot/pm805.IMG

  26. title 【P】天意 PE (支持96M内存)
  27. find --set-root /TYPE/SETUPLDR.BIN
  28. chainloader /TYPE/SETUPLDR.BIN (hd0)+1



  29. title ──────────────────────────────────
  30. clear

  31. title 【S】启动深度DeepinXP-V4精简版
  32. find --set-root /DeepinXP-V4.iso
  33. map /DeepinXP-V4.iso (0xff) || map --mem /DeepinXP-V4.iso (0xff)
  34. map --hook
  35. chainloader (0xff)

  36. title 【U】Ubuntu 10.04
  37. root (hd0,0)
  38. kernel (hd0,0)/vmlinuz boot=casper noacpi iso-scan/filename=/Ubuntu1004.iso ro quiet splash
  39. initrd (hd0,0)/initrd.lz

  40. title      Start BackTrack FrameBuffer (1024x768)
  41. root (hd0,0)
  42. kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 BOOT=casper boot=casper
  43. nopersistent rw quiet vga=0x317
  44. initrd (hd0,0)/BT4/boot/initrd.gz

  45. title      Start BackTrack FrameBuffer (800x600)
  46. root (hd0,0)
  47. kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 BOOT=casper boot=casper
  48. nopersistent rw quiet vga=0x314
  49. initrd (hd0,0)/BT4/boot/initrd800.gz

  50. title Blacktrack 4
  51. root (hd0,0)

  52. kernel /BT4/boot/vmlinuz max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6666 from=BT4 root=/dev/ram0 rw
  53. initrd /BT4/boot/initrd.gz

  54. title     Boot BackTrack 4

  55. kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 root=/dev/ram0     vga=791

  56. initrd (hd0,0)/BT4/boot/initrd.gz


  57. title 【6】启动本机硬盘的 WINDOWS NT/2003/XP 系统
  58. map (hd0) (hd1)
  59. map (hd1) (hd0)
  60. root (hd1,0)
  61. chainloader (hd1,0)+1
  62. boot
  63. rootnoverify (hd1,0)
  64. chainloader +1

  65. title 【7】启动本机硬盘上 Vista/Windows7 系统(如果存在)
  66. find --set-root /bootmgr
  67. chainloader /bootmgr

  68. title 【8】从光盘启动
  69. cdrom --init
  70. map --hook
  71. chainloader (cd0)
  72. boot

  73. title 【9】重启计算机
  74. reboot

  75. title 【10】关闭计算机
  76. halt
复制代码

[ 本帖最后由 binghe 于 2010-1-11 05:29 编辑 ]
回复

使用道具 举报

3#
 楼主| 发表于 2010-1-11 05:03:27 | 只看该作者
这几张图是引导bt4prefinalbones是出现的错误,bt4prefinalbones放在分区1的BT4文件夹中,并且还有把iso解压了一个也是放在BT4的文件夹中。
下面三张图都是引导bt4时出现的问题。
Ubuntu的错误忘记截图了。提示错误error 19 cannot mount selected partition
按照我的理解是用移动硬盘启动的,那么分区1应该就是 (hd0,0),但是我也有设置了 (hd1,0)、 (hd0,1)等等很多数字了。。都不行。。

[ 本帖最后由 binghe 于 2010-1-11 05:32 编辑 ]

1201.jpg (86.01 KB, 下载次数: 54)

1201.jpg
回复

使用道具 举报

4#
 楼主| 发表于 2010-1-11 05:16:39 | 只看该作者
回复

使用道具 举报

5#
 楼主| 发表于 2010-1-11 05:16:56 | 只看该作者
回复

使用道具 举报

6#
发表于 2010-1-11 07:08:30 | 只看该作者
虽然不知道原因,可是你可以试验一下,把上面的pe的启动项改为(hd0,0),如果能启动就证明你的猜想是对的,不然就把下面的ubuntu项用find --set-root ,我也想知道?
另外问下那个boot=casper是不是指定那个squashfs文件的目录啊?

[ 本帖最后由 坏小子 于 2010-1-11 07:11 编辑 ]
回复

使用道具 举报

7#
发表于 2010-1-16 14:44:56 | 只看该作者

我怎么看到是视频模式不对啊

我怎么看到是视频模式不对啊
回复

使用道具 举报

8#
发表于 2010-1-16 17:38:37 | 只看该作者

回复 #7 tntlinlxp 的帖子

同意你的观点....
回复

使用道具 举报

9#
发表于 2010-1-16 18:14:24 | 只看该作者

回复 #2 binghe 的帖子

title 【U】Ubuntu 10.04
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper noacpi iso-scan/filename=/Ubuntu1004.iso ro quiet splash
initrd (hd0,0)/initrd.lz

这个Ubuntu1004.iso  镜像只能放在FAT32分区 才能找到


title 【S】启动深度DeepinXP-V4精简版
find --set-root /DeepinXP-V4.iso
map /DeepinXP-V4.iso (0xff) || map --mem /DeepinXP-V4.iso (0xff)
map --hook
chainloader (0xff)

可参考这里:

http://bbs.wuyou.net/forum.php?mod=viewthread&tid=148686&extra=page%3D6


title     Boot BackTrack 4
find --ser-root /BT4/boot/vmlinuz
kernel ()/BT4/boot/vmlinuz from=BT4 root=/dev/ram0     vga=791
find --set-root /BT4/boot/initrd.gz
initrd ()/BT4/boot/initrd.gz

[ 本帖最后由 oym2007 于 2010-1-16 18:25 编辑 ]
回复

使用道具 举报

10#
发表于 2010-1-17 05:17:49 | 只看该作者
title Blacktrack 4
root (hd0,0)

kernel /BT4/boot/vmlinuz max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6666 from=BT4 root=/dev/ram0 rw
initrd /BT4/boot/initrd.gz

title     Boot BackTrack 4

kernel (hd0,0)/BT4/boot/vmlinuz from=BT4 root=/dev/ram0     vga=791

initrd (hd0,0)/BT4/boot/initrd.gz
上面的启动不了就用下面写法,我试了所有机子都可以,(启动BT4)


title Run BackTrack4
         find --set-root /bt4.lst
         configfile /bt4.lst


{BT4.LST的MENU写法如下:}



# By default, boot the first entry.
default 0

# boot automatically after 30 secs.
timeout 30

splashimage=/boot/grub/nohack.xpm.gz


title                Start BackTrack FrameBuffer (1024x768)
kernel                /boot/vmlinuz boot=casper boot=casper nopersistent rw quiet vga=0x317
initrd                /boot/initrd.gz

title                Start BackTrack FrameBuffer (800x600)
kernel                /boot/vmlinuz boot=casper boot=casper nopersistent rw quiet vga=0x314
initrd                /boot/initrd800.gz

title                Start BackTrack Forensics (no swap)
kernel                /boot/vmlinuz boot=casper boot=casper nopersistent rw vga=0x317
initrd                /boot/initrdfr.gz

title                Start BackTrack in Safe Graphical Mode
kernel                /boot/vmlinuz boot=casper boot=casper xforcevesa rw quiet
initrd                /boot/initrd.gz

title                Start Persistent Live CD
kernel                /boot/vmlinuz boot=casper boot=casper persistent rw quiet
initrd                /boot/initrd.gz

title                Start BackTrack in Text Mode
kernel                /boot/vmlinuz boot=casper boot=casper nopersistent textonly rw quiet
initrd                /boot/initrd.gz

title                Start BackTrack Graphical Mode from RAM
kernel                /boot/vmlinuz boot=casper boot=casper toram nopersistent rw quiet
initrd                /boot/initrd.gz

title                Memory Test
kernel                /boot/memtest86+.bin

title                boot the First Hard Disk
root                (hd0)
chainloader +1

[ 本帖最后由 chwang 于 2010-1-17 05:21 编辑 ]
回复

使用道具 举报

11#
发表于 2010-1-17 07:48:04 | 只看该作者
grub能启动那么大的iso镜像???从来不知道呢
回复

使用道具 举报

12#
发表于 2010-1-17 08:43:42 | 只看该作者
1、我启动PE的菜单。
title  WINPE
find --set-root /boot/pe.iso
map --mem /boot/pe.iso (hd32)
map --hook
chainloader (hd32)
boot
用find --set-root更好。
2、你使用的ISO文件是标准ISO吗?grub不能引导Joliet CD格式的ISO文件,可以用WINISO软件转换一下;
3、如果ISO文件超过了内存,就要去掉--mem,内存放不下。
回复

使用道具 举报

13#
发表于 2010-1-18 11:14:01 | 只看该作者
原帖由 oym2007 于 2010-1-16 18:14 发表
这个Ubuntu1004.iso  镜像只能放在FAT32


你的活动分区建议用 FAT32

我的移动硬盘 也是 3个去 1:boot(8G:fat32)放小马PE 以及各种工具的img 和iso文件(单文件不能超过4G)
                                    2:GGhost(200G:ntfs)各种 ghost文件以及驱动
                                    2:babyface(90G:ntfs)私人文件夹

九楼oym2007 已经说的 很明白了
回复

使用道具 举报

14#
发表于 2010-1-19 20:43:37 | 只看该作者
個人也非常熱切學習grub導引ISO中...總是有些成功...有些卻敗得很...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-7-22 00:36

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表