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 plan to install redhat 8.0....On my box which already has two hard-Drives.With WinXp on drive hda,I want to install redhat on hdb,Since I have a NTFS partion on the first drive(hda) is it necessary,that I put the bootloader
on the second drive hdb in linux root partion boot sector
or do I have the option on putting a bootloader on the MBR( on hda)
I've read(linux+certification bible) that you have to put the bootloader in the Root partion and on a floppy for my sitution
I've also heard(from other forums) that this was not necessary and that I could put it in the MBR with Ntloader reconizing it abling a dual boot at start up.
ok..I havent got and answer if was possible to put the bootloader in the MBR for and NTFS dual boot,and still work.
Lets skip that question for a second. If I went with the recomended start up,by putting the bootloader in the linux root partition and on a floppy diskette.
How would I go about gettin rid of using the floppy and inserting the boot file into windows BOOT.ini
I've read around in the forums and found some helpful discussion
such as:
To set up a bootloader(grub) from the linux partition by going to start run then /sbin/grub-install /devv/hda3
then get the boot image file NTLDR will need by typing this
then goin to windows and puttin the bootsect.Lnx in the root and adding c:\bootsect.lnx="RedHAt" in the boot.ini
but refering to the book I've been reading(linux+certification bible)
has similar almost the same instruction but different...
AS:
mount -t msdos /dev/fd0/mnt/floppy
then dd if =/dev/hda5 bs=512 count=1 of=/mnt/floppy/linux.bin
then editing boot.ini in windows
with linux.bin instead of bootsect.lnx
basically I'm asking some to break down the commands for me(which each one litterally means) and if some one could tell me which way is correct or are they both write.
I'm new to linux so these commands dont make to much sense I see that there "almost the same but not the same" I know that makes A huge difference when it comes to typing commands..
I know I seem impatient,I'm just hungry for knowledge..
Well, I don't know how to set up Windows to present the multi-boot menu or how to set the options correctly. I do have an answer for your first question though.
The MBR is not a part of any filesystem. The MBR contains a small program to begin loading an operating system's kernel. It has no concept of filesystems to my knowledge. Thus, you can install lilo or grub to the MBR of a hard drive containing an NTFS filesystem with no problem.
Before doing that though, I would experiment with your current set-up first. Modify whichever boot loader you have to boot Windows. In other words, boot from your floppy disk, which will load either lilo or grub, and change the configuration files to add an entry for your Windows partition. Once you can successfully boot to Windows using either lilo or grub, then you can be fairly confident that your configuration can safely be placed into the MBR.
If you're paranoi...<ahem> cautious, make sure you have a DOS/Windows boot disk handy to run 'fdisk /mbr' if things go wrong after placing the boot loader in the MBR.
Sorry, didn't realize you hadn't installed RH8 yet.
You have two options:
1. Let Red Hat 8 detect your Windows partition and install grub (the default) in the MBR (i.e. you're trusting Red Hat's ability to figure things out on its own)
2. Install Red Hat, creating the boot disk and placing grub into the Red Hat partition.
In my opinion, #2 is safer, especially if you have critical data on your Windows setup. Also, the steps I was talking about with using the boot floppy, to grub, to windows assumes you have the setup described in #2.
Thnx alot Dark_Helmet!! Now that I have the answer to my first question. I think I will go with the second(#2) setup regarding to Dark_Helmet suggestion of a safer setup "since I have many important files on windows that aren't "backed up" at this point"
I'll play it safe!!
So if anybody can walk me through this setup of gettin rid of the floppy boot,and directly booting up linux and windows through the boot.ini
I'd appeciate it alot thanx again Dark_Helmet for your response.
OK I went ahead and tried to figer it out myself now. (I' messed up!!!!! windows Xp wont boot)
I did the Recomended boot up
(2. Install Red Hat, creating the boot disk and placing grub into the Red Hat partition(not the MBR),using the floppy to boot linux at every start up)
then to get rid of using the floppy to boot linux up I ran:
/sbin/grub-install /dev/hda1
So I reboot and BAM!!! grub came on with two options "redhat" and "dos"
I thought great Now I dont need the floppy to boot,Sure that was nice
But I cant get into windows now When I click to the dos option,(it just goes blank for a sec then back to grub)no boot to windows,oh of course I can get into redhat fine.
Please help I need to be albe to get into windows!!!!!!!!!!!!!!!!!!!
ok hmmm... I ran into a little problem like this when i had Red Hat... GRUB boot loder sometimes hides the flags for Win XP so here this is the help that i recieved mabey it will help you.
here is a generic grub.conf for linux and windows
# make sure you have lines like these two, if there is no default it will boot in the list order, but you need timeout
default=0
timeout=10
# the following may differ on yours, don't change it
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
root (hd1,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda2
initrd /initrd-2.4.18-3.img
#this is what you need to add to your /etc/grub.conf
title WinXP
rootnoverify (hd0,0)
makeactive
chainloader +1
unhide (hd0,0)
that should fix it
If i was you... I would either install a diff distro
But really what you could do 2 is reinstall RED HAT and when you it asks you to pick a boot loader... go with LILO....
ok thnx..,But before I every had the chance of reading your post "Nefarious" I decided to try and fix the problem my self, SO I put in a xp cd went to recovery
and put in the "fixboot" command for windows.That work fix the boot problem for windows XP great!
And also put linux bootsect.lnx in the c: directory change the boot.ini
but When I restart I can boot back in windows fine but linux doesn't boot,Just a black screen that says GRUB...
I do have the linux boot floppy though..(so gettin into linux that way is no problem)
now that you have told me how to config grub..I just need to know how the comand exactly are instead of me doing trail and error test.
example:
then to get rid of using the floppy to boot linux up I ran:
/sbin/grub-install /dev/hda1
is that right or what?? cause my windows in on hda1 and linux is on hdb1 seems I may have them backwards or It also seems like I 'm getting the two different boot methods(from above)mix together??
I need some bug time clearification here..???????
Undo what u did lol.... and do what i said to do... or... at this time do what i said to do in the second part... REINSTALL Red Hat and when it comes up to choose a boot loader choose LILO and not Grub
"Nefarious".
Well I undid what I did early,and setting things back as of where I couldn't boot into winXp and I changed the /etc/grub.conf
to what you told me above,but still no luck,it didn't help,So my only option your saying is to reinstall linux agian this time choosing lilo(linux loader).
Question? is there any other way around reinstalling linux agian
if somebody knows please let me know and reply thnx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.