Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] an aid to load the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 2:11 pm    Post subject: [SOLVED] an aid to load the kernel Reply with quote

Hello, I am a new user and I can not complete the installation.
Exactly: I can not loaded to Kernel
Presumably I have done with menuconfig compile errors.
This is my pc
Code:
lspci -n

Quote:
00:00.0 0600: 1022:9601
00:01.0 0604: 1022:9602
00:0a.0 0604: 1022:9609
00:11.0 0106: 1002:4391
00:12.0 0c03: 1002:4397
00:12.1 0c03: 1002:4398
00:12.2 0c03: 1002:4396
00:13.0 0c03: 1002:4397
00:13.1 0c03: 1002:4398
00:13.2 0c03: 1002:4396
00:14.0 0c05: 1002:4385 (rev 3c)
00:14.2 0403: 1002:4383
00:14.3 0601: 1002:439d
00:14.4 0604: 1002:4384
00:18.0 0600: 1022:1200
00:18.1 0600: 1022:1201
00:18.2 0600: 1022:1202
00:18.3 0600: 1022:1203
00:18.4 0600: 1022:1204
01:05.0 0300: 1002:9710
02:00.0 0200: 10ec:8136 (rev 05)

This is my Device driver check e report
Quote:
PCI ID Works? Vendor Device Driver Kernel
10229601 Advanced Micro Devices [AMD] RS880 Host Bridge
10229602 Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (int gfx)
10229609 Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
10024391 Yes ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] ahci v2.6.25-
10024397 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
10024398 ATI Technologies Inc SB7x0 USB OHCI1 Controller
10024396 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
10024397 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
10024398 ATI Technologies Inc SB7x0 USB OHCI1 Controller
10024396 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
10024385 Yes ATI Technologies Inc SBx00 SMBus Controller i2c-piix4,sp5100_tco v2.6.25-
10024383 Yes ATI Technologies Inc SBx00 Azalia (Intel HDA) snd-hda-intel v2.6.25-
1002439d ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller
10024384 ATI Technologies Inc SBx00 PCI to PCI Bridge
10221200 Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
10221201 Advanced Micro Devices [AMD] Family 10h Processor Address Map
10221202 Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
10221203 Yes Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control k10temp v2.6.33-
10221204 Advanced Micro Devices [AMD] Family 10h Processor Link Control
10029710 Yes ATI Technologies Inc RS880 [Radeon HD 4200] radeon v2.6.35-
10ec8136 Yes Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller r8169 v2.6.25-

This is my partitions
Quote:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a5a00

Device Boot Start End Blocks Id System
/dev/sda1 2048 4196351 2097152 83 Linux
/dev/sda2 4196352 8390655 2097152 82 Linux swap / Solaris
/dev/sda3 8390656 322963455 157286400 83 Linux
/dev/sda4 322963456 625141759 151089152 5 Extended

This is my /etc/make.conf
Quote:
These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
LINGUAS="it en"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/"

SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"

I use Manual Configuration for the Kernel
This is my modules
Code:
find /lib/modules/2.6.39-gentoo-r3/ -type f -iname '*.o' -or -iname '*.ko' | less

Quote:
/lib/modules/2.6.39-gentoo-r3/kernel/arch/x86/kernel/test_nx.ko
/lib/modules/2.6.39-gentoo-r3/kernel/net/netfilter/xt_mark.ko
/lib/modules/2.6.39-gentoo-r3/kernel/drivers/scsi/scsi_wait_scan.ko
/lib/modules/2.6.39-gentoo-r3/kernel/drivers/watchdog/hpwdt.ko
lines 1-4/4 (END)

This is my /etc/fstab
Quote:
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / ext4 noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0

This is my /boot/grub/grub.conf
Quote:
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo 1
root (hd0,0)
kernel (hd0,0)/kernel-genkernel-x86-2.6.39-gentoo-r3 real_root=/dev/sda3 rootfs$
initrd (hd0,0)/initramfs-genkernel-x86-2.6.39-gentoo-r3
title Gentoo 2

root (hd0,0)
kernel (hd0,0)/kernel-genkernel-x86-2.6.39-gentoo-r3 root=/dev/ram0 real_root=/$
initrd (hd0,0)/initramfs-genkernel-x86-2.6.39-gentoo-r3

title Gentoo 3
root (hd0,0)
kernel (hd0,0)/kernel-genkernel-x86-2.6.39-gentoo-r3 real_root=/dev/sda3 rootfs$

After rebooting I got this
http://www.freeimagehosting.net/ae7ff
and this for any booting
http://www.freeimagehosting.net/36115
I can not get into the system.
Do you have any suggestions for me? I do not know what else I can do
Please note that: I am very very n00bie. :oops:


Last edited by looca on Sun Sep 25, 2011 4:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Sep 25, 2011 2:42 pm    Post subject: Reply with quote

looca,

Your /etc/fstab is incorrect. The Words BOOT SWAP and ROOT need to be replaced with your corresponding partitions. like sda1, sda2 and sda3 or whatever you used in your install.

Your first image shows that you got to the grub menu. It correctly shows the three titles you have specified.
If you wait for
Code:
timeout 30
seconds then
Code:
default 0
which is
Code:
title Gentoo 1
will be started.

Your
Code:
Error 15: File not found
means that either the file called kernel-genkernel-x86-2.6.39-gentoo-r3 or initramfs-genkernel-x86-2.6.39-gentoo-r3 does not exist in your /boot, or more exactly, the partition (hd0,0)

Boot your liveCD and mount your /boot (not root) partition.
Code:
mount /dev/sda1 /mnt/gentoo
cd /mnt/gentoo
ls
will show the names of the files in your /boot

Post them and we can tell you what to write in your grub.conf

You have not yet got to the point where your /etc/fstab will cause you a booting error. Do you need details on how to fix it too?
Hint: mount your root filesystem and /etc/fstab will be at /mnt/gentoo/etc/fstab The handbook has something to say about editing your fstab.

There is no shame in being a noob. We all remember our first steps in Gentoo.

Hmm ... why did you do a 32 bit install on a 64 bit machine?
How much RAM do you have?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 2:49 pm    Post subject: Reply with quote

First of all, thanks for the encouragement :)
I followed your advice
Quote:
root@Host-002 /root % cd /mnt/gentoo
root@Host-002 /mnt/gentoo % ls
bin home mnt root tmp
boot lib opt sbin usr
dev lost+found portage-latest.tar.bz2 stage3-i686-20110920.tar.bz2 var
etc media proc sys

Regards
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Sep 25, 2011 3:03 pm    Post subject: Reply with quote

looca,

That ls shows the content of your root filesystem, not boot.
That would be correct for going on to fix /etc/fstab. Notice that /etc is listed there.

If you really did
Code:
mount /dev/sda1 /mnt/gentoo
and not
Code:
mount /dev/sda3 /mnt/gentoo

Then your root is at /dev/sda1 not the more usual /dev/sda3
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 3:11 pm    Post subject: Reply with quote

Sorry,
Quote:
root@Host-002 /root % mount /dev/sda1 /mnt/gentoo
root@Host-002 /root % cd /mnt/gentoo
root@Host-002 /mnt/gentoo % ls
boot grub kernel-2.6.39-gentoo-r3 lost+found
bzImage-2.6.39-gentoo-r3 grub.conf kernel-2.6.39-r3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Sep 25, 2011 3:53 pm    Post subject: Reply with quote

looca,

You have three possible kernel files there
Code:
kernel-2.6.39-gentoo-r3
bzImage-2.6.39-gentoo-r3
kernel-2.6.39-r3
and no initdrd files. Thats OK as an initrd is not essential to being able to boot.

From your grub.conf you attempt to load a kernel file called kernel-genkernel-x86-2.6.39-gentoo-r3 in each of your boot stanzas.
That file does not exist.

Edit your Gentoo 1 part of grub.conf as follows.


Code:
title Gentoo 1
root (hd0,0)
kernel (hd0,0)/kernel-2.6.39-gentoo-r3 root=/dev/sda3
#initrd (hd0,0)/initramfs-genkernel-x86-2.6.39-gentoo-r3


Notice that the kernel file name matches one of the kernel files in your /boot.
Notice too that all references to the initrd have been removed or commented out.

This will get ride of your Error 15 and allow you to get to your next Gentoo learning experience :)

You can make the edit by mounting yout boot (not root) as you did above then doing
Code:
nano -w /mnt/gentoo/grub/grub.conf

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 4:32 pm    Post subject: Reply with quote

http://www.freeimagehosting.net/79294
http://www.freeimagehosting.net/5f178
I am inside Gentoo! :D

but I not remember my login. :cry:

Can I recover login and password cdlive?
Thank you, you were very kind and patient with me.
P.S.
I only remember to have changed the password and I changed "localhost" with "loocagentoo" but not remember if I gave this name to login.

:D Hurray :D
loocagentoo login is "root"

I'm very happy. I begin gentoo's adventure
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Sep 25, 2011 5:01 pm    Post subject: Reply with quote

looca,

Congratulations.

Your image shows you did not fix your /etc/fstab
Look at the line that starts swapon: /dev/SWAP
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 5:11 pm    Post subject: Reply with quote

I can also do it now or do I only with cdlive?

Last edited by looca on Sun Sep 25, 2011 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Sep 25, 2011 5:18 pm    Post subject: Reply with quote

looca,

Boot normally. You will only need the CD again when you make a mess and need to recover your install.

Open the file in the editor with
Code:
nano -w /etc/fstab

Replace the words BOOT SWAP and ROOT with the actual partitions names
so BOOT will become sda1 and so on.

You have a 64 bit PC yet you installed 32 bit Gentoo.
Why was that?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Sun Sep 25, 2011 5:26 pm    Post subject: Reply with quote

Thanks,
I don't have 64bit but just 32.
My pc is
Desktop Computer HP Business Desktop XT248EA - AMD Athlon II X2 250 3 GHz - Micro Tower - 2 GB RAM - 320 GB HDD - Masterizzatore DVD LightScribe - ATI Radeon 4200 Scheda grafica - FreeDOS - DVI
UPDATE
A tip: it is preferable to first clean the disk
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=11
or install Xorg?
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Mon Sep 26, 2011 12:46 am    Post subject: Reply with quote

Athlon II X2 250 is 64 bit
Code:
cat /proc/cpuinfo

_________________
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Back to top
View user's profile Send private message
looca
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2011
Posts: 79
Location: Firenze

PostPosted: Mon Sep 26, 2011 3:51 pm    Post subject: Reply with quote

Oh my Gosh! :(

can I fix it without having to start all over again?
Or my Gentoo work the same way too?
:roll:
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Mon Sep 26, 2011 5:56 pm    Post subject: Reply with quote

looca wrote:
Oh my Gosh! :(

can I fix it without having to start all over again?
Or my Gentoo work the same way too?
:roll:

you would have to start over.

don't think you will notice a difference.

http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#perfup

next time :wink:
_________________
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Sep 26, 2011 6:13 pm    Post subject: Reply with quote

looca,

If you want a 64 bit install, you will have to start again.

Its not worth it if you have 2Gb RAM or less, unless you run scientific applications that will benefit from better memory management and the bigger pointer size. A 32 bit install manages memory well up to 1G. Between 1G and 2G there are some compromises. Above 2G there are even more compromises.
If you plan to upgrade your hardware to > 2G RAM, you should probably switch to amd64 now.

The x86 (32 bit) Gentoo is beginning to lag behind the amd64 (64 bit) Gentoo as there is more testing on 64 bit, just because 64 bit is more popular than 32 bit now.

You can actually add a 64 bit install beside your current 32 bit install if you make space for a 64 bit root partition.
swap and boot can and should be shared. You will need to boot from a CD again as you will need a 64 bit kernel to carry out a 64 bit install.
Be careful not to overwrite your 32 bit kernel with a 64 bit kernel. Its easiest if you use two different kernel versions.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum