LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1887|回复: 10

如何让Grub识别NTFS分区?

[复制链接]
发表于 2004-2-24 17:23:50 | 显示全部楼层 |阅读模式
ide1:master maxtor 15G  
     slave  maxtor 40G  
前者安装suse9,后者安装win2kpro,均为独立安装

想把win2kpro加进grub的启动菜单里,在Bootloader Configuration中的Available section中加了一个(hd1,0),也就是第二块硬盘的主分区(NTFS,安装win2kpro的分区)结果,出了一个
filesystem type unknow,partition type 0x7
的提示...:confused:

以前做过sco unix和win2k的双启动,从win启动unix需要把bootsect拷贝出来放到c:\下,不知这里的情况是不是差不多,也需要将win2kpro的启动扇区拷贝到suse的文件系统下吗?
 楼主| 发表于 2004-2-24 17:27:30 | 显示全部楼层
或者相反,将linux的启动项加入win2k的选择菜单中...

达人指教!!!
发表于 2004-2-24 17:44:40 | 显示全部楼层
title windows2000
rootnoverify (hd1,0)
chainloader +1
 楼主| 发表于 2004-2-24 18:55:25 | 显示全部楼层
没有反应阿!我只能看到一片黑屏...
发表于 2004-2-24 19:44:17 | 显示全部楼层
把你的分区情况说一下。
 楼主| 发表于 2004-2-24 19:45:54 | 显示全部楼层
换一种方法——用nt loader
dd if=/dev/hdan(n=linux的native分区) of=/bootsect.lnx bs=512 count=1

将bootsect.lnx放到c:\下,
boot.ini中添加一句
c:\bootsect.lnx="suse 9.0"

结果在2000的启动菜单中选择suse 9.0后,屏幕坐上角就出现一个
GRUB _
然后就不动了...

查了一下资料,这样好像不行,因为grub是分为2个stage的,使用上述方法只是截取了一个stage...看来还是只有在grub菜单中加2k啊~~


最初由 beyond_2000 发表
把你的分区情况说一下。


稍等~~我马上抓图
 楼主| 发表于 2004-2-24 19:58:05 | 显示全部楼层
ok,my first snapshot make in linux,look at my partitions
what a mess

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-2-26 01:30:33 | 显示全部楼层
使用NT loader, 需要将Grub/lilo装在Linux分区的0扇区, 否则dd出来的什么也不是。

建议还是使用Grub, chain load加载Windows.
发表于 2004-2-26 09:36:16 | 显示全部楼层
我装的TurboLinux10自动把原来的win2k加入启动菜单了。
 楼主| 发表于 2004-2-26 13:37:11 | 显示全部楼层
/etc/grub.conf
  1. root (hd0,5)
  2. install  --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,5)/boot/grub/menu.lst
  3. quit
复制代码

/boot/grub/menu.lst
  1. # Modified by YaST2. Last modification on Thu Feb 26 13:34:06 2004
  2. color white/blue black/light-gray
  3. default 0
  4. timeout 8
  5. gfxmenu (hd0,5)/boot/message
  6. ###Don't change this comment - YaST2 identifier: Original name: linux###
  7. title Linux
  8.     kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 splash=silent desktop hdc=ide-scsi hdclun=0 showopts
  9.     initrd (hd0,5)/boot/initrd
  10. ###Don't change this comment - YaST2 identifier: Original name: windows###
  11. title Windows 2000 Professional
  12.     unhide(hd1,0)
  13.     hide(hd1,1)
  14.     hide(hd1,2)
  15.     hide(hd1,4)
  16.     hide(hd1,5)
  17.     hide(hd1,6)
  18.     rootnoverify (hd1,0)
  19.     chainloader +1
  20.     makeactive
  21. ###Don't change this comment - YaST2 identifier: Original name: windows###
  22. title Windows
  23.     root (hd0,1)
  24.     chainloader +1
  25. ###Don't change this comment - YaST2 identifier: Original name: failsafe###
  26. title Failsafe
  27.     kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 showopts ide=nodma apm=off acpi=off vga=normal nosmp noapic maxcpus=0 3
  28.     initrd (hd0,5)/boot/initrd
复制代码


/boot/grub/device.map
  1. (hd0)        /dev/hda
  2. (hd1)        /dev/hdb
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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