|
|
按照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 |
|