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

Thread: grub's weird problems (heeeeeeeeeeelp)

  1. #1
    Join Date
    Jun 2010
    Location
    Under bridges
    Beans
    307
    Distro
    Ubuntu 10.04 Lucid Lynx

    Red face grub's weird problems (heeeeeeeeeeelp)

    ok so...
    I've resized my mother's Vista partition to install Win7 on it and when I did, (well... it didnt finish quite yet) it rebooted, and BURG was gone. Poof.
    It showed me the windows boot manager, but still no BURG.
    I've tried to reinstall GRUB from my liveCD and now when it did, I rebooted, and it showed me with the command prompt saying "grub>" (it said that it was in a "minimal enviroment" or something)
    Help

    I'm using a colored text thingy. I'm so cool.

  2. #2
    Join Date
    Jun 2010
    Location
    Under bridges
    Beans
    307
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: grub's weird problems (heeeeeeeeeeelp)

    Update:
    I tried to install it again and it showed me this:
    Code:
    ubuntu@ubuntu:~$ sudo grub-install /dev/sda
    /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
    No path or device is specified.
    Try `/usr/sbin/grub-probe --help' for more information.
    Auto-detection of a filesystem module failed.
    Please specify the module with the option `--modules' explicitly.
    ubuntu@ubuntu:~$
    i am kinda thinking that I tried something else to install GRUB.... just don't remember what
    Last edited by 29732; October 26th, 2010 at 08:30 PM.

    I'm using a colored text thingy. I'm so cool.

  3. #3
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    73
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: grub's weird problems (heeeeeeeeeeelp)

    Here you have a guide with different methods to restore grub, I recommend you to use method Nº2: http://ubuntuguide.net/how-to-restor...ws-xpvistawin7

    2).Using Ubuntu 9.10 livecd or higher
    Here assuming the Ubuntu partition is sda7,and /boot partition is sda6 (if you have a separate /boot partition).
    Boot up ubuntu from the livecd,open terminal and run:
    Code:
    sudo -i
    mount /dev/sda7 /mnt
    mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition
    grub-install --root-directory=/mnt/ /dev/sda
    If you miss “grub.cfg” file,use following to recreate:

    Code:
    mount --bind /proc /mnt/proc
    mount --bind /dev /mnt/dev
    mount --bind /sys /mnt/sys
    chroot /mnt update-grub
    umount /mnt/sys
    umount /mnt/dev
    umount /mnt/proc
    exit
    After you restore grub succesfully, log into Ubuntu and run:

    sudo update-grub
    Hope it helps

    P.D: I am assuming you are using Lucid Lynx like your profile says, because this is for Grub 2. If you are running and older version of Ubuntu, maybe you need to restore Grub, not Grub 2
    Last edited by janpol; October 26th, 2010 at 08:35 PM.

  4. #4
    Join Date
    Jun 2010
    Location
    Under bridges
    Beans
    307
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: grub's weird problems (heeeeeeeeeeelp)

    Quote Originally Posted by janpol View Post
    Here you have a guide with different methods to restore grub, I recommend you to use method Nº2: http://ubuntuguide.net/how-to-restor...ws-xpvistawin7



    After you restore grub succesfully, log into Ubuntu and run:



    Hope it helps

    P.D: I am assuming you are using Lucid Lynx like your profile says, because this is for Grub 2. If you are running and older version of Ubuntu, maybe you need to restore Grub, not Grub 2


    Screenshot.jpg
    Can't update-grub and can't mount /dev/sda3

    I'm using a colored text thingy. I'm so cool.

  5. #5
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    73
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: grub's weird problems (heeeeeeeeeeelp)

    You should mount /dev/sda5, not the extended partition.

  6. #6
    Join Date
    Jun 2010
    Location
    Under bridges
    Beans
    307
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: grub's weird problems (heeeeeeeeeeelp)

    Quote Originally Posted by janpol View Post
    You should mount /dev/sda5, not the extended partition.
    Already did

    I'm using a colored text thingy. I'm so cool.

  7. #7
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    73
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: grub's weird problems (heeeeeeeeeeelp)

    So, you should boot from the livecd and run the following:

    Code:
    sudo -i
    mount /dev/sda5 /mnt
    grub-install --root-directory=/mnt/ /dev/sda
    If you miss “grub.cfg” file,use following to recreate (it is likely that you don't need to do this):

    Code:
    mount --bind /proc /mnt/proc
    mount --bind /dev /mnt/dev
    mount --bind /sys /mnt/sys
    chroot /mnt update-grub
    umount /mnt/sys
    umount /mnt/dev
    umount /mnt/proc
    exit
    After that, reboot, remove the livecd, boot from the hard drive, log into your ubuntu installation using your restored Grub, and then:

    Code:
    sudo update-grub
    Last edited by janpol; October 26th, 2010 at 08:47 PM.

  8. #8
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,206
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: grub's weird problems (heeeeeeeeeeelp)

    If you are in a Live cd environment you need to mount your root partition, which looks like sda5 to me. sda3 is an extended partition which holds sda5 & sda6

    Code:
    sudo mount /dev/sda5 /mnt
    sudo grub-install --root-directory=/mnt /dev/sda
    MacBook Pro 10,1 retina

  9. #9
    Join Date
    Jun 2010
    Location
    Under bridges
    Beans
    307
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: grub's weird problems (heeeeeeeeeeelp)

    Whew, thanks man,
    I'll reinstall BURG from there

    I'm using a colored text thingy. I'm so cool.

  10. #10
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    73
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: grub's weird problems (heeeeeeeeeeelp)

    And only mount /dev/sda5....in that screenshot you mounted everything into /mnt!!!
    Last edited by janpol; October 26th, 2010 at 09:35 PM.

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
  •