Results 1 to 7 of 7

Thread: Installing plain XFCE4 messed up default grub.

  1. #1
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Installing plain XFCE4 messed up default grub.

    Hi friends,

    I installed plain-vanilla xfce4 package on my ubuntu 12.04. I know many will advice me to install xubuntu-desktop instead of xfce4 but frankly, I don't know why, plain xfce4 on ubuntu 12.04 is lot faster than Xubuntu and lot lot faster then xubuntu-desktop on Ubuntu.

    Anyway my problem is that xfce4 while installation somehow messed my grub. I don't know why but now I see a backgroud in my grub menu and it is slow now. I tried to boot from liveCD and then mount my root partition to a point and did a grub-install in that partition. But nothing happened.

    Here is the screenshot of my new boot screen:
    IMG_20130317_230434.jpg

    Can anyone please help me restoring my old grub?

  2. #2
    Join Date
    Feb 2010
    Location
    WI USA
    Beans
    9,845
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Installing plain XFCE4 messed up default grub.

    I don't think I can help but I have installed XFCE4 on 12.04 and 12.10 and seen no change in grub. The XFCE4 Session is much lighter than the Xubuntu desktop which includes artwork for GDM ,but not grub as far as I know.
    Infinite diversity in infinite combination.

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  3. #3
    Join Date
    Apr 2012
    Location
    Entropy
    Beans
    Hidden!

    Re: Installing plain XFCE4 messed up default grub.

    If you have another desktop install like unity. Login to that desktop and from the terminal reintall grub.

    sudo grub-install /dev/sda && sudo update-grub
    Make sure the sda is the correct one, otherwise make the correction.

    Regards
    Cogito Ergo Sum

  4. #4
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing plain XFCE4 messed up default grub.

    Quote Originally Posted by Lemuriano View Post
    If you have another desktop install like unity. Login to that desktop and from the terminal reintall grub.



    Make sure the sda is the correct one, otherwise make the correction.

    Regards
    Ok, I'll do this today. I am just confirming.
    I have Unity, I'll login in unity and then I'll run following command:

    Code:
    sudo grub-install /dev/sda1
    sda1 because my primary Ubuntu is installed in sda1 only.

  5. #5
    Join Date
    Nov 2010
    Location
    Berlin, Germany
    Beans
    4,534
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Installing plain XFCE4 messed up default grub.

    First, there is absolutely no need to reinstall Grub, and it wouldn't help either, as your Grub is generally working just fine, it's just about its appearance; and btw, to answer your last question:
    Reinstalling GRUB 2 from a Working System

    If Ubuntu is operating normally, boot into the working installation and run the following command from a terminal.

    X is the drive (letter) on which you want GRUB to write the boot information. Normally users should not include a partition number, which would produce an error message as the command would attempt to write the information to a partition.
    Code:
    sudo grub-install /dev/sdX  # Example: sudo grub-install /dev/sda
    This will rewrite the MBR information to point to the current installation and rewrite some GRUB 2 files (which are already working).
    Source: https://help.ubuntu.com/community/Gr...Working_System

    Now, in short, to get your Grub appearance back to what is the default under Ubuntu, just run these commands:
    Code:
    sudo update-alternatives --remove-all desktop-grub
    sudo update-grub
    Background: Installing the metapackage "xfce4", as a matter of dependency (recommend), pulled in the package "desktop-base", which among other stuff, also includes a couple of background images for Grub, installed into the 'alternatives' system with these 'postinst' commands:
    Code:
        # Alternatives for grub
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/spacefun-grub.png 15
    
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/spacefun-grub-widescreen.png 14
    
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/moreblue-orbit-grub.png 10
    Since by default, the 'alternatives' group "desktop-grub" doesn't exist on a current Ubuntu installation, we can just happily remove the entire group, as opposed to removing the added alternatives one by one from the group.

    Manpage of "update-alternatives", for further reference:

    http://manpages.ubuntu.com/manpages/...natives.8.html

    Regards.

  6. #6
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    6,546
    Distro
    Ubuntu Development Release

    Re: Installing plain XFCE4 messed up default grub.

    If you run the command
    Code:
    sudo update-grub
    you may see that it is finding a image file in /boot/grub. Remove that image file from /boot/grub and then run
    Code:
    sudo update-grub
    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  7. #7
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing plain XFCE4 messed up default grub.

    Quote Originally Posted by Krytarik View Post
    First, there is absolutely no need to reinstall Grub, and it wouldn't help either, as your Grub is generally working just fine, it's just about its appearance; and btw, to answer your last question:

    Source: https://help.ubuntu.com/community/Gr...Working_System

    Now, in short, to get your Grub appearance back to what is the default under Ubuntu, just run these commands:
    Code:
    sudo update-alternatives --remove-all desktop-grub
    sudo update-grub
    Background: Installing the metapackage "xfce4", as a matter of dependency (recommend), pulled in the package "desktop-base", which among other stuff, also includes a couple of background images for Grub, installed into the 'alternatives' system with these 'postinst' commands:
    Code:
        # Alternatives for grub
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/spacefun-grub.png 15
    
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/spacefun-grub-widescreen.png 14
    
        update-alternatives --install \
            /usr/share/images/desktop-base/desktop-grub.png \
            desktop-grub \
            /usr/share/images/desktop-base/moreblue-orbit-grub.png 10
    Since by default, the 'alternatives' group "desktop-grub" doesn't exist on a current Ubuntu installation, we can just happily remove the entire group, as opposed to removing the added alternatives one by one from the group.

    Manpage of "update-alternatives", for further reference:

    http://manpages.ubuntu.com/manpages/...natives.8.html

    Regards.
    Thanks for such a detail reply and awesome explanation.

    Quote Originally Posted by grahammechanical View Post
    If you run the command
    Code:
    sudo update-grub
    you may see that it is finding a image file in /boot/grub. Remove that image file from /boot/grub and then run
    Code:
    sudo update-grub
    Regards.
    Thanks to you too for simple solution.

    I did some googling and on the background information provided by Krytarik I actually understand now that what had happened. I'll try removing alternatives link and then update-grub. If it worked, I'll mark thread as solved.

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
  •