QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 856|回复: 4

!请教如何引导RedhadLinux9.0和红旗linux4

[复制链接]
发表于 2004-10-11 19:17:09 | 显示全部楼层 |阅读模式
各位朋友好!  我在我的机子上装了两个linux.可是装完后来了这样一个问题------
系统只能引导最后一次安装的哪个linux.  我不弄不懂这时灾民这是怎么回事. 不知
大家能不能给点解决的方法, 以下是我能列出的信息( 分区  ; lilo.conf.anaconda文件

; inittab文件).  谢谢!
===================我的分区如下:======================================
hda1  ntfs        
hda5  ntfs
hda6  ntfs
hda7  fat32
hda8  swap
hda9  ext3       /home         
hda3  ext3       /            装的Redhat Linux 9.0
hda4  ext3                    装的红旗linux 4.1

===================我的lilo.conf.anaconda文件如下:========================
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-8
    label=linux
    initrd=/boot/initrd-2.4.20-8.img
    read-only
    append="root=LABEL=/"

other=/dev/hda1
    optional
    label=DOS
=====================我的inittab文件====================================
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <[email protected]>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)

#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.  
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon



--
\\\\\\\\\\\\\\\\
$又见你微微一笑$
$又见你长发飘飘$
$梦见你暮然回首$
$深情如丝路迢迢$
////////////////
发表于 2004-10-11 19:33:17 | 显示全部楼层
版主在线:
你是用LILO引导两个系统的?
两个系统是各用什么引导程序引导系统的?全是LILO?全是GRUB?还是一个LILO,一个GRUB?如果两个不同,那么哪个用LILO,哪个是GRUB,现在是哪个系统为主系统?
回复

使用道具 举报

 楼主| 发表于 2004-10-16 18:58:23 | 显示全部楼层

版主,我觉的redhat9.0 & Redflag Linux 4.1好像都默认使用的是GRUB引导的,不知道我这说法对不对。

hda1 hda4 hda3都划为主分区。我先在hda4 上装了RedFlag Linux 4.1。安装中选择挂载点时我把 / 定在hda4 上。 这时分区信息为:

      hda3 ext3
      hda4 ext3   /     装的红旗linux 4.1 的时候

         
引导信息选择放在MBR里面。安装成功后,又安装RedHat linux 9.0。这时候redhat同样要求我选择挂载点时我把它挂在hda3 上面,这时分区表信息变成了这样

          hda3 ext3    /     装的Redhat Linux 9.0的时候
          hda4 ext3
在提示选择用什么方式作引导是我选择GRUB。………装上以后就出问题了,(只能引导最后装的这个系统了)。

这次的问题是:
1、不知道还有那些文件是与引导有关的?
2、如果有,那又是那些,实现双系统引导需要该些什么字段?
3、把两个linux系统分别装到两个主分区有没有问题?
4、我选择挂载点是否错误?如果是,那又有该如何做?

--------------------------希望没有耽搁斑竹太多时间,谢谢!
回复

使用道具 举报

发表于 2004-10-16 19:30:27 | 显示全部楼层
可能是硬盘lable 的问题,rh 9安装后它为分区根据挂载点设置 lable,如 / 分区 lable 为 / ,/home 分区为 /home,所以你在 /etc/fstab 的设备段看到的是 LABLE=/ 这样的信息,那么如果之前rf 4.1 也和rh 9 一样那么显然会导致之前安装的rf 4.1 找错分区。
反之依然。

楼主现在进的系统应该是rh 9吧,那么试试下面这样。
# mkdir /mnt/rf
# mount -t ext3 /dev/hdat /mnt/rf
# vi /mnt/rf/etc/fstab

看看rf 4.1 的设置是否也是用的lable,如果是这把 LABLE=/ 改为 /dev/hda4

btw: rh 9默认的引导是grub rf4.1 应该也是吧,现在lilo 的用户越来越少了.
回复

使用道具 举报

发表于 2004-10-16 19:50:40 | 显示全部楼层
手动添加第二个系统,此时GRUB的优势就很明显了.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-27 21:21 , Processed in 0.093656 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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