LinuxSir.cn,穿越时空的Linuxsir!

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

基本安装问题!

[复制链接]
发表于 2004-11-26 16:36:17 | 显示全部楼层 |阅读模式
双硬盘,主硬盘XP,副硬盘Red Hat Fedora Core 2
GRUB装在副盘的/boot里
启动用副硬盘,出现Grub字样后就停止不动。
请问如何在不把Grub装在主硬盘引导区的情况下,实现副硬盘启动linux?
谢谢!
发表于 2004-11-26 21:28:37 | 显示全部楼层
可以制作引导软盘,在linux下可以做。这样就可以通过软盘引导来进入linux了。(要在bios里设置软盘引导优先)
 楼主| 发表于 2004-11-27 06:25:35 | 显示全部楼层
那是不是要重新安装一次啊。
现在我连linux都进不了。。。
还有其他什么方法吗?
为什么副硬盘启动不了?
发表于 2004-11-27 09:18:44 | 显示全部楼层
这个问题现在也困扰着我,但是你可以欺骗一次计算机^_^
在Bios中disable掉主硬盘,然后使用fc2引导,这样可以引导系统。在fc2下你还是可以看到主硬盘的,并且可以mount他。这样你可以观察到他属于hda还是hdb,一般为hdb。

对应修改/boot/grub/menu.lst
将系统的顺序修改好。
下面是我的一个menu.lst

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd1,0)
#          kernel /vmlinuz-version ro root=/dev/hdb6
#          initrd /initrd-version.img
#boot=/dev/hda
default=7
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-31.9smp)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-31.9smp ro root=LABEL=/
        initrd /initrd-2.4.20-31.9smp.img
title Red Hat Linux (2.4.20-31.9bigmem)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-31.9bigmem ro root=LABEL=/
        initrd /initrd-2.4.20-31.9bigmem.img
title Red Hat Linux (2.4.20-31.9)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-31.9 ro root=LABEL=/
        initrd /initrd-2.4.20-31.9.img
title Red Hat Linux (2.4.20-31.9BOOT)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-31.9BOOT ro root=LABEL=/
        initrd /initrd-2.4.20-31.9BOOT.img
title Red Hat Linux (2.4.20-8bigmem)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-8bigmem ro root=LABEL=/
        initrd /initrd-2.4.20-8bigmem.img
title Red Hat Linux-smp (2.4.20-8smp)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/
        initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.4.20-31.9)
        root (hd1,0)
        kernel /vmlinuz-2.4.20-31.9 ro root=LABEL=/
        initrd /initrd-2.4.20-31.9.img
title Microsoft
        rootnoverify (hd0,0)
        chainloader +1


title Microsoft
        rootnoverify (hd0,0)
        chainloader +1
为你需要引导的windows分区。
发表于 2004-11-27 09:40:21 | 显示全部楼层
btw:

我的分区状况:


Disk /dev/hdc: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      1275  10241406    7  HPFS/NTFS
/dev/hdc2          1276      3825  20482875    f  Win95 Ext'd (LBA)
/dev/hdc3          3826      5005   9478350    7  HPFS/NTFS
/dev/hdc5          1276      2550  10241406    c  Win95 FAT32 (LBA)
/dev/hdc6          2551      3825  10241406    c  Win95 FAT32 (LBA)

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         1      8001   83  Linux
/dev/hda2             2      2433  19535040   83  Linux
/dev/hda3          2434      7390  39817102+   5  Extended
/dev/hda5          2434      7296  39062016   83  Linux
/dev/hda6          7297      7390    755023+  82  Linux swap

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1        13    104391   83  Linux
/dev/hdb2            14       140   1020127+  83  Linux
/dev/hdb3           141       267   1020127+  83  Linux
/dev/hdb4           268      4866  36941467+   5  Extended
/dev/hdb5           268       364    779121   82  Linux swap
/dev/hdb6           365      1638  10233373+  83  Linux
/dev/hdb7          1639      4866  25928878+  83  Linux
发表于 2004-11-27 09:45:16 | 显示全部楼层
引用南北兄:

    《再探安装多操作系统分区,grub的设置问题》

4.如何修改/etc/grub.conf
一般的发行版,GRUB的配置文件都在/etc/grub.conf中,如果我们安装了多个linux,就要修改这个文件。那我们如何修改呢?一般的情况下,windows是自动加载到了grub.conf中,打开grub.conf,就能看到windows的设置情况。可能有时系统会突然出现不能引志 windwows的情况,我们就要下面的类似的改动一下。
title DOS
rootnoverify (hd0,0)
chainloader +1

改成
title WinXP在这里,title是必须的,WinXP,您可以用别的名,您喜欢怎么样就怎么样。
root (hd0,0)
chainloader +1

这样就能启动了。

2.如何把其它的linux的引导加入到GRUB来引导呢?我们可以用下面的方法。也是比较简单。GRUB引导linux系统,就是靠三行来定义。

title XXX
在这里,XXX是您要引导的操作系统的名字。可以自己来定。

root (hdX,Y)
在这里,X和Y都代表一个数值。X是linux的根分区在哪个硬盘上。如果您只有一个硬盘。那就是hd0。如果您的linux的一个发行版是安装在第二个硬盘,这个X,就是1。那Y代表什么?Y是代表您所安装的linux是在哪个区。这个数值有点不同。用原理没有办法说清楚。应该用实例来说。比如我把mandrake安装到hda8了。那他的root (hdX,Y),就应该写为root (hd0,7),也是说是linux所在的根分区hdaZ中的Z减去1就是这个Y的数值:在这之中,hdaZ或者 hdbZ中的Z也是一个数值。看一下上面的例子就明白了。
用fdisk -l 或者df -la来查看

kernel /boot/vmlinuz root=/dev/hdaZ
这里中的Z,也是一个数值,接着上面的例子,我们把Mandrake的引导加入到Redhat 的GRUB中。就可以写成如下的样子:


kernel /boot/vmlinuz root=/dev/hda8

通过上面的分析,我们要让Redhat的GRUB来引导Mandrake 9.0,我们要改动Redhat中的GRUB的配置文件,加入下面的一段:

title MD 8.0
root (hd0,7)
kernel /boot/vmlinuz root=/dev/hda8

如果您想加入其它的操作系统到Redhat 中的GRUB中,也不过是如此,如者用其它发行版中的GRUB来引导别的发行版,原理也是一样的
 楼主| 发表于 2004-11-29 11:57:04 | 显示全部楼层
关于楼上所教的。
我disable掉了主硬盘,起动的时候还是显示
GRUB字样,后面接hard disk error然后就没反应了
最后我试着把GRUB装到主硬盘的引导区上,可惜完全没反应。
起动时候自动进入XP
怎么办?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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