LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 04-27-2002, 06:33 PM   #1
Digiman2k
LQ Newbie
 
Registered: Apr 2002
Posts: 12

Rep: Reputation: 0
Post Bootloader


I recently downloaded and installed RedHat 7.2

I currently have two physical drives. Windows (XP) is on the Master, and Linux on the Slave. I had it install the bootloader (GRUB) to the slave.

When I try to boot from HD1 (the slave) it displays "GRUB" and then stops... have to reboot.

The only way I've been able to get in is through the floppy...

Any ideas, or suggestions on a better way to dual boot (without floppies) between RedHat and WinXP?


I was thinking of using the NT bootloader to have options XP and Linux, but if I can't even boot into linux directly, I can't get that to work.

Thanks,
CG

-Don't worry... I have more problems ^_^.. but have to start somewhere.
 
Old 04-28-2002, 04:20 PM   #2
mosaddique
LQ Newbie
 
Registered: Apr 2002
Location: Coventry, U.K.
Distribution: Fedora Core 6
Posts: 14

Rep: Reputation: 0
Thumbs up

1. Boot into Linux and copy the boot image from the boot sector.
To do this run: dd if=/dev/hdxn bs=512 count=1 of=/linux_bs.bin, where
/dev/hdxn is the location of /boot and /linux_bs.bin is the Linux boot image. In your case it will probably be hdb1.
Copy this linux boot sector file to a safe and accesible location as follows:

If you are using NTFS for Windows 2000/XP then I suggest a floppy.
------------------------------------------------------------------
dd if=/dev/hdb1 bs=512 count=1 of=linux_bs.bin
mount -t msdos /dev/fd0 /mnt/floppy

cp linux_bs.bin /mnt/floppy
OR
dd if=/dev/hdb1 bs=512 count=1 of=/mnt/floppy/linux_bs.bin

ls /mnt/floppy
umount /mnt/floppy

If you are using FAT32 for Windows 2000/XP then just copy it across.
--------------------------------------------------------------------
dd if=/dev/hdb1 bs=512 count=1 of=linux_bs.bin
cp linux_bs.bin /mnt/win_c/linux_bs.bin

NOTE - You need to do this every time you make changes that result in a change to LILO. Example if you update the kernel.

2. Reboot into Windows 2000/XP and copy this linux_bs.bin file into the root directory (C:\).

3. Edit c:\boot.ini and append the following line at the end of the file:

c:\linux_bs.bin="Linux".


Here is what the boot.ini may look like

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="MS Windows XP Pro" /fastdetect
C:\Linux_bs.bin="Linux Mandrake 8.2"

Replacing
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
With
default=C:\Linux_bs.bin

Would cause Linux to be the default

I hope this helps. I have used it succesfully with LILO not with GRUB.
 
Old 04-29-2002, 08:16 PM   #3
Digiman2k
LQ Newbie
 
Registered: Apr 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks... I was actually able to get it to work with GNU Grub after a bit of messing around.

CG
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM
No Bootloader! JoshSmith41 Linux - Newbie 4 07-28-2003 03:24 AM
Bootloader Dumpsterm0uth Linux - General 6 05-26-2003 12:01 PM


All times are GMT -5. The time now is 01:30 PM.

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