QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 945|回复: 14

Help ! Gentoo installation 求教!

[复制链接]
发表于 2004-6-29 12:42:29 | 显示全部楼层 |阅读模式
尝试装将近20次,都没有成功.每次问题也不一样所以也从中学习. 这次还是没能成功,请那位帮忙指点.
这次用LIVECD,装STAGE1 & PORTAGE. 从头到尾都无ERROR,但无法REBOOT. 我想编错了:
default 0
timeout 30
title=gentoo linux 2.4
root (hd1,0)
kernel /2.4.22-gentoo-r7 root=/dev/hdb1
#(应该是kernel /linux-2.4.22-gentoo-r7 root=/dev/hdb 3 吧???)
#hdb3 是root ;hdb1 是boot.
title=dos
rootnoverify(hd0,0)
#(应该加makeactive吧?)
但我如何从新进入改grub.conf?
我用LIVECD开机但无法进grub.conf;用knoppix, 可以找到grub.conf, 但无法改编.
install过程中也搞乱了kernel的version, 如何查?
请帮帮忙.
谢谢!
发表于 2004-6-29 15:06:25 | 显示全部楼层
如果你用genkernel编译内核的话,kernel名字是kernel-2.4.22-gentoo-r7
所以应该是

title=gentoo linux 2.4
root (hd1,0)
kernel /kernel-2.4.22-gentoo-r7 root=/dev/hdb3
initrd /initrd-2.4.22-gentoo-r7

dos那句应该是

title dos
root (hd0,0)
chainloader +1

另外你没有加splashimage,不过关系不大,一样能引导
如果要修改grub.conf 你可以用gentoo的livecd启动,然后直接挂载/boot分区就可以了。例如你的/boot是hdb1,则

mount /dev/hdb3 /mnt/gentoo
mount /dev/hdb1 /mnt/gentoo/boot
cd /mnt/gentoo/boot

就可以看见grub目录了。

还有你所说的无法reboot是什么意思?是reboot命令不能用?还是不能引导?前者的话有可能是你还在gentoo环境中,退出到livecd环境就可以了。

最后一个问题,既然你已经编译出kernel是2.4.22,那就是喽。
回复

使用道具 举报

 楼主| 发表于 2004-6-29 17:32:57 | 显示全部楼层
谢谢!
今晚开工.
回复

使用道具 举报

 楼主| 发表于 2004-7-1 07:39:01 | 显示全部楼层
不好意思,看来我的水平太低,判断错误. grub.conf改了之后,从新开机,只出现GRUB就停在那边. 请帮忙诊断一下还会那儿出错.谢谢!谢谢!
我的机是DIY, Barton 2500 oc 3200;2HD,1 装DOS,2装LINUX:装GENTOO时,全用手动(除了STAGE1到STAGE3). 因此grub.conf 没有加入intrd /initrd-2.4.22-gentoo-r7, 不过我怀疑version 搞错,有没有影响?     
回复

使用道具 举报

发表于 2004-7-1 09:17:33 | 显示全部楼层
如果你的分区和参数都没错大致如此:

[code:1]default 0
timeout 30
root (hd1,0)

title=gentoo linux 2.4
    kernel 2.4.22-gentoo-r7 root=/dev/hdb3 <- 你用什么编译的内核? 自己起了什么名字自己改, 看一下 /boot 里.
    #hdb3 是root ;hdb1 是boot.

title=dos
    rootnoverify(hd0,0)
    chainloader +1
    makeactive[/code:1]

前天就看到了, 可是前天莫名其妙不能发帖... -_-b
你的 Windows 是装在 IDE0 的主盘第一个分区上吗?
linux 是 IDE0 的副盘?

initrd 如果你编译内核把开机需要的模块都编译进去了那不需要加没问题.
如果你没建 initrd 那你加它又有何用?
回复

使用道具 举报

 楼主| 发表于 2004-7-1 10:22:27 | 显示全部楼层
谢谢!
今晚下班再战.
回复

使用道具 举报

 楼主| 发表于 2004-7-4 08:33:42 | 显示全部楼层
重新又搞了两天,确定了VERSION,这次用 gentoo-2004.1 livecd;STAGE3, athlon-xp, 全部手动.
终于GRUB可以开始;不过得到的是:
root (hd1,0)
filesystem type unknown, partition type 0X6
kernel /kernel-2.4.25-gentoo root=/dev/hdb3
Error17= Can not mount selected partition
Press any key to continue
真把我给难倒了;
我的WIN装在hda(80G 硬盘);装LINUX在hdb(15G 硬盘)(共两个分开的硬盘)
请教那里出错?
回复

使用道具 举报

发表于 2004-7-4 12:11:32 | 显示全部楼层
你的hdb1挂的是/boot?
回复

使用道具 举报

发表于 2004-7-4 12:50:49 | 显示全部楼层
请楼主贴出fstab
回复

使用道具 举报

发表于 2004-7-4 13:00:57 | 显示全部楼层
root (hd1,0)
filesystem type unknown, partition type 0X6
你的hdb的第一个分区的格式都没有认出来????不是说hdb1是boot区吗?什么格式哦?
回复

使用道具 举报

 楼主| 发表于 2004-7-4 14:20:27 | 显示全部楼层
谢谢各位高手.
我的硬盘:
/dev/hdb1*    1            15         NNNNN    83   linux
/dev/hdb2      16           81       NNNNN+   82   swap
/dev/hdb3       82         1NN    NNNNNN+  83   linux
#mke2fs /dev/hdb1
#mke2fs -j /dev/hdb3
#mkswap /dev/hdb2
swapon /dev/hdb2

fstab
/dev/hdb1                   /boot           ext2       noauto,noatime     1 2
/dev/hdb2                   /none          swap      sw                          0 0
/dev/hdb3                   /                  ext3       noatime                  0 1
none                           /proc            proc       defaults                  0 0
none                           /dev/shm      tmpfs     defaults                  0 0
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user            0 0

是这样了.
请指导.
谢谢.
回复

使用道具 举报

发表于 2004-7-4 19:04:03 | 显示全部楼层
你的配置文件看起來沒有問題,不過我建議你用fdisk重新確認一下partition type:
# fdisk /dev/hdb
Command (m for help): t
Partition number (1-3): 1
Hex code (type L to list codes): 83
Command (m for help): t
Partition number (1-3): 2
Hex code (type L to list codes): 82
Command (m for help): t
Partition number (1-3): 3
Hex code (type L to list codes): 83
Command (m for help): p  #看下
最後寫入:
Command (m for help): w
回复

使用道具 举报

 楼主| 发表于 2004-7-6 07:47:25 | 显示全部楼层
谢谢!
昨夜再战,不行. window 也弄坏了,起动不了,管不了了.
打算重新Burn LiveCD, 周末再来一次.
绝不放弃!
Never give up!   
回复

使用道具 举报

发表于 2004-7-11 16:58:00 | 显示全部楼层
[quote:a7ae44b1e6="kohlingyu"]谢谢各位高手.
我的硬盘:
/dev/hdb1*    1            15         NNNNN    83   linux
/dev/hdb2      16           81       NNNNN+   82   swap
/dev/hdb3       82         1NN    NNNNNN+  83   linux
#mke2fs /dev/hdb1
#mke2fs -j /dev/hdb3
#mkswap /dev/hdb2
swapon /dev/hdb2

fstab
/dev/hdb1                   /boot           ext2       noauto,noatime     1 2
/dev/hdb2                   /none          swap      sw                          0 0
/dev/hdb3                   /                  ext3       noatime                  0 1
none                           /proc            proc       defaults                  0 0
none                           /dev/shm      tmpfs     defaults                  0 0
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user            0 0

是这样了.
请指导.
谢谢.[/quote]

这样看你来的hda3是使用了ext3,是不是你没把ext3的支持编进内核啊?
回复

使用道具 举报

 楼主| 发表于 2004-7-12 13:01:23 | 显示全部楼层
有,现在可BOOT.
Grub错在root (0,0) , 不是root (1,0), 什么原因还搞不清楚,用try & error.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 10:30 , Processed in 0.047940 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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