Find the answer to your Linux question:
Results 1 to 5 of 5
Hey, total n00b here hoping for some help. I have one drive. I first installed debian which installed lilo. After playing around I decided to install fedora. While going through ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    2

    Dual boot issue Debian/Fedora + Grub


    Hey, total n00b here hoping for some help. I have one drive. I first installed debian which installed lilo. After playing around I decided to install fedora. While going through the graphical install I noticed it would install grub but had an option of adding another os if it was there. You can see a picture of what I am talking about http://www.bitbenderforums.com/~grog...bootloader.jpg

    Not knowing what I was doing I just added debian and hoped it would notice it on the drive. Obviously now when I boot to fedora it gives the option of fedora or debian but when I choose debian it gives:

    rootnoverify (hd0,0)
    chainloader +1

    Error 13: Invalid or unsupported executable format

    If I assume correctly, grub was default installed on the mbr and when I go to choose debian it is not looking at the correct partition for debian? Or have I totally screwed up my debian install?

    Either way I am not sure how to edit grub or the mbr. Any help would be appreciated, thanks in advance.

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Try this.
    Code:
    su
    root password
    mkdir /mnt/debian
    mount /dev/hda1  /mnt/debian
    cd /mnt/debian/boot
    Look for a vmlinuz file
    Then go to /boot/grub, and edit grub.conf like this
    Code:
    vi grub.conf
    title debian
    kernel (hd0,0) kernel name   that is vmlinuzxxxxxroot=/dev/hda1
    hit the ESC buton, type ZZ
    Now you should be good to go.
    Note: the hd0,0 and hda1 assume that this is the first partition on the first hard drive.

    Hope this helps.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Posts
    2
    Thanks so much for your reply!

    When you say look for vmlinuz, I can see it but I am not sure what I should do with it?

    also, I don't quite understand what I should do when I am editing grub.conf

    sorry for these questions but I am just learning, thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    What you are going to do with that vmlinuz file is, put it into the grub.conf file. that vmlinuz file is your kernel. Grub needs that to know what to boot. do
    [code]vi grub.conf[code]

    that brings up the grub.conf file for editing.
    Then

    [/code]title debian[code]

    debian is what you will see when you reboot.

    Then
    [/code]kernel (hd0,0) /boot/vmlinuzxxxxxx[code]
    That vmlinuz plus whatever is behind it is the name of the kernel.
    then on the same line as the kernel name, put ,

    [/code]root=/dev/hda1[code]

    That is the location of the kernel.

    Then hit ESC,that brings you back to command mode. Then type ZZ(case sensitive), that will save your work.

    Hope this makes it a little clearer.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  6. #5
    Just Joined!
    Join Date
    Mar 2005
    Location
    Egypt
    Posts
    1
    thanks
    that hlp me alot
    i will tray that

Posting Permissions

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