Linux - NewbieThis 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.
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.
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?
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
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.
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
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
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.