免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1220 | 回复: 0
打印 上一主题 下一主题

Windows 2003和Redhat Linux7.3安装问题的继续... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-11 16:35 |只看该作者 |倒序浏览

我在继续实验,尽管我的时间有限!请大家多多支援!
我已经实验,在Grub命令行下用rootnoverify (hd0,0),chainloader +1也可正常启动,只是在用root(hd0,0)时,系统返回分区信息,而用rootnoverify(hd0,0)时不返回系统分区信息。其实Grub帮助中的也有说明,只是不愿细看罢了,当然英语也比较一般。
同样在命令行时加入makeactive也没有什么反应,也可正常启动,我的猜想:makeactive是否在Windows2003和Linux分别安装在不同的主分区时才有用,起到一个设置活动分区的作用?
我用GRUB双引导Linux7.3和windows 2003,启动正常。
分区情况:
在Win2003下看:
主分区C: NTFS文件系统,Windows2003;D:,E:都是扩展分区中的逻辑驱动器。
另还有6个未知分区,当然是Linux分区了,分别是47M,12.31G,4.5G,384M,259M,251M。
有Grub命令行下看:
Partition num:0 Filesystem type unknown, partition type 0x7
Partition num:4 Filesystem type unknown, partition type 0x7
Partition num:5 Filesystem type is ext2fs, partition type 0x83
Partition num:6 Filesystem type is ext2fs, partition type 0x83
Partition num:7 Filesystem type is ext2fs, partition type 0x83
Partition num:8 Filesystem type is ext2fs, partition type 0x83
Partition num:9 Filesystem type is ext2fs, partition type 0x83
Partition num:10 Filesystem type unknown, partition type 0x82
后因为看关于Grub的文章,相信Grub威力无比,就在windwos中把Windows中指示为扩展分区中的逻辑盘删除,重新分为两个逻辑盘。GRUB不能正常引导,但可进入GRUB>命令行,且windows可正常启动,但Linux按原参数输入引导不成功(当然,分区位置改变了一下,我在命令行下输入时,把5变为6;把hda9变为hda10)!

这时的分区情况:
在Win2003下看:
主分区C: NTFS文件系统,Windows2003;D:,E:都是扩展分区中的逻辑驱动器。
另还有6个未知分区,当然是Linux分区了,分别是47M,12.31G,4.5G,384M,259M,251M。
有Grub命令行下看:
Partition num:0 Filesystem type unknown, partition type 0x7
Partition num:4 Filesystem type unknown, partition type 0x7
Partition num:5 Filesystem type is fat, partition type 0xb
Partition num:6 Filesystem type is ext2fs, partition type 0x83
Partition num:7 Filesystem type is ext2fs, partition type 0x83
Partition num:8 Filesystem type is ext2fs, partition type 0x83
Partition num:9 Filesystem type is ext2fs, partition type 0x83
Partition num:10 Filesystem type is ext2fs, partition type 0x83
Partition num:11 Filesystem type unknown, partition type 0x82


我也感到奇怪,因为:
安装Windows 2003时,是在40G硬盘上先分了个10G的主分区,又分了个10G的扩展分区,只建了一个逻辑盘。
在安装Linux时,选择安装在空闲空间,自动分区,从显示结果看,Linux分区好像都编排在原Windows的扩展分区。而在Windows看,所有的Linux分区都是独立的主分区。
所以我在Windows2003下删除扩展分区,好像没有涉及到Linux分区,当然Grub对分区的命名会有所变化。也许Linux内核对设备的命名也有所变化……
那么问题是否出在这里?----分区的修改影响的Linux对设备的识别???
我在Windows 2003下重新把新建的两个逻辑盘删除,只建一个逻辑盘,重新启动,Grub菜单出现,Linux及Windows启动正常。
进入Linux,用df命令看文件挂接情况,如下:
Filesystem     Mounted on
/dev/hda9       /
/dev/hda6       /boot
/dev/hda8       /home
none           /dev/shm
/dev/hda7       /usr
/dev/hda10      /var

我的Grub中menu.lst的主要内容是:
Title linux
root(hd0,5)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi
initrd /initrd-2.4.18-3.img
Title windws 2003
root(hd0,0)
chainloader +1

在这种情况下,我对Grub的命令行启动进行了实验,过程如下:

1、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的 “hdc=ide-scsi” 除去
Linux正常启动。
2、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的hda9改为hda
不能正常启动。
Redhat Linux7.3启动过程如下:(部分)

nd: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun …
md: … autorun DONE.
IP Protocols: ICMP,UDP,TCP,IGMP
IP:routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.RAMDISK: Compressed image found at block 0
Freeing initrd memory: 121k freed
VFS: Mounted root (ext2 filesystem).
Red Hat nash version 3.3.10 starting
Loading jbd module
Journalled Block Device driver loaded
Loading ext3 module
Mounting /proc filesystem
Creating root device
Mounting root filesystem
VFS: Can’t find ext3 filesystem on dev ide0(3,0).
mount: error 22 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed :2
Freeing unused kernel memory: 280k freed
kernel panic: No init found. Try passing init=option to kernel.
键盘Caps Lock及Scroll Lock指示灯同时闪烁。
3、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的hda9改为hda8
不能正常启动。
Redhat Linux7.3启动过程如下:(部分)
……..
Red Hat nash version 3.3.10 starting
Loading jbd module
Journalled Block Device driver loaded
Loading ext3 module
Mounting /proc filesystem
Creating root device
Mounting root filesystem
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
pivotroot;pivot-root(/sysroot, /sysroot/initrd )failed: 2
Freeing unused kernel memory: 280k freed
Kernel panic: No init found, Try passing init=option to kernel.
键盘Caps Lock及Scroll Lock指示灯同时闪烁。
4、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的hda9改为hda6
不能正常启动,错误同上。
5、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的hda9改为hda4
不能正常启动(注:hda4是Windows中的逻辑盘)。
Redhat Linux7.3启动过程如下:(部分)
……..
Red Hat nash version 3.3.10 starting
Loading jbd module
Journalled Block Device driver loaded
Loading ext3 module
Mounting /proc filesystem
Mounting root filesystem
hda4: bad access: block=2, count=2
end_request:I/O read superblock
mount: error 22 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
Freeing unused kernel memory: 280K freed
Kernel panic: No init found. Try passing init=option to kernel.
键盘Caps Lock及Scroll Lock指示灯同时闪烁。
6、把kernel /vmlinuz-2.4.18-3 ro root=/dev/hda9 hdc=ide-scsi行中的“ro root=/dev/hda9 hdc=ide-scsi”去掉,不能正常启动。
Redhat Linux7.3启动过程如下:(部分)
……..
Red Hat nash version 3.3.10 starting
Loading jbd module
Journalled Block Device driver loaded
Loading ext3 module
Mounting /proc filesystem
Mounting root filesystem
hda4: bad access: block=2, count=2
end_request:I/O read superblock
mount: error 22 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed: 2
Freeing unused kernel memory: 280K freed
Kernel panic: No init found. Try passing init=option to kernel.
键盘Caps Lock及Scroll Lock指示灯同时闪烁。
7、把root (hd0,5)行中的改为root (hd0,0)或root (hd0,4)或root(hd0,6)或root(hd0,7)或root (hd0,8)或root (hd0,9)或root (hd0,10),均不能加载Linux内核。
我在Windows 2003下重新把一个逻辑盘删除,新建的两个逻辑盘,重新启动,Grub只出现命令行,Windows可正常启动,而Linux,可以说我试了N次,但还没有启动成功,为什么呢?在介绍Grub的文章中,明明提到分区更改后只要重新编辑menu.lst文件即可正常启动。
今天看到一个网友指示是Grub加载stage2时出错,因为没有更新stage2文件,也不知这个文件到底是什么内容,好像介绍的也不多,看来要认真研究Grub了。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4789/showart_15107.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP