I installed OpenSUSE 12.2. Then I installed Ubuntu 12.04.1.
Now my computer boots from GRUB installed in the root filesystem of Ubuntu. But I want the GRUB installed in the root file system of Suse to work as the default bootloader. How can I do that?
My Suse in installed in sda2 and Ubuntu in sda5. I have GRUB2. I tried this command but it did not work:
grub-install /dev/sda
update-grub
I got this error:
WARNING! You are trying to invoke the unsupported grub-install script with a parameter. To really do this, call grub-install.unsupported. You should rather call "yast2 bootloader" or create configuration files appropriate for the intended target.
grub-install in openSUSE belongs to legacy GRUB. To install GRUB2 use /usr/sbin/grub2-install (or YaST, although personally I prefer low level commands).
Generating grub.cfg ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found background: /boot/grub2/themes/openSUSE/background.png
Found linux image: /boot/vmlinuz-3.4.11-2.16-default
Found initrd image: /boot/initrd-3.4.11-2.16-default
No volume groups found
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda5
done
So, my Ubuntu got detected. But…
The above command did not work. I am getting this error:
/usr/sbin/grub2-bios-setup: warning: this LDM has no Embedding Partition; embedding won't be possible.
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub2-bios-setup: error: will not proceed with blocklists.
Yes. I had Windows many days ago. But then I completely formatted my HDD and deleted all my partitions. So there should not be any part of Windows left on it.
Dear caf4926, do you remember giving me a link in which you wrote how to reinstall the grub from the installation media (by going into the rescue mode and etc. etc.). Shall I try that out?
[RIGHT]Thanx again…
[/RIGHT]
No. The problem is, even though you removed Windows dynamic disks signature is left somewhere on disk. Reinstalling grub won’t remove it (you already did it).
If I am not mistaken, LDM signature is located in blocks 6 and the very last one on disk. Could you show output of “fdisk -l /dev/sda”?
And you didn’t have problems with Ubuntu 12.04 beause it is still using Grub2 v. 1.99 (unlike Ubuntu 12.10 and openSUSE 12.2), and - according to the bug report - it affects version 2.00. Is that right?
Recheck it! It should be number of sectors - 1. And be careful - errors or typo may zap your whole disk … may be there are some HEX editors that are less dangerous.
After this is done, try to install grub2 again.
If you could do me a favor and before you do it (if you will do it) capture first and last 1M and make it available somewhere (e.g. paste.opensuse.org):
Hmmm…what you say is really very confusing…
I have unused space before sda3 (5 GB), before sda6 (1.69 MB) and after sda6 (29.04 GB). So tell me now, which command should I go for first, the first one (
Windows writes special signature on disk in multiple locations when dynamic disks are used
this signature was not cleaned up when you reformatted disk
GRUB2 finds this stale signature and believes you are still using Windows dynamic disks and refuses to install
To install GRUB2 you need to clean up stale signature. To know exactly where this signature is located images of first and last 1MB of your disks are needed. Otherwise educated guess is to zero out the very last sector on disk.
Did you read my posts? It is a bug in Grub2 version 2.0. Your Ubuntu (12.04) is using Grub2 v. 1.99, which is noit affected by this bug, AFAIK. If you had installed the latest Ubuntu release (12.10), you would have encountered the same problem (according toi the bug report I saw).