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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-14-2008, 05:06 AM
|
#1
|
Member
Registered: Mar 2007
Posts: 31
Rep:
|
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?
|
|
|
01-14-2008, 05:23 AM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
01-14-2008, 05:24 AM
|
#3
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
if you have no live cd, Fedora should have a recovery or rescue mode at initial boot up.
|
|
|
01-14-2008, 06:37 AM
|
#4
|
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
Rep:
|
Quote:
Originally Posted by ratilio
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.
|
|
|
01-14-2008, 03:04 PM
|
#5
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
Thanks for all the replys I will give it a try when i get home and I will post more information about my setup
|
|
|
01-14-2008, 04:24 PM
|
#6
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
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
|
|
|
01-14-2008, 05:00 PM
|
#7
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
01-14-2008, 06:07 PM
|
#8
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by aus9
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
|
|
|
01-14-2008, 06:09 PM
|
#9
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by David1357
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
|
|
|
01-14-2008, 10:22 PM
|
#10
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
01-15-2008, 03:37 AM
|
#11
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by aus9
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
|
|
|
01-15-2008, 04:05 AM
|
#12
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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?
|
|
|
01-15-2008, 04:14 AM
|
#13
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
BTW if grub is not on the live cd you have....your error should be
command not found....immediately after trying command grub
|
|
|
01-15-2008, 04:32 AM
|
#14
|
Member
Registered: Mar 2007
Posts: 31
Original Poster
Rep:
|
Quote:
Originally Posted by aus9
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?
|
|
|
All times are GMT -5. The time now is 05:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|