Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Well, I've installed gentoo (2005.1, following the handbook) and I have a couple of questions. First, when I choose gentoo in the grub menu (note that I didn't install grub ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205

    Installed gentoo, couple of questions


    Well, I've installed gentoo (2005.1, following the handbook) and I have a couple of questions.
    First, when I choose gentoo in the grub menu (note that I didn't install grub with gentoo, I just added an entry for it in the menu.list file in Kanotix), I get "you passed an undefined mode number". I think I have to add something to the menu.list entry, just not sure what? I already have vga=0x317, anything else?
    Next, after this, I get another error, "The root block device is unspecified or not detected". I type in /dev/hda8, which is the partition gentoo is on, and it works, I suspect this is also some problem in the menu.list file.

    Also, another general question: when I emerge something (like links, which I'm using to type this, hehehe), I get the message that some config files need updating. Should I just update all of them? Or do I go through all of them and see if any should be left alone (in this case, will I be getting the same message for any files which I decided to leave alone?)

    Thanks in advance.
    Stumbling around the 'net:
    www.cloudyuseful.com

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    For the menu.lst, could you post it here?

    As for using etc-update I go through each just to check it's not trying to overwrite something like my apache.conf file or something.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Here's the entry for Gentoo:

    title Gentoo 2005.1
    root (hd0,7)
    kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/hda8 vga=0x317
    initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6
    boot

    I have gentoo on hda8, obviously. If you need any more info, let me know.
    Stumbling around the 'net:
    www.cloudyuseful.com

  4. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Hmm, can you get it to boot with out problems with:
    title Gentoo 2005.1
    kernel (hd0,7)/kernel-2.6.12 root=/dev/hda8
    with this I take you don't have /boot on a separate partition...
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  5. #5
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    No, when I installed grub with kanotix, I put it in the MBR. I'll try out your suggestion and get back with the results. Thanks for the help.
    Stumbling around the 'net:
    www.cloudyuseful.com

  6. #6
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    I get:

    Error 15: File not found
    press any key to continue...

    After pressing the 'any' key , I get back to the grub menu. Note that I left in the 'initrd' line, as well as the 'boot' at the end, not sure if this matters or not.
    Stumbling around the 'net:
    www.cloudyuseful.com

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    15
    I think what dylunio meant was did you install the /boot directory to another partition?

    If root is mounted at /dev/hda8, /boot might be at something different. I don't think grub knows where /boot is unless it's on the root partition. Lets say your /boot directory is at /dev/hda7, you'd edit your menu.lst like this.

    kernel hd(0,6)/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/hda8 vga=0x317
    initrd hd(0,6)/initramfs-genkernel-x86-2.6.12-gentoo-r6

    /etc/fstab would probably tell you what partition /boot is on if you're not sure.


    Forgot to add, that error you get "you passed an undefined mode number" has to do with "vga=0x318". You can either delete it(you won't get an error anymore) or you can go here and try a different one. (Scroll down a little to see the table of values).

  8. #8
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    try this

    Code:
    title Gentoo
         root (hd0,7)
         kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 ro init=/linuxrc ramdisk=8192 real_root=/dev/hda8 udev
        initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6
        boot
    remember you have to call genkernel a little differently than the other kernels, you need the extra lines I put in there...
    Operating System: GNU Emacs

  9. #9
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Excellent, thanks genesis. One problem down, I've still got to figure out about the 'undefined mode number', removing the "vga=0x318" didn't change anything. I used it in the first place because that's what I have in Kanotix. Anyways, /boot is on the root partition.
    Stumbling around the 'net:
    www.cloudyuseful.com

  10. #10
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    try either

    vga=0x317 or vga=0x311
    Operating System: GNU Emacs

Page 1 of 2 1 2 LastLast

Posting Permissions

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