Problem on installing Gentoo


Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Problem on installing Gentoo

  1. #1
    Join Date
    Jul 2003
    Posts
    2,021

    Problem on installing Gentoo

    Hi folks,

    Guide:-
    Gentoo Linux AMD64 Handbook

    Ran "install-minimal-2006.1" CD to install Gentoo. Installation went through without difficulty. Grub started but ending at "Error 15 : File not found".

    I installed grub manually with;
    # cat << EOF | grub
    > root (hd0,0)
    > setup (hd0)
    > EOF
    ...... (hd0,0)/boot/grub/stage2/boot/grub/menu.lst...succeeded.

    Kernel image has to be copied manually;
    # cp arch/x86_64/boot/bzImage /boot/linux-2.6.17-gentoo-r5

    # ls -al /boot/
    .keep
    boot -> .
    grub
    linux-2.6.17-gentoo-r5
    loar+found
    * end *

    What is ".keep" there ?

    /boot/grub/grub.conf
    ...
    ....
    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2

    I could not resolve once exiting "chroot" Re-entering chroot environment could not find "env-update, emerge, /src/, /modules/" commands and directories. I tried many times.

    Advice would be appreciated. TIA

    B.R.
    satimis
    Last edited by satimis; 09-04-2006 at 10:51 AM.

  2. #2
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,281
    # cp arch/x86_64/boot/bzImage /boot/linux-2.6.17-gentoo-r5
    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2

    r5vsr7

  3. #3
    Join Date
    Jul 2003
    Posts
    2,021
    Hi dkeav,

    Just rechecked the notes;
    It should be :-
    # cp arch/x86_64/boot/bzImage /boot/linux-2.6.17-gentoo-r7

    Sorry for the typing mistake on my posting.

    B.R.
    satimis

  4. #4
    Join Date
    Jul 2003
    Location
    Spokane, Washington
    Posts
    580
    Quote Originally Posted by satimis
    I could not resolve once exiting "chroot" Re-entering chroot environment could not find "env-update, emerge, /src/, /modules/" commands and directories. I tried many times.
    Either your installation went rather awry, or you didn't mount your entire system into /mnt/gentoo before chrooting back into it.

  5. #5
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,898
    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7

    make sure your grub.conf has that ^ ^

    .keep files are to make sure certain directories aren't removed when you unmerge something.
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  6. #6
    Join Date
    Aug 2005
    Location
    Ireland
    Posts
    20
    I get this error also. I have no idea why I get it.
    If I boot to the grub prompt, and type exactly the same as I have in my menu.lst, and type boot, gentoo boots normally.
    So if I type:
    root (hd0,4)
    kernel /vmlinuz noapictimer root=/dev/hda7
    boot
    My AMD64 Laptop boots mormally.

    If you try typing:

    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2
    boot

    Your pc should boot
    DOS - Denial Of Service

    Linux user 315438

  7. #7
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,898
    grub
    > root (hd0,0)
    > setup (hd0)

    should fix it so that the grub menu is displayed...
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  8. #8
    Join Date
    Jul 2003
    Posts
    2,021
    Hi KieranCorkBoy,

    If you try typing:

    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2
    boot

    Your pc should boot
    Tried as follows;
    grub> root (hd0,0)
    Code:
    Filesystem type is ext2fs, partition type 0x83
    grub> kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2 [ENTER]
    Code:
    Error 15: File not found
    Remark;
    During installation after chroot, I ran;

    # ls -l /usr/src/linux
    Code:
    lrwxrwxrwx  1  root  root ...... /usr/src/linux -> linux-2.6.17-gentoo-r7
    I used it as kernel name.

    B.R.
    satimis
    Last edited by satimis; 09-05-2006 at 11:58 AM.

  9. #9
    Join Date
    Jul 2003
    Posts
    2,021
    Hi Pafnoutios,

    Either your installation went rather awry, or you didn't mount your entire system into /mnt/gentoo before chrooting back into it.
    I mounted all device, partitions, etc. as follows;
    mount /dev/hda2 /mnt/gentoo
    mount /dev/hda1 /mnt/gentoo/boot
    mount /dev/vg/usr /mnt/gentoo/usr
    mount /dev/vg/home /mnt/gentoo/home
    mount /dev/vg/opt /mnt/gentoo/opt
    mount /dev/vg/var /mnt/gentoo/var
    mount /dev/vg/tmp /mnt/gentoo/tmp
    mount -t proc none /mnt/gentoo/proc
    mount -o bind /dev /mnt/gentoo/dev

    same as running chroot the first time. I tried many times with same result. After rechroot, env-update, emerge, /src, /modules, etc. no tound.

    B.R.
    satimis

  10. #10
    Join Date
    Jul 2003
    Posts
    2,021
    Hi je_fro,

    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7

    make sure your grub.conf has that ^ ^
    /boot/grub/grub.conf;
    Code:
    timeout 30
    default 0
    fallback 1
    splashimage=(hd0,0)/grub/splash.xml.gz
    title Gentoo Linux 2.6.17-r7
    root (hd0,0)
    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7  root=/dev/hda2
    Others noted with tks.

    satimis

  11. #11
    Join Date
    Oct 2002
    Location
    Illinois
    Posts
    3,281
    (hd0,0) is /boot and there is no /boot directory inside of it, and you designated your root (ie grub boot directory) earlier

    grub> root (hd0,0)
    grub> kernel /kernel-2.6.17-gentoo-r7 root=/dev/hda2
    grub> boot


    btw, grub has tab completetion, please learn to use it

  12. #12
    Join Date
    Jul 2003
    Posts
    2,021
    Hi folks,

    Gentoo started booting after changing following line;
    kernel (hd0,0)/boot/kernel-2.6.17-gentoo-r7 root=/dev/hda2
    to
    kernel (hd0,0)/boot/linux-2.6.17-gentoo-r7 root=/dev/hda2

    But still having following problems;

    1)
    Engine: Unable to open the engine block file /var/lock/evms-engine : Read only filesystem. The engine is not protected against other instances of the Engine being opened at the same time. Error returned from evms_commit_changes ( ) : No such device [!!]

    2)
    Loading module 3c59x ....
    Failed to load 3c59x [!!]

    3)
    All
    /dev/vg/usr
    /dev/vg/home
    /dev/vg/opt
    /dev/vg/var
    /dev/vg/tmp

    have same problem as listed follow;
    e2fsck: No such file or directory which trying to open /dev/vg/usr. The super block could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else). There the superblock is corrupt, and your might trying e2fsck with an alternative superblock :
    e2fsck -b 8193

    # e2fsck -b 8193 /dev/vg/usr
    Code:
    fsck.ext3: No such file or directory while trying to open /dev/vg/usr
    Please advise how to fix them. TIA

    B.R.
    satimis

  13. #13
    Join Date
    Jul 2003
    Location
    Spokane, Washington
    Posts
    580
    Quote Originally Posted by satimis
    2)
    Loading module 3c59x ....
    Failed to load 3c59x [!!]
    Does your ethernet card use the 3c59x driver? I don't think newer cards use that driver. Do you need that driver or is the system accidentally configured to try to load that module that you didn't compile?

  14. #14
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,898
    What the heck is this stuff?

    /dev/vg/usr
    /dev/vg/home
    /dev/vg/opt
    /dev/vg/var
    /dev/vg/tmp
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  15. #15
    Join Date
    Oct 2002
    Location
    Kaiserslautern, Germany
    Posts
    77
    Quote Originally Posted by je_fro
    What the heck is this stuff?

    /dev/vg/usr
    /dev/vg/home
    /dev/vg/opt
    /dev/vg/var
    /dev/vg/tmp

    Thats not supposed to be there?
    Linux Registered User #338570
    Ubuntu -- Server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •