LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2011, 10:19 AM   #1
mirzasoltan
LQ Newbie
 
Registered: Oct 2010
Posts: 28

Rep: Reputation: 0
Grub


hi all,
i have one hard disk with 1TB space, i installed windows 7 in that, after a while i add second hard disk with 300 GB and installed fedora 15 in that and everything in grub was ok, i have two os for selecting, now i add a new hard drive with 160 GB space and i installed CentOs in that, but in grub i only have windows 7 and centos, my fedora is gone and i can not access it, my 3 hard disk is installed in bios, and i test with changing boot disk priority in bios, but nothing happened,
help me please, i want to have 3 of them in my grub to select.
 
Old 11-05-2011, 10:27 AM   #2
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE 12.1
Posts: 96

Rep: Reputation: 24
Boot into CentOS, and show the contents of '/boot/grub/menu.lst'
This is how this file is called on a OpenSUSE system, i'm not really sure if it has the same name on CentOS...
 
1 members found this post helpful.
Old 11-05-2011, 10:29 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Is it possible that Centos is using GRUB 1 and Fedora 15 GRUB 2 ?
In that case reinstall Fedora Grub and run the command sudo update-grub afterwards
 
1 members found this post helpful.
Old 11-05-2011, 08:17 PM   #4
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;GO MAGEIA!!!Hopefully last destination is Gentoo
Posts: 878

Rep: Reputation: 52
I'm 99% sure that Fedora 15 and CentOS use Grub legacy which works fine if you can find the documentation needed. Fedora's Installer has the choice of whether to add existing Linux installs to the bootmenu and I believe by default it does NOT add the existing installations except M.S. You should be able to tell if you are using Grub Legacy by pressing C at your menu prompt to select a O.S to boot. If a command line shell appears it should be grub Legacy.

If it is Legacy and you want to "manually boot" these are the commands.


"root"
"kernel" along with a root= argument/option
"initrd"
and then finally "boot" all without quotes.

First command "root (hd0,1)" this would be if you want to boot a Linux O.S that is on your first hard drive on the second partion. Grub Legacy uses 0 for more than a place holder so 0 equals 1 in Grub Legacy talk.2 equals 3 and as well.

root (hd0,1) press enter


For the kernel command you type "kernel /boot/" and then press tab which will give you a list of possible selections.For Fedora type "kernel /boot/v" and then press tab. You should have something like

"kernel /boot/vmlinuz-2.6.38.6-26.rc1.fc15.i686.PAE" you will need the root= option so the kernel command would look like this.

"kernel /boot/vmlinuz-2.6.38.6-26.rc1.fc15.i686.PAE root=/dev/sda2" As you can see the kernel command is different than the root command as in there is no punctuation(comma) in the root= option.If you type sda,2 it will not boot.

The tab "fill in" funtion will work in all commands for your knowledge.

The "initrd" command is easy, you just type "initrd /boot/i" and then "autocomplete" by pressing the tab key.

Lastly you type "boot" and if everything is correct you should see large font boot messages that turn into a small font boot up message scrolling on the screen and then a log in menu should appear. Press "enter" after completing each command along with the boot command.



Thats the manual way to boot. The last Linux O.S you installed has a menu.ls file that you will have to add the O.S that it did not add to your menu.ls file to automatically boot. I think Fedora needs the uuid data to boot in the menu.ls file so you know.


If you get back to your thread members can help you with your unbootable O.S. Multibooting is quite a bit more complicated than dual booting but if you break it down into small steps it is easier to understand.

Last edited by theKbStockpiler; 11-05-2011 at 08:21 PM.
 
1 members found this post helpful.
Old 11-05-2011, 10:13 PM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,064

Rep: Reputation: 41
You can download boot_info_script from http://bootinfoscript.sourceforge.net/ and run it as root. The output will be stored in RESULTS.txt which you can post here. It will clarify all the partitions as well as grub and booting info.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 05:02 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 05:29 AM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 07:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration