Results 1 to 10 of 10

Thread: Ubuntu 12.10 Grub problem

  1. #1
    Join Date
    Oct 2012
    Beans
    6

    Question Ubuntu 12.10 Grub problem

    I have attempted an upgrade to Ubuntu 12.10 on a PC with dual boot Ubuntu/ Windows 7. The PC has a SSD Drive and a normal hard drive installed.
    On reboot after installation I get a black screen with the follow message:

    error:file not found
    grub rescue >

    Can anybody advise a solution

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,692
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu 12.10 Grub problem

    At the rescue prompt, what is the output of:
    ls (small LS)
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Oct 2012
    Beans
    6

    Re: Ubuntu 12.10 Grub problem

    Quote Originally Posted by darkod View Post
    At the rescue prompt, what is the output of:
    ls (small LS)
    Thanks for your response
    The output is as follows:

    (hd0) (hd0,msdos2)(hd0,msdos1)(hd1)(hd1,msdos7)(hd1,msdo s6)(hd1,msdos5)(hd1,msdos1)(hd2)(hd2,msdos1)(fd0)( fd1)

  4. #4
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,692
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu 12.10 Grub problem

    That shows three disks, hd0, hd1 and hd2, not only two.

    Basically, you need to check which one is your ubuntu root partition, if you don't know. Do you know where is ubuntu installed?

    If you don't, my first guess would be (hd1,msdos5). Try to list the files on it with:
    ls (hd1,msdos5)

    In the list of files (it should be short) do you see vmlinuz and initrd.img?

    If that is not the partition, try looking in the others one by one changing the hdX and msdosY in the command. Check only the existing partition reported by the original ls command.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  5. #5
    Join Date
    Oct 2012
    Beans
    6

    Re: Ubuntu 12.10 Grub problem

    I am getting an 'unknown command' when I try these !

  6. #6
    Join Date
    Oct 2012
    Beans
    6

    Re: Ubuntu 12.10 Grub problem

    I have an external hard drive connected which I use for back up and the storage of photos. I have disconnected this and ls now reports only hd0, hd1 and fd0,fd1
    regards

  7. #7
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,692
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu 12.10 Grub problem

    Hmm, are you trying the ls as before (small LS)?

    It shouldn't say unknown command. Alternatively, if that still doesn't work, can you burn a 12.10 cd and boot into live mode with it?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  8. #8
    Join Date
    Oct 2012
    Beans
    6

    Re: Ubuntu 12.10 Grub problem

    I will try and burn a 12.10 disk from my laptop. I have a live 12.4 disk is that any good ?
    What actions should I carry out when I have boot my PC with the disk.
    Many thanks

  9. #9
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    12,692
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu 12.10 Grub problem

    You can use the 12.04 to take a peek at the files, but for grub2 repair you will need to use a 12.10 cd.

    When you load live mode to take a look, open the root partition and look for /boot/grub/grub.cfg and /boot/grub.core.img. If they are there, good.
    Then look in /boot and check if the kernels are there.

    If all that goes good, you will need the 12.10 cd to try grub2 repair. When you boot it into live mode, mount the root partition and reinstall grub2 to the MBR of the disk:
    Code:
    sudo mount /dev/sdXY /mnt
    sudo grub-install --root-directory=/mnt /dev/sdX
    Then reboot without the cd and see how it goes.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  10. #10
    Join Date
    Oct 2012
    Beans
    6

    Re: Ubuntu 12.10 Grub problem

    Followed your advice and burnt a 10.12 disk and used it to enter the code you passed and 'grub' was installed and every thing works fine.
    Thank you very much for you help and advice.

Tags for this Thread

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
  •