免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: sunaska
打印 上一主题 下一主题

关于grub的问题 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2003-06-27 11:53 |只看该作者

关于grub的问题

If you have installed DOS (or Windows) on a non-first hard disk, you
have to use the disk swapping technique, because that OS cannot boot
from any disks but the first one. The workaround used in GRUB is the
command `map' (*note map:, like this:
                                                                                
     grub>; map (hd0) (hd1)
     grub>; map (hd1) (hd0)
                                                                                
   This performs a "virtual" swap between your first and second hard
drive.

   *Caution:* This is effective only if DOS (or Windows) uses BIOS to
access the swapped disks. If that OS uses a special driver for the
disks, this probably won't work.
                                                                                
   Another problem arises if you installed more than one set of
DOS/Windows onto one disk, because they could be confused if there are
more than one primary partitions for DOS/Windows. Certainly you should
avoid doing this, but there is a solution if you do want to do so. Use
the partition hiding/unhiding technique.

   If GRUB "hide"s a DOS (or Windows) partition (*note hide:, DOS (or
Windows) will ignore the partition. If GRUB "unhide"s a DOS (or
Windows) partition (*note unhide:, DOS (or Windows) will detect the
partition. Thus, if you have installed DOS (or Windows) on the first
and the second partition of the first hard disk, and you want to boot
the copy on the first partition, do the following:
                                                                                
     grub>; unhide (hd0,0)
     grub>; hide (hd0,1)
     grub>; rootnoverify (hd0,0)
     grub>; chainloader +1
     grub>; makeactive
     grub>; boot

论坛徽章:
0
22 [报告]
发表于 2003-07-01 16:44 |只看该作者

关于grub的问题

偶的两个硬盘,x1装win98,x2装win98+linux8.0   
x2的都能用grub的启动的   
偶试了一下,还是不行
看了好多文档,map映射驱动器,rootnoverify(hd1,0)然后makeacitve,
boot的竟然是x2的win98
奇怪了
不过偶晓得了一件事,就是grub不管IDE口的,装grub的就是hd0,再插一个就是hd1的了
等待有人来讨论啊

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
23 [报告]
发表于 2003-07-01 21:05 |只看该作者

关于grub的问题

[quote]原帖由 "sunaska"]不过偶晓得了一件事,就是grub不管IDE口的,装grub的就是hd0,再插一个就是hd1的了..........[/quote 发表:
     

说的对啊,purge试出来也是这样的,但是purge还没有按照你楼上的弟兄的方法试验过。呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP