LinuxSir.cn,穿越时空的Linuxsir!

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

我下了个gentoo2005的universal的盘,怎么安装??

[复制链接]
发表于 2005-4-28 15:02:23 | 显示全部楼层 |阅读模式
无网络的,第一次用,请赐教!!
发表于 2005-4-28 15:43:32 | 显示全部楼层
请查本版精华区或看官方安装手册--资料很多的。
回复 支持 反对

使用道具 举报

发表于 2005-4-28 18:26:05 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-28 18:40:41 | 显示全部楼层
已经看了,装到chroot者一步后,说是要用emerge kernel,可是我是用无网络安装啊,难道者张盘里没有kernel吗??谢谢帮助!!
回复 支持 反对

使用道具 举报

发表于 2005-4-28 21:28:05 | 显示全部楼层
看handbook~
# emerge gentoo-sources
回复 支持 反对

使用道具 举报

发表于 2005-4-28 21:46:26 | 显示全部楼层
一边看文档,一边安装阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-28 22:09:32 | 显示全部楼层
就是按照文档做的啊,到了内核这一步就是过步去,文档上是emerge genkernel,然后就是genkernel --udev all,可是/usr/src下根本就没有linux内核。痛苦.................................,大家给提供点安装经验。
回复 支持 反对

使用道具 举报

发表于 2005-4-28 22:14:00 | 显示全部楼层
拷贝光盘上得kernel源代码,然后emerge阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-28 22:27:22 | 显示全部楼层
说说方法哥们,在此感谢!!
回复 支持 反对

使用道具 举报

发表于 2005-4-28 22:59:52 | 显示全部楼层
emerge genkernel是第二种方法.
handhook上说:

7.d. Alternative: Using genkernel

If you are reading this section, you have chosen to use our genkernel script to configure your kernel for you.

Now that your kernel source tree is installed, it's now time to compile your kernel by using our genkernel script to automatically build a kernel for you. genkernel works by configuring a kernel nearly identically to the way our Installation CD kernel is configured. This means that when you use genkernel to build your kernel, your system will generally detect all your hardware at boot-time, just like our Installation CD does. Because genkernel doesn't require any manual kernel configuration, it is an ideal solution for those users who may not be comfortable compiling their own kernels.

Now, let's see how to use genkernel. First, emerge the genkernel ebuild:

Code listing 15: Emerging genkernel

# emerge genkernel



Next, copy over the kernel configuration used by the Installation CD to the location where genkernel looks for the default kernel configuration:

Code listing 16: Copying over the Installation CD kernel config

# zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-2.6



Now, compile your kernel sources by running genkernel --udev all. Be aware though, as genkernel compiles a kernel that supports almost all hardware, this compilation will take quite a while to finish!

Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you might need to manually configure your kernel using genkernel --menuconfig all and add support for your filesystem in the kernel (i.e. not as a module). Users of EVMS2 or LVM2 will probably want to add --evms2 or --lvm2 as argument as well.

Code listing 17: Running genkernel

# genkernel --udev all



Once genkernel completes, a kernel, full set of modules and initial root disk (initrd) will be created. We will use the kernel and initrd when configuring a boot loader later in this document. Write down the names of the kernel and initrd as you will need it when writing the bootloader configuration file. The initrd will be started immediately after booting to perform hardware autodetection (just like on the Installation CD) before your "real" system starts up.

Code listing 18: Checking the created kernel image name and initrd

# ls /boot/kernel* /boot/initrd*



Now, let's perform one more step to get our system to be more like the Installation CD -- let's emerge coldplug. While the initrd autodetects hardware that is needed to boot your system, coldplug autodetects everything else. To emerge and enable coldplug, type the following:

Code listing 19: Emerging and enabling coldplug

# emerge coldplug
# rc-update add coldplug boot



If you want your system to react to hotplugging events, you will need to install and setup hotplug as well:

Code listing 20: Emerging and enabling hotplug

# emerge hotplug
# rc-update add hotplug default



Now continue with Configuring your System.


--------------------------------------------------------------------------------
回复 支持 反对

使用道具 举报

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

本版积分规则

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