Ubuntu Got 2 Windows 7 (loader) entries in Grub2

What was the cause of the problem:

Grub2 looks for the Windows boot files for detecting Windows entries. Though you removed Windows 7, the Windows 7 boot files aren't removed (which are "Boot" folder and "bootmgr" file). And as Windows 7 boot files are there, grub2 simply assumes that, there are Windows 7 installation also. Hence the dual entry.

You should find what you're looking for inside of /boot/grub/grub.cfg. This file is dynamically generated by update-grub2. I am dual booting Ubuntu 32bit and 64bit. If I wanted to remove one, I would simply delete it's section from this file.

menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
 ### BEGIN /etc/grub.d/30_os-prober ###

menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
    chainloader +1
menuentry "Windows 7 (loader) (on /dev/sda2)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
    chainloader +1
menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root C22A7EEA2A7EDB3D
    drivemap -s (hd0) ${root}
    chainloader +1

Changes should take effect immediately, so make a backup and be careful. Also, anything you change in this file will be completely over written if you run update-grub2 again.

make sure you're delete the right one or you'll be sorry...


Mount the /dev/sda1 drive. Then in that drive look for a folder named Boot and a file named bootmgr. Remove both the folder and file. Then run update-grub2 command again.
You might want to install grub2 again. As I see your Ubuntu installation is at /dev/sdb, the commands will be

sudo grub-install /dev/sdb
sudo update-grub 


Open the terminal in a specific size and position in Ubuntu/ Linux Mint

In Ubuntu or Linux Mint and many other distros, when you open the terminal, the window will appear at the top left corner of the desktop screen and I usually have to drag it down to the bottom left of the desktop. If you dont like the default position and size of the start up window, you can edit it easily.

There are in fact many methods to customize the start up position of the terminal, but in this article I will show you a simple way to do the task without installing anything. In Ubuntu or Linux Mint Cinnamon, just open the terminal and run the following command:

sudo gnome-desktop-item-edit /usr/share/applications/gnome-terminal.desktop

If you use MATE, the command will be

sudo mate-desktop-item-edit /usr/share/applications/mate-terminal.desktop

After you hit enter, you will see the properties window of the launcher for the terminal.

In the command tab, just append this option after the part "mate-terminal" (or "gnome-terminal"):

 What this means:
100: the width of the terminal ( in characters)
50: the height ( in lines)
800: x position of the terminal when you open it up
300: y position

Just change the numbers into whatever values you prefer then click on the Close button and everything is done. Next time you open the terminal, the terminal window will appear at the new position instead of the top left corner of the desktop screen  

source http://www.linuxandlife.com

Easy way to download Potenza and install

Potenza was updated on Gnome-look two days ago and this icon set has been rated positively. All icons in this set have a squircular shape and the bright colors make Potenza go together with dark GTK themes very well.

Here are some screenshots of Pontenza

 This is an easy way to download and install
  • sudo wget http://mystras.cloudfactory.eu/Downloads/Potenza.deb
  • sudo dpkg -i Potenza*
  • sudo apt-get install -f

Find Us On Facebook

Related Posts Plugin for WordPress, Blogger... Linux Directory