Click to See Complete Forum and Search --> : Problem on booing Gentoo 1.4


satimis
10-11-2003, 12:36 PM
Hi all folks,

I just finished installation of Gentoo-Linux 1.4 On booting the new system it prompted

***************
Booting 'My example Gentoo Linux (genkernel)'
Filessytem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-KV root=/dev/hde3

Error 15: File not found
***************


My new Gentoo-Linux system
===========
Root hde3 (Reiserfs)
Boot hde1 (Ext3)
Swap hde2


I Booted with bootdiskette
=================
Grub loading Stage2
grub>

I tried following commands without success
grub> boot
Error 8: Kernel must be loaded before booting

grub> /boot/kernel-2.4.20-gentoo-r7
Error 27: Unrecognized command
etc.

Kindly advise how to proceed. Thanks in advance.

B.R.
satimis

sploo22
10-11-2003, 12:59 PM
Could you please post the contents of your /etc/grub.conf and /etc/fstab files? That would give us a bit more information.

TheFURY
10-11-2003, 01:14 PM
The install help says "Warning: Substitute KV with the kernel version you have installed. "

You need to boot off the live CD, mount boot partition and fix your grub/grub.conf to use kernel kernel-2.4.20-gentoo-r7.


Also make sure you have a symbolic link in boot's root thats called boot pointing to ./

satimis
10-12-2003, 06:51 AM
Hi,

Thanks for your advice.

Finally I got my problem fixed according to your advice. Now Gentoo can be started. I can mount CDRom but not Floppy.

# mount -t ext2 (ext3 or dos) /dev/fd0 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/fd0, or too many mounted file systems
I also tried
# mount /mnt/floppy with no result

My /etc/fstab
........
/dev/fd0 /mnt/floppy auto noauto, owner, kudzu
(I have this line "proc /proc proc default
whether I need it)

However '/boot/grub/grub.conf' disappears, both the folder 'grub' and 'grub.conf'

# updatedb
# locate grub.conf
/usr/share/doc/grub-0.93.20030118/grub.conf.sample.gz

Could not find it !!!!! There is nothing under /boot/


I still have following problems.

1) sound card could not be detected (I will deal it as a new issue in another posting)

2) bootdisk could not boot the new system automatically. It prompted;
grub>

(Remark: I created it according to Code listing 24.1 as follows)

# cd /usr/share/grub/i386-pc/
# cat stage1 stage2 > /dev/fd0

I could not mount it to read its content

3) I could not connect broadband

My /etc/conf.d/net
iface_eth1="dhcp" (only one line. only one ethernet card)

# adsl-setup (tried as ROOT and Super ROOT)
- bash: adsl-setup: command not found
# neat
- bash: neat: command not found

I need to connect to broadband because I expect to continue installing other packages such as KDE, GNOME and update them from Internet.

Any advice. Thanks in advance.

B.R.
satimis

dalek
10-12-2003, 07:36 AM
Don't delete the proc proc line. It won't boot anymore. Says so in my how to guide.

If you look at the Gentoo install guide it should tell you step by step for broadband. The CD has it by default I think. I have dial-up. Whole new problem.

Did you do this under section 17? USE="-X" emerge rp-pppoe then USE="-X bindist" emerge -K rp-pppoe

In my how to it's under section 21: Final Network Configuration. Boot time Network Configuration command is; rc-update add net.eth0 default.

Does that ring a bell? If not you may have missed a section or page.

Not a expert here. I took that from my how to.

Hope that helps

:D :D :D

satimis
10-12-2003, 09:08 AM
Originally posted by dalek
Don't delete the proc proc line. It won't boot anymore. Says so in my how to guide.

If you look at the Gentoo install guide it should tell you step by step for broadband. The CD has it by default I think. I have dial-up. Whole new problem.

Did you do this under section 17? USE="-X" emerge rp-pppoe then USE="-X bindist" emerge -K rp-pppoe

In my how to it's under section 21: Final Network Configuration. Boot time Network Configuration command is; rc-update add net.eth0 default.

Does that ring a bell? If not you may have missed a section or page.

Not a expert here. I took that from my how to.

Hope that helps

:D :D :D
Hi,

Thanks for your advice.

1)
>Don't delete the proc proc line. It won't boot
> anymore. Says so in my how to guide.

Noted with thanks

2)
>Did you do this under section 17? USE="-X"
>emerge rp-pppoe then USE="-X bindist" emerge -K
>rp-pppoe

I left this part because I thought it was irrelevant to my case. Shall I reboot the PC with Live-CD

# mount /dev/hda3 /mnt/gentoo
# chroot /mnt/gentoo /bin/bash

Repeat Code listing 17.1
# USE="-X" emerge rp-pppoe
# emerge -K rp-pppoe

OR can I boot the PC direct and
# chroot /mnt/gentoo /bin/bash

Repeat Code listing 17.1
# USE="-X" emerge rp-pppoe
# emerge -K rp-pppoe

3)
>In my how to it's under section 21: Final Network
>Configuration. Boot time Network Configuration
>command is; rc-update add net.eth0 default.

>Does that ring a bell? If not you may have missed
>a section or page.

I only completed 21.2 and 21.3 missing 21.4. Can I repeat them as procedure mentioned in 2) above.

plus
# cd /etc/init.d
# ln -s net.eth0 net.ethx

I have some confusion here. During installation, on adsl-setup, it said "eth1 is default" but I have only one NIC on this PC. What I shall add here.

On /etc/conf.d/net I set
iface_eth1="dhcp"

Shall I change it back to iface_eth0="dhcp"

B.R.
satimis

dalek
10-12-2003, 09:35 AM
If you have done the lilo or grub configuration you should be able to boot into Gentoo. Note I said should. Moon has to be just right, sitting on the right but cheek etc, etc.

If you haven't configured lilo or grub then keep going through the how to till you do and then boot into it. You should be able to do it when chrooted though, if you want. Lilo was easier for me. You have to cheat and copy the kernel into the boot directory though so it will see it. Follow the how to and see if it works though. Try both if needed and see if one works. Some prefer Grub. I can't see much difference.

If you only have one ethernet card then it will likely need to be eth0. Always remember that Linux starts with 0 not 1 like windoze.

Info, ppp is what the OS uses to connect to the internet. pppoe is ppp over ethernet. Make sense?

chroot only when in another distro or booted from the CD and wanting to run commands in Gentoo. If you boot into Gentoo you don't need to chroot because you are in there already. I did mine from Mandrake and it worked fine. Make sure you do all these commands:

mount -t proc proc /mnt/gentoo/proc
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile

If you are doing this from CD then you will have to go back a bit further to the part where you create the directory for gentoo and boot and such. Also make sure you have mounted both /mnt/gentoo and /mnt/gentoo/boot.

Out of curiosity, are you doing this from the CD or from another Linux distro? If from CD make sure you get all the info. That way you want have to mount and chroot so much.

I hope you are less confused than I am. :eek:

:D :D :D :D