Announcement

Collapse
No announcement yet.

[SOLVED] grub-rescue> during each boot

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] grub-rescue> during each boot

    Hi,
    After some manipulations with my system (I don't understand which in particular) I have
    Code:
    error: unknown filesystem
    grub-rescue>
    prompt during the system boot.
    I tried commands taken from Grub2 wiki page
    Code:
    set prefix=(hd0,7)/boot/grub
    set root=(hd0,7)
    insmod /boot/grub/linux.mod
    linux /vmlinuz root=/dev/sda7
    initrd /initrd.img
    boot
    System (Kubuntu based on sda7) boots OK. I am writing from this system now.
    I can boot Ubuntu from sda6 the same way.
    I ran sudo grub-update after booting.
    But I have same grub-rescue> at next boot anyway.

    I have following partitions:
    sda1 - NTFS, WinXP
    sda4 - FAT, WinXP restore
    sda5 - linuxswap
    sda6 - EXT3, Ubuntu
    sda7 - EXT3, Kubuntu
    sda8 - FAT32, PuppyLinux
    Can it be that grub (mbr?) points to sda1 with ntfs, which is "unknown" for it? How can I check?
    Any other recommendations?

    PS. If required, I can put my grub.cfg here
    http://linuxblog.darkduck.com

    #2
    Re: grub-rescue> during each boot

    Reboot into kubuntu using your commands again (if you haven't already) and try this:

    install-grub --root-directory=/ /dev/sda

    assuming: your running from /dev/sda7 and /boot/grub is not on a separate partition.

    Also possible is you may have a buggy BIOS and the location of your /boot/* files is not under the 1024 cylinder boundary. Create a small partition on the beginning of the disk, mount it as /mnt/b, cp -av /boot/* /mnt/b; umount /mnt/b; mount /dev/small_partition /boot; grub-install /dev/<device>.

    Please Read Me

    Comment


      #3
      Re: grub-rescue&gt; during each boot

      Originally posted by oshunluvr
      Reboot into kubuntu using your commands again (if you haven't already) and try this:

      install-grub --root-directory=/ /dev/sda

      assuming: your running from /dev/sda7 and /boot/grub is not on a separate partition.

      Also possible is you may have a buggy BIOS and the location of your /boot/* files is not under the 1024 cylinder boundary. Create a small partition on the beginning of the disk, mount it as /mnt/b, cp -av /boot/* /mnt/b; umount /mnt/b; mount /dev/small_partition /boot; grub-install /dev/<device>.
      I had my system running before, so 1024 issue would not be mine.
      Actually, install-grub helped, though it is grub-install in reality. At least, qemu /dev/sda shows me the right menu.
      Going to reboot. Fingers crossed!


      UPDATE: It works!
      http://linuxblog.darkduck.com

      Comment


        #4
        Re: [SOLVED] grub-rescue&gt; during each boot

        though it is grub-install in reality
        Oops! :P

        At least we got it!

        Please Read Me

        Comment

        Working...
        X