LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2005-4-26 19:00:35 | 显示全部楼层 |阅读模式
因为喜欢LINUX的开放和自由, 我这个菜鸟不久前抛弃了WINDOWS, 投入到LINUX的大军之中. 最开始用的是RED HAT 9, 安装到是简洁, 可是为了上网的问题到是忙乎了一阵. 可以上网了, 高兴了一阵...  
  哎呀! 怎么搞的! 后来发现这个版本居然不能升级,  没有什么好说的, 换! 上网看大家的介绍, CENTOS 是完全可以当做REDHAT EL来用的. 真好, 何乐而不为? 俺现在主要就是用 CENTOS 4.
  .....
  听说高手们是 LFS, 这个吗, 俺真的不敢去试, 等到俺的基础知识更丰富一点再说.
  GENTOO, 拼写看起来和 CENTOS, 很相似的, 桌面图案又美伦美奂! 反正我有两个硬盘, 为什么不再装一个?
.......
    虽然我的计算机知识很菜,可是E文不菜,  对照HANDBOOK安装了N次, 都没有通过. 我真的是很生气. 天下哪有这样的道理!
问题不知出在哪里, 希望高手能够指教一二:
my hardware
cpu: pentium 4     1.8G
harddisk1 seagate 40G (gentoo :/boot  /  swap)
harddisk2 maxtor 40G (centos: /boot swap /)
还有其他的硬件都是LINUX支持的.

我安装 GENTOO  LINUX 2005, 用universal install CD 安装stage3, 安装好后 reboot >>
可以进入引导画面 gentoo 2005 / centos4, 选centos 可以正常进入系统. 选gentoo 2005, 运行一会,最终显示:
  {   root block device unspecified, or undetected.
     boot>  }

真的头大了. 除了内核是用 genkernel, 其它地方我觉得应该是没有问题的. (我在使用grub  时也发现只有手动设置 , 如果用 grub-install –-root-directory=/boot dev/hdc2 (说明:  / ), 也无法进入启动画面.

请哪位大虾给我指点, 从上面的显示来看,我应该怎样解决问题? 早日解除不能安装gentoo的痛苦.
发表于 2005-4-26 19:20:44 | 显示全部楼层
root block device unspecified, or undetected.

把grub。conf帖出来
回复 支持 反对

使用道具 举报

发表于 2005-4-26 20:06:01 | 显示全部楼层
还有/etc/fstab 以及你使用的分区类型
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 23:07:15 | 显示全部楼层
没有想到这么快就有人来相助, 先谢谢你们!
下面是我的一些设置情况:
Disk /dev/hdc
/dev/hdc1              1              13                      83              
/dev/hdc2              14                                      83            
/dev/hdc3              988                                    82              
/dev/hdc4             1051                                   5
/dev/hdc5            1051                                   83
/dev/hdc6            2025                                   83
/dev/hdc7             2999                                   83
/dev/hdc8             3793          4685                 83

/etc/fstab
/dev/hdc1           /boot              ext2           defaults     1   2
/dev/hdc2            /                    ext3           defaults      0  1
/dev/hdc3           none               swap             sw          0   0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660  noauto, ro  0  0
/dev/fd0      /mnt/floppy        auto                default      0  0

/boot/grub/grub.conf

default   0
timeout   30
splashimage=(hd0,0)/grub/splash.xmp.gz

title=GENTOO
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc
real_root=dev/hdc2
initrd=/initrd-2.6.11-gentoo-r3

title=CENTOS
root (hd1,0)
makeactive
loadchain +1

说明: 我用的stage3是  stage3-2005(pentium4),  内核用genkernel,  


grub设置完后,reboot__

GENTOO / CENTOS>>GENTOO>>>>>>>
.
.
.
.
scaning for

>> Mount filesystem
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
回复 支持 反对

使用道具 举报

发表于 2005-4-26 23:24:37 | 显示全部楼层
Try the gentoo installation guide

title=Gentoo Linux 2.6.11-r3
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda1
... ...

I'm a new guy about gentoo, if there's sth. wrong, pleas forgive me~~~
回复 支持 反对

使用道具 举报

发表于 2005-4-26 23:29:32 | 显示全部楼层
[/etc/fstab
/dev/hdc1           /boot              ext2           defaults     1   2
/dev/hdc2            /                    ext3           defaults      0  1
/dev/hdc3           none               swap             sw          0   0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660  noauto, ro  0  0
/dev/fd0      /mnt/floppy        auto                default      0  0

title=GENTOO
root (hd0,0)# should be  root (hd2,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc # root=/dev/hdc2
#real_root=dev/hdc2
initrd=/initrd-2.6.11-gentoo-r3

这好像有点问题,初学者不确定的说!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 23:56:41 | 显示全部楼层

谢谢提醒..

我可以按照你说的试一下, 但是手册上的root(0,0), 理解应该指的是/boot 分区. 但是有一句说明
make sure that anything that follows a GRUB-device(such as (hd0,0) is relative to the mount point, not the root.
, 我不知究竟是说 / 还是/boot.
但是同手册上的分区相套,总不应该错呀.

我用的是genkernel, 所以是用的是 grub.conf for genkernel users
回复 支持 反对

使用道具 举报

发表于 2005-4-27 09:11:43 | 显示全部楼层
Post by leonxu
没有想到这么快就有人来相助, 先谢谢你们!
下面是我的一些设置情况:
Disk /dev/hdc
/dev/hdc1              1              13                      83              
/dev/hdc2              14                                      83            
/dev/hdc3              988                                    82              
/dev/hdc4             1051                                   5
/dev/hdc5            1051                                   83
/dev/hdc6            2025                                   83
/dev/hdc7             2999                                   83
/dev/hdc8             3793          4685                 83

/etc/fstab
/dev/hdc1           /boot              ext2           defaults     1   2
/dev/hdc2            /                    ext3           defaults      0  1
/dev/hdc3           none               swap             sw          0   0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660  noauto, ro  0  0
/dev/fd0      /mnt/floppy        auto                default      0  0

/boot/grub/grub.conf

default   0
timeout   30
splashimage=(hd0,0)/grub/splash.xmp.gz

title=GENTOO
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc
real_root=dev/hdc2
initrd=/initrd-2.6.11-gentoo-r3

title=CENTOS
root (hd1,0)
makeactive
loadchain +1

说明: 我用的stage3是  stage3-2005(pentium4),  内核用genkernel,  


grub设置完后,reboot__

GENTOO / CENTOS>>GENTOO>>>>>>>
.
.
.
.
scaning for

>> Mount filesystem
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


嗯,有单独的boot分区,以我的经验来看,应该这样就可以了
  1. title=GENTOO
  2. [color=Red]root (hd2,1)[/color]
  3. kernel [color=Red](hd2,0)[/color]/kernel-2.6.11-gentoo-r3 ro root=/dev/hdc2
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-4-27 09:36:51 | 显示全部楼层
scaning for

>> Mount filesystem
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


是不是该看一看devfsd有没有问题啊,我是用的udev代替devfsd
emerge udev
回复 支持 反对

使用道具 举报

发表于 2005-4-27 10:33:53 | 显示全部楼层
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
root device
Set the current root device to the device device, then attempt to mount it to get the partition size...


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~~
回复 支持 反对

使用道具 举报

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

本版积分规则

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