Change default GRUB
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? Thanx for any help... |
Before you get specific instructions, we would need to know which drive/partition the Opensuse boot files are on. If you can boot Opensuse from Ubuntu, do that. If your Opensuse boot files are on partition sda1, the following would work from Opensuse. If the boot files are on a different partition, you will need to make the appropriate change. Open a terminal in Opensuse, as root user in Opensuse enter: grub. This should give you a grub prompt (grub>). Here you would enter: root (hd0,0) and hit the Enter key. Then type: setup (hd0) and hit the Enter key. Then type: quit and again hit the Enter key. You would need to create an entry for Ubuntu in the Opensuse menu.lst file. The following example should boot Ubuntu on sda5:
Quote:
Lower case Letter L in the command) or go to the site below and read the instructions for the bootinfoscript, download and run it and view the output. If you don't understand the output, post the results.txt file here. http://sourceforge.net/projects/bootinfoscript/ |
Quote:
Code:
su Quote:
Thanx a lot!!! |
You need to determine which partition Opensuse is on. Have you used only one partition for the filesystem? Did you create a separate boot partition for it or Ubuntu? Open a terminal from within Opensuse and run the command: df -H. You should get output similar to below:
Quote:
|
Sorry for my late reply. Here's the output of the command df -H:
Code:
Filesystem Size Used Avail Use% Mounted on So, what command should I use now??? Thanx again!!! |
If you ran the df -H command from Opensuse then sda2 should be the root partition. You did run this from Opensuse, correct? The entry below should work if you change the root line to below to point to sda2 which would be (hd0,1) in Grub:
Quote:
|
Quote:
Thanx... |
Quote:
root (hd0,1) setup (hd0) quit Hit the enter key after each line. Also, ignore the entry in my last post. After you get the Opensuse Grub booting, you will need an entry in the Opensuse menu.lst similar to below for Ubuntu. I don't know which partition Ubuntu is on. If you don't, you can boot Ubuntu and run the df -H command from Ubuntu to find out. Then put an entry such as the one below in the Opensuse /boot/grub/menu.lst file. Quote:
|
Quote:
Thanx for going on helping me... |
This is most likely Grub2, not Grub legacy, so there is no menu.lst and the advices given to you by yancek will not work.
Actually it is as easy as this: 1. Start your openSuse system. 2. Open a terminal and launch these commands as root (I don't know if Suse uses sudo or su): Code:
grub-install /dev/sda |
Quote:
Code:
su - |
Apparently, the best way to do this with Opensuse is to use YaST. Take a look at the Opensuse site at the link below and scroll down to Section 10.3 which has details and you can select which Grub as well as the location. Select boot from Master boot record. You might also just check the Boot Loader Options tab to see what is there:
http://doc.opensuse.org/documentatio...nce/grub2.html You should be able to access YaST from the Menu tab in the lower left of the Desktop, or by entering it in a terminal as root user. |
Nope. Didnt help... I checked Master Boot Record but still, the Ubuntu grub appears at start-up...
Anyway, thanx!!! |
All times are GMT -5. The time now is 02:09 PM. |