Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 29 of 29
I think your GRUB is hosed. Try to boot from Fedora install CD into rescue mode and execute Code: chroot /mnt/sysimage grub-install /dev/sd x exit exit /dev/sd x being your ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023

    I think your GRUB is hosed. Try to boot from Fedora install CD into rescue mode and execute
    Code:
    chroot /mnt/sysimage
    grub-install /dev/sdx
    exit
    exit
    /dev/sdx being your / partition, which fdisk -l should show you.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  2. #22
    Linux Newbie
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    101
    Jay, I got exactly the same error messages as before. Where am I expected to install grub loader - sda0, sda1 or sda2?

    biniman

  3. #23
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Quote Originally Posted by biniman View Post
    Sorry guys, I was beginning to feel a sense of frustration. So I left the matter for a while. Anyhow here's the output I got when I tried to boot my computer after executing the above commands.

    root (hd0,2)
    Filesystem type unknown, partion type 0x7
    kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=LABEL=/ rhgb quiet

    Error 17: Cannot mount selected partition

    Press any key to continue ...

    When I press any key, I get three options.

    Fedora (2.6.23.17-88.fc7)
    Fedora (2.6.21-1.3194.fc7)
    Other

    When I select any of the Fedora options, it takes me back to the above error messages. When I select "Other", I am able to boot the Windows partions.

    Thanks,

    biniman
    So you have grub working ... you just need to modify the entry for Linux ... (hd0,2)=sda3 but your Linux is on sda2=(hd0,1) ... you can mod this at grub menu ...
    press escape, select fedora, e to edit, select root (hd0,2) line and press e to edit and change it to root (hd0,1), then press enter and b to boot. This should start fedora ... you can then open a terminal and as root modify the entry in the /boot/grub/menu.lst or /boot/grub/grub.conf file.

  4. $spacer_open
    $spacer_close
  5. #24
    Linux Newbie
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    101
    I did just that, I could boot my Linux (Relieved for a moment!). But I could not cd to the /boot/grub/ directory. There does not seem to be such directory in my system. When I rebooted, I got back root (hd0,2) and I could not boot Linux. So now, I am back to the beginning.

    biniman

  6. #25
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Try booting into Linux again ... and make sure you have root rights using
    Code:
    su -
    or
    Code:
    sudo -s
    before trying to make the changes ... you only have a single Linux partition so /boot/grub should be there.

    Ed: as root run
    Code:
    ls /boot -l
    ls /boot/grub -l
    what do you get ?

  7. #26
    Linux Newbie
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    101
    Please, go through the codes below and tell where to modify.


    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You do not have a /boot partition. This means that
    # all kernel and initrd paths are relative to /, eg.
    # root (hd0,2)
    # kernel /boot/vmlinuz-version ro root=/dev/sda3
    # initrd /boot/initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,2)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.23.17-88.fc7)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.23.17-88.fc7.img
    title Fedora (2.6.21-1.3194.fc7)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.21-1.3194.fc7.img
    title Other
    rootnoverify (hd0,0)
    chainloader +1

  8. #27
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Quote Originally Posted by biniman View Post
    Please, go through the codes below and tell where to modify.


    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You do not have a /boot partition. This means that
    # all kernel and initrd paths are relative to /, eg.
    # root (hd0,2)
    # kernel /boot/vmlinuz-version ro root=/dev/sda3
    # initrd /boot/initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,2)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.23.17-88.fc7)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.23.17-88.fc7.img
    title Fedora (2.6.21-1.3194.fc7)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.21-1.3194.fc7.img
    title Other
    rootnoverify (hd0,0)
    chainloader +1
    Change all bold (hd0,2) to (hd0,1) ... that should do it.

  9. #28
    Linux Newbie
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    101
    It worked. Thank you, thank you, thank you ALL!

  10. #29
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Glad you have things working again

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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