LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-14-2008, 05:06 AM   #1
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
Question Tripple Os Install Question


Ok here is my question

I had fedora core installed on my system and i used the grub boot loader to boot windows xp and fefora core 8 but i installed windows vista on another partition and it overwrote the master boot record and now only allows me to boot windows xp and vista. Now I know my fedora core resides on my sata 2 hard drive on the partition 2 which is SDB2. I know that if i reinstall my fedora its going to write grub again to the master boot record but i don't want to reinstall the whole os again. My question is: Can anybody tell me how to boot my linux partition and then configure grub to reside on my master boot record and be able to boot all three operating systems?
 
Old 01-14-2008, 05:23 AM   #2
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
1) you can overwrite the mbr again and put grub there but you will then need to edit grub menu to add a new entry for Vista.

2) if you have a live cd....boot it...open shell
Code:
su
root (hd1,1)
setup (hd0)
I am assuming you have another drive, sda? if not post more info pls

remove cd and test it boots into grub and then boot into linux

3) with root powers add a new menu line

eg

title Vista
root (hdX,y)
chainloader + 1

you have not supplied enough info for me to know where is vista.

look at my signature or provide more info on exactly what is drive is and the partition table as you know pls
 
Old 01-14-2008, 05:24 AM   #3
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
if you have no live cd, Fedora should have a recovery or rescue mode at initial boot up.
 
Old 01-14-2008, 06:37 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by ratilio View Post
Can anybody tell me how to boot my linux partition and then configure grub to reside on my master boot record and be able to boot all three operating systems?
If you can get a LiveCD to boot (or System Rescue CD), you can run
Code:
# mkdir /mnt/system
# mount -text3 /dev/sdb2 /mnt/system
# grub-install --root-directory=/mnt/system /dev/sdb
That will re-install grub in the MBR of "/dev/sdb" using the settings it finds in "/mnt/system/boot". If "/dev/sda" is your boot drive, you need to use that instead.

You will then have to add Vista to "/mnt/system/boot/grub/menu.lst" as a previous poster described. Do not forget to cd out of "/mnt/system" and then run "umount /mnt/system" before rebooting.
 
Old 01-14-2008, 03:04 PM   #5
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for all the replys I will give it a try when i get home and I will post more information about my setup
 
Old 01-14-2008, 04:24 PM   #6
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Ok I have two drives, SDA
SDA1 is a ntfs partition that holds xp
SDA2 is a ntfs partition that holds vista

SDB
SDB1 which is a nfts partition that i use to store my data
SDB2 which is my linux partition and where i have linux installed
SDB3 which is my swap file

I know the master boot record should be installed on SDA and you guys make sense on your recommendations and i will give it a try right now

Last edited by ratilio; 01-14-2008 at 05:30 PM. Reason: needed to clarify
 
Old 01-14-2008, 05:00 PM   #7
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
the code I wrote above is still good.

now we know where vista is replace (3)' hdx,y with (hd0,1) for the new vista menu
 
Old 01-14-2008, 06:07 PM   #8
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
the code I wrote above is still good.

now we know where vista is replace (3)' hdx,y with (hd0,1) for the new vista menu
I am confused with the code because i tried it and it told me unknown command i think am doing it wrong
 
Old 01-14-2008, 06:09 PM   #9
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by David1357 View Post
If you can get a LiveCD to boot (or System Rescue CD), you can run
Code:
# mkdir /mnt/system
# mount -text3 /dev/sdb2 /mnt/system
# grub-install --root-directory=/mnt/system /dev/sdb
That will re-install grub in the MBR of "/dev/sdb" using the settings it finds in "/mnt/system/boot". If "/dev/sda" is your boot drive, you need to use that instead.

You will then have to add Vista to "/mnt/system/boot/grub/menu.lst" as a previous poster described. Do not forget to cd out of "/mnt/system" and then run "umount /mnt/system" before rebooting.
I tried your commands and the first two worked, i was able to mount my system and view my files, however, when i put the third command an error message appeared saying
/sbin/grub not found
ok i thought maybe i need to copy the grub directory from /mnt/system/boot/grub to the /sbin directory and i did it but it still gave me the same error, am confused now
 
Old 01-14-2008, 10:22 PM   #10
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
my commands need a live cd or a install cd that has got grub in it.

oops

my code is wrong. after booting a live cd or running a install cd where you go into console mode from the recovery or rescue option

Code:
su
grub
root (hd1,1)
setup (hd0)
quit
 
Old 01-15-2008, 03:37 AM   #11
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
my commands need a live cd or a install cd that has got grub in it.

oops

my code is wrong. after booting a live cd or running a install cd where you go into console mode from the recovery or rescue option

Code:
su
grub
root (hd1,1)
setup (hd0)
quit
Well i used the codes that you gave me with the fedora 8 rescue cd but it did not work, and mainly am doing this to learn to troubleshoot linux because by now i would just have installed fedora core 8 however i wanted to learn how to troubleshoot it
thanks for the code but somehow it did not work, i looked for the syntax of grub in the man pages but i still could not fix it, i am just mad because i want to learn to troubleshoot it maybe i should just reinstall it
am going to take a look at the link under your name for a grub tutorial
 
Old 01-15-2008, 04:05 AM   #12
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
which live cd are you using please?

what errors are you getting?

If you are using Fedora in rescue mode, what steps did you take? what errors please?
 
Old 01-15-2008, 04:14 AM   #13
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

Rep: Reputation: Disabled
BTW if grub is not on the live cd you have....your error should be
command not found....immediately after trying command grub
 
Old 01-15-2008, 04:32 AM   #14
ratilio
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
BTW if grub is not on the live cd you have....your error should be
command not found....immediately after trying command grub
the super user command works and the grub command works
i get the grub prompt but when i put the other coomands exactly the way you typed them it gives me an error i tried putting the
root (hd1,1)
setup (hd0)
but they did not work maybe because they are sata drives?
 
  


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
The quest for I tripple E IcoNyx Linux - Networking 6 07-21-2007 08:04 PM
Tripple Boot floppywhopper Linux - General 2 09-02-2004 12:07 PM
tripple boot?? jt1020 Linux - General 15 09-03-2003 01:57 PM
Tripple boot Question rosenhan Linux - Newbie 4 11-28-2002 08:11 AM
Tripple boot berry Linux - General 3 10-20-2002 04:30 PM


All times are GMT -5. The time now is 07:36 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