LinuxÒÁµéÔ°ÂÛ̳'s Archiver

xiaohao98 ·¢±íÓÚ 2004-9-10 11:44

Ó²Å̰²×°gentoo¹ý³ÌÖеÄÒ»¸öÎÊÌâ

ÎÒÊÇÔÚrh9ÏÂÀûÓÃÓ²Å̰²×°,swap¹²Ïí,Áí¹ÒÒ»¸öÓ²Å̸øgentoo,Õû¸ö·ÖÇø¶¼¸ø/,°´ÕÕÓ²Å̰²×°µÄ·½·¨,¹ÒÔØ/mnt/gentoo /dev/hdc1,½âѹstage.....,emerge rsync.һ·ok.µ±ÅäÖÃÍê/etc/fstabºó,Ö´Ðе½°²×°ÄÚºËÔ´¼þʱ,ÎÒÑ¡ÔñÁ˰²×°sourecs°æ±¾,ÓÚÊÇ#emerge -k sys-kernel/gentoo-sources(ÎÒÒ»Ö±Ï벻ͨÕâÀïµÄgentoo-sourcesµÄÄں˰æÊǶàÉÙÄØ,°¦²»¹ÜÀ²,ÕÕ×ö).½Ó×Å#emerge genkernelÒ²ok,ÔÙÖ´ÐÐgenkernel --menuconfig allʱ±¨´í.ÈçÏÂ
* Gentoo Linux Genkernel; Version 3.0.2c
grep: /usr/src/linux/Makefile: ûÓÐÄǸöÎļþ»òĿ¼
grep: /usr/src/linux/Makefile: ûÓÐÄǸöÎļþ»òĿ¼
grep: /usr/src/linux/Makefile: ûÓÐÄǸöÎļþ»òĿ¼
grep: /usr/src/linux/Makefile: ûÓÐÄǸöÎļþ»òĿ¼
* Compiling Linux Kernel .. for x86...

egrep: /proc/mounts: ûÓÐÄǸöÎļþ»òĿ¼
Error, do this: mount -t proc none /proc
* ERROR: Error: No kernel .config specified, or file not found!

* -- Grepping log... --

* Gentoo Linux Genkernel; Version 3.0.2c
* Compiling Linux Kernel .. for x86...
* ERROR: Error: No kernel .config specified, or file not found!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email]genkernel@gentoo.org[/email]. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
ÎÒÓÚÊÇÊÖ¶¯¹ÒÔØmount -t proc none /proc,ÔÙÖ´Ðл¹ÊÇûÓÃ.ÓÚÊÇÎÒÌø¹ýÕâÒ»²½,°´ÕÕ½ÓÏÂÀ´µÄ²½ÖèÒ»Ò»×öÏÂÈ¥,Ö±µ½×îºó°²×°ºÃÁËgrub,ÅäÖÃgrub.confʱ,ÎÒ²ÅÓôÃÆµÄÎÒµÄÄں˰汾µ½µ×Ìî¶àÉÙÄØ,×îºó±£´æÍ˳ö.Æô¶¯²»ÁË.ÆäʵÎÒÏëÎÒµÄÄں˸ù±¾¾ÍûÓбàÒë³É¹¦,ÔÚ/mnt/gentoo/boot/ϸù±¾Ã»¿´µ½ÄÚºËÎļþѽ.¿ÉÎÒÓÖ²»ÖªµÀʲô,»¹Çë¸÷λ´óÏÀÖ¸µãÃÔ½ò!Ŷ,żÔÚÅäÖÃfstabµÄÎļþʱ³öÁ˵ãС´íÎó,¾ÍÊǰÑ/procÕâÐÐд´íÀ²,²»¹ýÎÒ·¢ÏÖºóÓÖ»ØÍ·À´¸ÄÕýÀ².²»ÖªµÀÕâ»á²»»áÊÇÓ°Ïì±àÒë²»³É¹¦µÄÔ­Òò.ÎÒÏÖÔÚµÄfstabÄÚÈÝÊÇ:
/dev/hdc1               /               reiserfs        defaults         0 0
/dev/hda3               none            swap            sw               0 0
proc                   /proc            proc            defaults         0 0
ʧ°Ü!

storm the front ·¢±íÓÚ 2004-9-10 11:56

Ò»¶¨ÒªÏÈmount -t proc none /procºóchrootµ½ÐµÄgentoo»·¾³Ï²ÅÄܱàÄں˵Ä

tseteen ·¢±íÓÚ 2004-9-10 12:08

ÖØÐ±àÄÚºË

·çÖÐ×··ç ·¢±íÓÚ 2004-9-10 14:05

ÄãµÄÄÚºËû±à¹ý°É£¿
#emerge gentoo-dev-sources
#cd /usr/src/linux
#make menuconfig
#make
#make modules
#make modules_install
È»ºóÊÖ¶¯¿½±´Äں˵½/bootÀ½Ó×ÅÔÚgrub.confÀï¼ÓÈëgentooµÄÆô¶¯Ïî¡£

xiaohao98 ·¢±íÓÚ 2004-9-10 14:28

ÔÙÀ´Ò»´Î.gentoo,ÎÒÒÀÈ»°®ÄãÈç¹Ê.¹þ¹þ~~~~~

·çÖÐ×··ç ·¢±íÓÚ 2004-9-10 14:40

²»ÓÃÍêÈ«ÖØÀ´£¬ÖØÐÂchroot½øÈ¥±àÒëÄں˰É

xiaohao98 ·¢±íÓÚ 2004-9-10 14:44

·çÐÖ,ÎÒÏÖÔÚ½øÈëµ½RHÏÂ,ÏȹÒÔØÉÏ
#mount /dev/hdc1 /mnt/gentoo
#mount -t proc none /proc
#chroot /mnt/gentoo /bin/bash
ÎÒ¾ÍÖ±½ÓתÈëµ½
#emerge gentoo-dev-sources(ÊDz»ÊǵÃ#usr/sbin/dnv-update,.......emerge rsync´ÓÍ·ÔÙÀ´Ò»ÆªÑ½)
±¨´íÈçÏÂ:
Calculating dependencies ...done!

!!! Error: the virtual/modutils package conflicts with another package.
!!!        both can't be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.
²¢ÇÒÎÒ·¢ÏÖÎÒµÄ/usr/srcÏÂûÓÐlinuxĿ¼.ÈçºÎ½â¾öѽ,µÃ´ÓÍ·À´Âï?:confused:

·çÖÐ×··ç ·¢±íÓÚ 2004-9-10 14:54

RH주
#mount /dev/hdc1 /mnt/gentoo
#mount -o bind /dev /mnt/gentoo/dev
#mount -o bind /proc /mnt/gentoo/dev
#chroot /mnt/gentoo /bin/bash
ÕâÑù¾Í½øÈëgentoo»·¾³ÁË£¬
#env-update
#source /etc/profile
rsync²»ÓÃÁË
°²×°devµÄÄںˣº
#emerge gentoo-dev-sources
£¨ÆäËüÄں˿ÉÒÔ¿´/usr/portage/sys-kernel)
ÍêÁ˺ó¾ÍÓÐ/usr/src/linuxÁË£¬ÔÙ½øÈëlinxuĿ¼±àÒëÄÚºË
#cd /usr/src/linux
±àÒëÄں˲»ÓÃ˵Á˰É

tseteen ·¢±íÓÚ 2004-9-10 14:54

#emerge -p gentoo-dev-sources

xiaohao98 ·¢±íÓÚ 2004-9-10 15:07

[root@atoll root]# mount -o bind /dev /mnt/gentoo/dev
[root@atoll root]# mount -o bind /proc /mnt/gentoo/dev
[root@atoll root]# chroot /mnt/gentoo /bin/bash
bash-2.05b# env-update
[] bash: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
/sbin/depscan.sh: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
/sbin/depscan.sh: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
* Caching service dependencies...
/sbin/depscan.sh: line 23: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
*  Could not create needed directory '/var/lib/init.d/softscripts'!
/sbin/depscan.sh: line 23: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
*  Could not create needed directory '/var/lib/init.d/snapshot'!
/sbin/depscan.sh: line 23: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
*  Could not create needed directory '/var/lib/init.d/options'!
/sbin/depscan.sh: line 23: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
*  Could not create needed directory '/var/lib/init.d/started'!
/var/lib/init.d/depcache: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
7G  [ ok ]nit.d/depcache: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
bash-2.05b# source /etc/profile
bash: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
bash: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
tseteen´óÏÀµÄ#emerge -p gentoo-dev-sources¿ÉÒÔÖ´ÐÐ,µ«½ÓÏÂÀ´»¹ÊÇÎÞ·¨¼ÌÐø.ÕæÊǹֵֹÄ

·çÖÐ×··ç ·¢±íÓÚ 2004-9-10 15:13

-pÊÇʲôÐÅÏ¢ÄØ£¿

xiaohao98 ·¢±íÓÚ 2004-9-10 15:22

ËÀÂíµ±³É»îÂíÒ½°É.ÎÒÒ²²»ÖªµÀÒâ˼,ºÇºÇ,ÊÔÒ»ÊÔ.

:w

tseteen ·¢±íÓÚ 2004-9-10 15:35

¿´¿´#MAKEDEV
¿ªÊ¼Ã»ÓÐmount procµÄ½á¹û

xiaohao98 ·¢±íÓÚ 2004-9-10 16:03

Ö´ÐÐemerge -p gentoo-dev-sources,ÓÐÈçϽá¹û
atoll / # emerge -p gentoo-dev-sources
[] bash: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼
[] bash: line 1: /dev/null: ûÓÐÄǸöÎļþ»òĿ¼

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] sys-apps/modutils ("virtual/modutils" from pkg sys-apps/module-init-tools-3.0-r2)
[ebuild  N    ] dev-libs/ucl-1.01-r1
[ebuild  N    ] sys-apps/module-init-tools-3.0-r2
[ebuild  N    ] sys-kernel/gentoo-dev-sources-2.6.8-r3
atoll / #

tseteen ·¢±íÓÚ 2004-9-10 17:03

ÊÔÊÔ
chroot½øgentooºó£¬mount -t proc proc /proc

Ö´ÐÐ#MAKEDEV
#emerge -C modutils
#emerge gentoo-dev-sources

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.