Find the answer to your Linux question:
Results 1 to 6 of 6
hi i have an AMD64 and 120GB SATA HD i tried the universal CD for gentoo-64 and i am getting the following problem: i installed windows first i have a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Chd,India
    Posts
    135

    grub not booting gentoo


    hi
    i have an AMD64 and 120GB SATA HD
    i tried the universal CD for gentoo-64 and i am getting the following problem:
    i installed windows first
    i have a primary C and on an extended partition E and i created 4 partitions for /boot / /usr swap using partiton magic

    when i boot from livecd,it deteects
    C /dev/sda1
    extended /dev/sda2
    E /dev/sda5
    /boot part /dev/sda6
    / part /dev/sda7
    /usr part /dev/sda8
    swap /dev/sda9

    i made the /boot partiton bootable and continued uncompressing and icompiling the kernel
    all worked well

    when i make the bootloader for grub,i have to write the grub.conf file
    as suggested in the manual,i wrote grub.conf
    my windows now boots from the grub bootup screen but when i boot gentoo i get the error:
    Code:
    Could not find device /dev/sda7 or could not read block (0,0) ......
    append a valid "root=" after kernel ...
    kernel panic: .........
    my grub.conf line says :
    Code:
    title gentoo
    root (hd0,5)
    kernel (hd0,5)/boot/kernel-2.6.12-gentoo-r6 root=/dev/sda7
    plz help
    The strong shall live and the weak will die
    In the end,only the fittest survive in this world
    - Shishio Makoto

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    change root (hd0,5) to root (hd0,6)

    EDIT: actualy i dont think thats the problem

  3. #3
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Chd,India
    Posts
    135
    (hd0,5) should be my boot partition
    so that line should work
    also (i think) the error says that it is not able to detect /dev/sda7 or it cannot read it

    i have seen other peoples grub.conf.basically they do the same thing
    on the kernel line they write root=device for / partition

    also my windows is booting from grub menu

    thanks for the reply.plz help a little more
    The strong shall live and the weak will die
    In the end,only the fittest survive in this world
    - Shishio Makoto

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817

    Re: grub not booting gentoo

    Quote Originally Posted by gagan_goku
    my grub.conf line says :
    Code:
    title gentoo
    root (hd0,5)
    kernel (hd0,5)/boot/kernel-2.6.12-gentoo-r6 root=/dev/sda7
    I don't know if this is your present problem, but you probably should address it: '(hd0,5)/boot/' will want a /boot/ directory within (hd0,5). I think that your /boot/ directory is a mount point in sda7 and that you probably do not have a /boot/ directory on sda6. Grub is able to search for certain files, so this may not fix your present problem. Any of the following changes should work:
    Code:
    root (hd0,5)
    kernel (hd0,5)/kernel-2.6.12-gentoo-r6 root=/dev/sda7
    ...or...
    root (hd0,5)
    kernel /kernel-2.6.12-gentoo-r6 root=/dev/sda7
    ...or...
    kernel (hd0,5)/kernel-2.6.12-gentoo-r6 root=/dev/sda7
    /IMHO
    //got nothin'
    ///this use to look better

  6. #5
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Chd,India
    Posts
    135
    well that dosent work either
    The strong shall live and the weak will die
    In the end,only the fittest survive in this world
    - Shishio Makoto

  7. #6
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    could you paste the output of
    Code:
    fdisk -l
    and the output of
    Code:
    cat /etc/fstab
    after you have chroot'd to the install
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

Posting Permissions

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