LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: leonxu

我安装gentoo 2005, 累啦.... help help

[复制链接]
发表于 2005-4-27 10:59:39 | 显示全部楼层
Post by puretears

So I think in root(hdX,Y) command, (hdX,Y) should represent  the /boot not /,
because / represent root file system not root device, may I right???

right~~,because he has a seprate /boot partition,
only represent  /boot instate of / can make it works.

Post by puretears

At last, nait, may I ask you a question? why you use the
root (hd2,1)
Do you mean there are three disks on the machine?????


I think so
may be nait has 3 disks but leonxu has only 2...
回复 支持 反对

使用道具 举报

发表于 2005-4-27 12:06:54 | 显示全部楼层
It is not correct

Post by puretears
If u r using genkernel, then

root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda1
should be sufficient and you don't need the following lines

root=/dev/ram0 init=/linuxrc
real_root=dev/hdc2
initrd=/initrd-2.6.11-gentoo-r3

they r used only if u r configure the kernel by yourself.

By the way, the root command in the grub is explained in such a way by the
GNU grub manual


So I think in root(hdX,Y) command, (hdX,Y) should represent  the /boot not /,
because / represent root file system not root device, may I right???

From your setting in grub.conf
/etc/fstab
/dev/hdc1 /boot ext2 defaults 1 2
/dev/hdc2 / ext3 defaults        0 1
I think you should use root(hd0, 0) and root=/dev/hdc1

At last, nait, may I ask you a question? why you use the
root (hd2,1)
Do you mean there are three disks on the machine?????

Just a fresh guy, thx all~~
回复 支持 反对

使用道具 举报

发表于 2005-4-27 12:27:47 | 显示全部楼层
Post by links
It is not correct


Can you give me some corrections????
Thx..
回复 支持 反对

使用道具 举报

发表于 2005-4-27 13:01:01 | 显示全部楼层
Post by L0veyou
right~~,because he has a seprate /boot partition,
only represent  /boot instate of / can make it works.



I think so
may be nait has 3 disks but leonxu has only 2...


我不这样认为
只有在安装grub的stage 1时
root (hdX, Y)
才代表 /boot,而在grub.conf中它还是代表/,我是试了n次才得出这样的经验的

我之所以让他用
root (hd2, 1)是因为我看到他的fstab中 / 是/dev/hdc2
根据grub的语法,应该用 (hd2, 1)来表示

这些都是经验之谈,也不是什么定律,反正我是屡试不爽,兄弟那边能否成功我就不敢保证了
回复 支持 反对

使用道具 举报

发表于 2005-4-27 13:10:19 | 显示全部楼层
Post by nait
我不这样认为
只有在安装grub的stage 1时
root (hdX, Y)
才代表 /boot,而在grub.conf中它还是代表/,我是试了n次才得出这样的经验的

我之所以让他用
root (hd2, 1)是因为我看到他的fstab中 / 是/dev/hdc2
根据grub的语法,应该用 (hd2, 1)来表示

这些都是经验之谈,也不是什么定律,反正我是屡试不爽,兄弟那边能否成功我就不敢保证了


只有2个硬盘, 应该是hda,hdb,
看来他的fstab是有问题.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-27 13:54:18 | 显示全部楼层
非常谢谢大家!
从讨论中学到不少. 我的问题还没有真正解决. 按现在判断应该是 Glue 大侠所说的 devfsd 的问题. l理由如下:
1 make menuconfig 找了一下, 发现其中确实有这样的文件, 不过是标记为obsolete. 可能因为我选的stage3是pentium4,  genkernel没有把这个device 编进去.
2 我用 nait 所说的方法 试了一下, 在我的机子上不成功. 如果没有记错, 在grub中,  hdn, n只计harddisk, 我的机子只有两个hardisk.  我改成:
title=GENTOO
root (hd0,1)
kernel (hd0,0)/kernel-2.6.11-gentoo-r3 ro root=/dev/hdc2

>>>>>reboot>>>>.
显示 文件格式 ext2, no kernel-2.6.11-gentoo-r3, 说明这些文件都没有传到 /boot (hdc1/(hd0,0).
所以原因不在 grub 设置, 而在于 grub 设置根本就没有保存.

3 reboot 不成功, 重新 chroot 进入. nano -w /boot/grub/grub.conf 编辑栏内一片漆黑,  如果再一次emerge grub, 再nano -w /boot/grub/grub.conf, 就可以看到上次的grub设置.
4 不知是否我的光盘有问题, 我选择自己编辑内核, make && make install_modules 运行到一定程度, 就会出现 ..........stop,
5 试用 emerge udev, 但是因为emerge hotplug, rc-update  总出问题. 所以这样也没成. 看到一些高手都用
emerge udev, 看来它是很中要的东东.
我是newbie,   错误和混乱的, 在所难免, 哈哈

大家的热心 鼓舞我 继续热爱 GUN/LINUX
回复 支持 反对

使用道具 举报

发表于 2005-4-27 14:46:17 | 显示全部楼层
Post by L0veyou
只有2个硬盘, 应该是hda,hdb,
看来他的fstab是有问题.


hda,hdb???? why i haven't seen them before???
Am i so ignorant??
回复 支持 反对

使用道具 举报

发表于 2005-4-27 16:20:38 | 显示全部楼层
这个要看内核日志的

或者在CHROOT后fdisk -l 也可以

我我觉得问题可能是在内核 devfs的选项问题上
回复 支持 反对

使用道具 举报

发表于 2005-4-27 19:31:37 | 显示全部楼层
When you compile the kernel, have you selected the /dev fs?
If so, cancle that option, and re-compile the kernel.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-27 20:11:24 | 显示全部楼层
[[When you compile the kernel, have you selected the /dev fs?

If so, cancle that option, and re-compile the kernel.]]

now i hvae no way:
@i try to complie the kernel myself, after
            # make && make install-modules ,     (failed) it run a moment, and stop with
                                                                                       " .......... stop" line.
@i try   #emerge -k hotplug                           (ok)
            # rc-update  add hotplug default        (failed)
            #emerge -k coldplug                          (ok)
            # rc-update  add coldplug default      (failed)
@i ignore them, and carry on
            #emerge udev                                   (ok)
.......reboot>>>>
it is the same like what i had reported :   

" mount: Mount devfs on /dev failed: no such device
Error opening file: "devfsd". no such file or directory

>>Determining root device.......
>> The root device is unspecified or not detected
回复 支持 反对

使用道具 举报

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

本版积分规则

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