Results 1 to 6 of 6
I have two problems. I installed a RHEL variant (scientific linux) on an already dual boot system with ubuntu and vista.
It replaced GRUB with (I think an older) GRUB ...
- 01-02-2010 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 23
[SOLVED] GRUB of previously installed distro
I have two problems. I installed a RHEL variant (scientific linux) on an already dual boot system with ubuntu and vista.
It replaced GRUB with (I think an older) GRUB version and to add to that I cannot see my ubuntu ditro anymore. is there a way of reinstalling the GRUB that came with ubuntu then adding the RHEL distro to it?
my second problem is that I cannot figure out how to enable wake on lan in scientific linux (RHEL). on ubuntu I would just write a small script and update all runlevels to run it at startup. what is the alternative on redhat?
Thanks in advance.
- 01-03-2010 #2Its a problem in all RHEL based distros. Their installers do not detect other installed Linux distros. Strangely, ( or intentionally) there is no problem for Windows OSes.I have two problems. I installed a RHEL variant (scientific linux) on an already dual boot system with ubuntu and vista.
It replaced GRUB with (I think an older) GRUB version and to add to that I cannot see my ubuntu distro anymore. is there a way of reinstalling the GRUB that came with ubuntu then adding the RHEL distro to it?
Two ways :
* Boot up Scientific Linux, mount / partition of Ubuntu and copy title block ( title, root, kernel and initrd lines ) from its /boot/grub/menu.lst file. Paste title block in Scientific Linux's /boot/grub/grub.conf file.
* Re-install Ubuntu GRUB using Ubuntu LiveCD. You have to add an entry of Scientific Linux in Ubuntu GRUB manually as I suggested above.
If you are using GRUB2 in Ubuntu, things will be a lot easier. Just execute grub-update command, it will detect Scientific Linux and edit GRUB2 Menu.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-03-2010 #3Just Joined!
- Join Date
- Jan 2008
- Posts
- 23
Hi devils casper thank you for helping out.
I reinstalled GRUB2 from a ubuntu live DVD but it seems the the following commands don't find my RHEL distro automatically.
I think this has something to do with how my drive has been partitioned. since in addtion to /boot (which contains the GRUB folder and the unbuntu images)Code:sha@COSMOS:~$ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-16-generic Found initrd image: /boot/initrd.img-2.6.31-16-generic Found linux image: /boot/vmlinuz-2.6.28-17-generic Found initrd image: /boot/initrd.img-2.6.28-17-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows Vista (loader) on /dev/sda1 done sha@COSMOS:~$ sudo update-grub2 Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-16-generic Found initrd image: /boot/initrd.img-2.6.31-16-generic Found linux image: /boot/vmlinuz-2.6.28-17-generic Found initrd image: /boot/initrd.img-2.6.28-17-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows Vista (loader) on /dev/sda1 done
I also have a
/media/_boot (which seems to contain its own grub folder and all the scientific linux OS images)
I know very little about partitioning a HDD well. this is a fairly fresh install so if you have any advice on how I should set up my partitions I would be grateful.
This is how I currently have it.
- 01-04-2010 #4
You have created LVM for Scientific Linux and /boot partition is necessary for that.
You have to add an entry of Scientific Linux in Ubuntu's GRUB Menu manually.
Boot up Ubuntu and execute this in Terminal
Copy first title block (first kernel and initrd lines). You have to add those in Ubuntu's GRUB.Code:cd /media sudo mkdir sboot sudo mount -t ext3 /dev/sda3 /media/sboot less /media/sboot/grub/grub.conf
Press Alt+F2 and type this
This will open 40_os-prober file in Gedit with root privileges. Add this code at the end of the file.Code:gksu gedit /etc/grub.d/40_os-prober
Save file and execute sudo update-grub2 command.Code:menuentry "Scientific Linux" { set root=(hd0,3) <linux Line of SLinux> <initrd Line of SLinux> }Last edited by devils casper; 01-04-2010 at 06:32 AM. Reason: typo
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-04-2010 #5Just Joined!
- Join Date
- Jan 2008
- Posts
- 23
it works!
one thing for others who may have this problem. It seems as if the grub.conf file in that partition was still the old GRUB syntax so watch out for that.
you have to change "kernel" into "linux" for GRUB2 to understand it.
Also, GRUB 2 has a nice almost empty file for manually entering grub.conf entries. so I added the menuentry to that instead of 40_os-prober.
thanks again devils casper, you have been a great help.Code:gksu gedit /etc/grub.d/30_custom
- 01-04-2010 #6
Glad to help you !
I am using GRUB2 for more than one year and it really works great. Regarding kernel keyword, you are right. Its linux instead of kernel. It was a typo.
You can create a lot of custom files to add manual entries for different distros.Also, GRUB 2 has a nice almost empty file for manually entering grub.conf entries. so I added the menuentry to that instead of 40_os-prober.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First



