LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo第一贴:内核启动求助

[复制链接]
发表于 2006-6-14 14:07:37 | 显示全部楼层 |阅读模式
按照gentoo.linuxsir的安装文档按部就班进行。。。
http://gentoo.linuxsir.cn/doc/cn/handbook/hb_part1_chap6.html
emerge system 后。。。自己下载了最新的内核kernel-2.6.17-rc6 ,make menuconfig  &&make modules_install &&make install 后,重启出现"VFS XXX root= XXX"错误该内核在fc5中编译通过了的,相关文件如下:
主要问题是怎要“指定” “/ ”分区,是通过/etc/fstab?安装FC5过程倒是直接在有相关部分去指定"/"分区,问题是安装gentoo仅仅是mke2fs ...mount ....tar .... ;如果出现上述启动错误,内核配置中的相关部分是什么?
fstab:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noauto,noatime  1 2
/dev/sda6               /               ext3            noatime         1 1
/dev/sda3               none            swap            sw              0 0
#/dev/cdroms/cdrom0     /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0
#sysfs                   /sys            sysfs           defaults        0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
~


用fc5中的grub启动 grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.17-rc6)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.17-rc6 ro root=LABEL=/1 resume=/dev/sda2 vga=792 rhgb quiet
        initrd /boot/initrd-2.6.17-rc6.img
title Fedora Core (2.6.16.20)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.16.20 ro root=LABEL=/1 vga=792 rhgb quiet
        initrd /boot/initrd-2.6.16.20.img
title Fedora Core (2.6.17-rc5)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.17-rc5 ro root=LABEL=/1 vga=792 rhgb quiet
        initrd /boot/initrd-2.6.17-rc5.img
#title Fedora Core (2.6.16-1.2122_FC5smp)
#       root (hd0,1)
#       kernel /boot/vmlinuz-2.6.16-1.2122_FC5smp ro root=LABEL=/1 vga=792 rhgb quiet
#       initrd /boot/initrd-2.6.16-1.2122_FC5smp.img
title Other OS:
        root
title  Gentoo  GNU/Linux
       root (hd0,5)
       kernel /boot/vmlinuz-2.6.17-rc6 ro root=/dev/sda6 vga=792

title  Microsft Windows XP
        rootnoverify (hd0,0)
        chainloader +1
~
~

help me
发表于 2006-6-14 14:30:42 | 显示全部楼层
$cd /boot
$sudo mkinitrd initrd-2.6.17-rc6.img 2.6.17-rc6 ;没有mkinitrd就emerge一个
然后再起动里面加句:
initrd /boot/initrd-2.6.17-rc6.img
回复 支持 反对

使用道具 举报

发表于 2006-6-14 16:06:13 | 显示全部楼层
需要make install吗?
回复 支持 反对

使用道具 举报

发表于 2006-6-14 16:28:35 | 显示全部楼层
把initrd这个写成
initrd /System.map
试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-14 17:35:17 | 显示全部楼层
我是第一次用gentoo,正在努力中。。。有些东西还搞不懂不过我发现我会爱上gentoo的:% ,谢谢。我这就去试试。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-15 22:33:09 | 显示全部楼层
解决了。问题是前几天我将bios的sata模式改成用ahci,而ahci我只是编译成了模块,所以启动时内核根本找不到我的硬盘和sda6。。。
回复 支持 反对

使用道具 举报

发表于 2006-6-16 15:21:41 | 显示全部楼层
请在标题中加上[已解决]之类的字样
回复 支持 反对

使用道具 举报

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

本版积分规则

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