LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-10-2003, 09:11 AM   #1
rokga
LQ Newbie
 
Registered: Sep 2003
Location: Slovenia
Distribution: Red Hat 9
Posts: 9

Rep: Reputation: 0
Unhappy can't boot linux


I installed RH 9 but now I can't boot it without the boot up disk. Can someone help me configure a boot loader (grub) so I will be able to boot linux or windows XP with it. Can anyone help please?

thanks

Rok
 
Old 10-10-2003, 10:18 AM   #2
rootyard
Member
 
Registered: Aug 2003
Posts: 167

Rep: Reputation: 30
quick answer: reinstall it and then this time choose the mbr install of the bootloader of your choice or have the install create a boot floppy
 
Old 10-10-2003, 10:18 AM   #3
rootyard
Member
 
Registered: Aug 2003
Posts: 167

Rep: Reputation: 30
quick answer: reinstall it and then this time choose the mbr install of the bootloader of your choice or have the install create a boot floppy
 
Old 10-10-2003, 10:34 AM   #4
Spot
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
I guess you have one partition for XP and another one for RH 9 on your harddisk? If this is the case, you should boot your system with the XP bootmanager.

Install grub into the bootsector of your RH 9 boot partition, not into the mbr of your harddisk. If your hardisk is an ide drive the location for grub should be /dev/hdax. hda = first ide drive, hdb = second ide drive and so on. x stands for the number of your RH 9 boot partion. Don't install grub to the device /dev/hda because that will destroy the XP bootmanager.

After you have done this, copy the grub bootsector onto a floppy disk. Assuming an installation on your first ide disk, you can do this by typing "dd if=/dev/hdax of=bootsec.lin count=1 bs=512" and "cp bootsec.lin /media/floppy" into a shell. The floppy has to be mounted to the directory /media/floppy in this example.

Be careful with the dd command! Don't mix up with "if=" and "of=".
Reboot your system to XP and copy the bootsec.lin file into your XP root directory. After that you have to edit the file "boot.ini" in your root directory. Add a line c:\bootsec.lin = "RH 9" if c:\ is your XP bootdisk.

That's it. Reboot your system and choose the operating system you want to work with.
 
Old 10-10-2003, 10:40 AM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Obviously make sure grub is installed and then do:

grub-install /dev/hda

This will do everything for you.

Think grub-install is right.

Assuming you want first hard drive to boot.
 
Old 10-16-2003, 05:14 AM   #6
rokga
LQ Newbie
 
Registered: Sep 2003
Location: Slovenia
Distribution: Red Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the replys but it still doesn't work. I did what Spot suggested but when I try to boot linux I get a message that says "\system32\hal.dll is missing". But I have the file. Can anybody help.

Thanks

Rok
 
Old 10-16-2003, 01:53 PM   #7
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Assuming you get the grub screen on startup and choose the linux option then you get the message, then it seems like grub is talking to Windows instead of Linux.

Could try entering commands manually on grub command line.

How about:
root (hd0,1) #assuming linux on second partition
kernel /boot/vmlinuz root=/dev/hda2
boot

If doesn't work try fiddling with it. e.g. kernel vmlinuz root...

It it works enter it in the relevant block in ?menu.lst. /boot/grub/menu.lst. But don't put 'boot'.

Sorry if my earlier advice would have buggered Windows, I don't know.
 
  


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
Is there a file that Linux writes upon boot that is the EXACT text as the boot screen lostboy Linux - General 21 01-08-2008 03:10 PM
Cannot boot up on Linux, have to boot onto Linux-nonfb after installing nvidia driver /home/kyle Linux - Newbie 6 09-15-2004 12:23 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
dual boot - XP and Linux - Need to reinstall XP without effecting linux -LILO boot godofmind Linux - General 1 05-05-2004 09:13 AM
Linux Boot Floppy Went Bad on W2K-Linux Dual Boot rzward Linux - General 2 01-15-2003 11:52 AM


All times are GMT -5. The time now is 06:49 AM.

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