Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: [SOLVED] Grub error, cannot boot Fedora

  1. #1
    Join Date
    Oct 2005
    Beans
    169

    [SOLVED] Grub error, cannot boot Fedora

    I have Ubuntu 8.04 installed with a boot loader, and now I installed Fedora 9 on another partition, without a boot loader. Now when I boot select Fedora when booting I get "Cannot mount partition" error. Something wrong with the /boot/grub/menu.lst probably? I tried to modify menu.lst but with no success.

  2. #2
    Join Date
    Feb 2006
    Location
    Moshi, Tanzania
    Beans
    805
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub error, cannot boot Fedora

    Could you post your /boot/grub/menu.lst file here please? It's probably just a GRUB setup problem.

    You can also try reinstalling GRUB ("grub install"), it *should* detect fedora, and add a menu entry for it.

    - Trib'

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Grub error, cannot boot Fedora

    I think this may be a result of Fedora partitioning by default as LVM, which means it could be unreadable unless you have all the lvm modules installed. This certainly used to be the case. I had the same problem a couple of years ago and eventually solved it by installing Fedora on pre-made ext3 partitions. That did the trick, but it took a while to find out what was going on and was very frustrating for a new Linux user. Incidentally, I didn't like Fedora then and haven't looked at it again since; too slow and unwieldy package management and configuration for me then.

    Use gparted, or whatever you have, to make new ext3 partitions for Fedora, and then install to them when the installer gets to that part. Make sure you let Fedora format the swap partition or it won't be able to use it (that was so then, anyway, it may have changed now). You should find now that you can add the appropriate entry to grub to boot to Fedora, though you will need to make sure you get the partition naming right by using
    Code:
    sudo fdisk -l
    in Ubuntu, and copying the partition information to menu.lst

    Hope that helps.

  4. #4
    Join Date
    Oct 2005
    Beans
    169

    Re: Grub error, cannot boot Fedora

    I tried reinstalling grub but it didn't help. I have Fedora set up like this in menu.lst:

    Code:
    title		Fedora 9
    root		(hd0,5)
    kernel		/boot/vmlinuz-2.6.24-17.f9.i686 root=/dev/sda5 
    initrd		/boot/initrd-2.6.24-17.f9.i686.img
    savedefault
    boot
    Any ideas?

  5. #5
    Join Date
    Mar 2008
    Location
    Aguobu Iwollo
    Beans
    165
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Grub error, cannot boot Fedora

    You can try

    Code:
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-17.f9.i686 root=/dev/hda5 ro
    initrd /boot/initrd-2.6.24-17.f9.i686.img
    savedefault

    If your root is in your 5th partition, that is the 4th for root. It counts hda1 as 0,0

    Notice the change to hda5 instead of sda5. Fedora reserves sda, sdb to SCSI. Ubuntu uses it by default. Also add ro at the end.

    Don't add boot at the end. That's needed only when you are working from the command line.

    Another solution is to boot GRUB to a command line and enter those lines one after another to check whether it recognises them

  6. #6
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub error, cannot boot Fedora

    Quote Originally Posted by ajgreeny View Post
    I think this may be a result of Fedora partitioning by default as LVM, which means it could be unreadable unless you have all the lvm modules installed. This certainly used to be the case. I had the same problem a couple of years ago and eventually solved it by installing Fedora on pre-made ext3 partitions. That did the trick, but it took a while to find out what was going on and was very frustrating for a new Linux user. Incidentally, I didn't like Fedora then and haven't looked at it again since; too slow and unwieldy package management and configuration for me then.
    This is exactly the problem I had and the same reason why I don't like Fedora. 9 doesn't seem all that different than 6. That LVM I don't much like, plus the fact Fedora created another small boot partition for some reason and ignored the /boot/grub partition. Doesn't even search for another grub.

  7. #7
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Grub error, cannot boot Fedora

    You have to know on which partition Fedora is installed.If it is on hda5 then in Ubuntu

    Code:
    sudo cp //boot/grub/menu.lst /boot/grub/menu.lst-bak
    Code:
    gksudo gedit /boot/grub/menu.lst
    and you will see
    ### END DEBIAN AUTOMAGIC KERNELS LIST

    and below it add

    titile Fedora
    rootnoverify (hd0,4)
    makeactive
    chainloader +1

    save file and close.After restart you should be able to choose which OS you want to boot.

  8. #8
    Join Date
    Oct 2005
    Beans
    169

    Re: Grub error, cannot boot Fedora

    Quote Originally Posted by didac View Post
    You can try

    Code:
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-17.f9.i686 root=/dev/hda5 ro
    initrd /boot/initrd-2.6.24-17.f9.i686.img
    savedefault

    If your root is in your 5th partition, that is the 4th for root. It counts hda1 as 0,0

    Notice the change to hda5 instead of sda5. Fedora reserves sda, sdb to SCSI. Ubuntu uses it by default. Also add ro at the end.

    Don't add boot at the end. That's needed only when you are working from the command line.

    Another solution is to boot GRUB to a command line and enter those lines one after another to check whether it recognises them
    I tried this but still get an error (File not found etc.)

  9. #9
    Join Date
    Oct 2005
    Beans
    169

    Re: Grub error, cannot boot Fedora

    Quote Originally Posted by zvacet View Post
    You have to know on which partition Fedora is installed.If it is on hda5 then in Ubuntu

    Code:
    sudo cp //boot/grub/menu.lst /boot/grub/menu.lst-bak
    Code:
    gksudo gedit /boot/grub/menu.lst
    and you will see
    ### END DEBIAN AUTOMAGIC KERNELS LIST

    and below it add

    titile Fedora
    rootnoverify (hd0,4)
    makeactive
    chainloader +1

    save file and close.After restart you should be able to choose which OS you want to boot.
    Tried this as well, and got Error 12: Invalid device requested

  10. #10
    Join Date
    Mar 2006
    Beans
    8,348

    Re: Grub error, cannot boot Fedora

    You never posted output of sudo fdisk -l but I looked your previous posts and now I see I overlooked something so try this

    titile Fedora
    rootnoverify (hd0,5)
    makeactive
    chainloader +1

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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