Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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've installed a Red Hat 9 distro on the same hard-drive as Windows-the Windows OS grabbing onto a primary partition, and Linux tucked away in the Logical cacoon in an Ext/2 partition, all created by PartitionMagic. I installed BootMagic, because I was invited to by the august tomes of PowerQuest, and because I didn't know any better. Red Hat, of course, thought better of its' own offering (Grub), and brought that to the table. Now, I can't get either one to talk nice to the other. BootMagic will boot Windows, and Grub will boot RedHat. I am the intermediary, juggling two boot-up floppies as appropriate. What I would really like to do is improve the code embedded in Grub, (labeled DOS) that at least intends to kick Windows off to a good start. (Once I'm able to realize this dream, I'll then give BootMagic the boot.) To that end, I've retrieved what I hope is appropriate code from the Linux Doc. Project. Can even go into edit in the Grub environ and add the code. What I CAN'T do is get Grub to swallow it! I've gotten as far as the command line screen, wherein I should let Grub know that I've tossed up some code that I would like saved, but I don't have a clue how to do that. What code lines do I need to leave at Grub's doorstep so's it'll inhale and retain the Windows boot-up stuff?
1. Boot your machine from your boot media (cdrom1) and select linux rescue to install to the command prompt.
2. Redhat 8.0 displays a message “If you would like to make your system the root environment, run the command: chroot /mnt/sysimage”. Go ahead and do that.
3. At the prompt, type rdev and make a note of the output. For example, if it looks like this... /dev/hda2 / . This indicates that the Redhat root partition is on the first drive and second partition. You need that info for the next step.
4. Get into the grub configuration utility with the command: grub.
· At the prompt grub> type the command: root (hd0,1) ; this will tell grub that the linux files it needs are on the first hard disk (hd0) and the second partition (1) of that drive. Change this to meet your configuration needs. For instance, if the linux files are on the second hard disk (hd1), first partition (0) of that drive then type root (hd1,0).
· If you selected the correct location (where linux is installed), you should see a message as follows.... Filesystem type is Ext2fs, partition type is 0x83.
· Then issue the following command: setup (hd0) ; this will install grub in the MBR of your first hard disk. You could change that to use the /boot partition if desired.
· Exit the grub utility with the command: quit
The file /etc/grub.conf may need to be edited also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.