LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-09-2004, 10:23 AM   #1
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Rep: Reputation: 15
another dual boot problem


i know you guys see a lot of dual boot problems on these forums but i can't figure this out..

to start off, i installed red hat 9 on a second hard drive [hdb3] however windows xp did not boot properly from grub, so i inserted a bootmagic rescue disk and it now boots from winxp each time, no grub. i've tried to reinstall grub, ./grub-install /dev/hdb3, and from the red hat boot cd [says no kernal packages were installed so boot changes were not saved].

I also tried booting linux from the windows bootloader by doing the following:

dd if=/dev/hdb3 of=/bootsect.lin bs=512 count=1

then copying that bootsect.lin to a floppy and then into c:\ on windows and inserting the folowing into boot.ini:

c:\bootsect.lin="Red Hat Linux"

when i choose 'Red Hat Linux' from the screen, it doesn't boot, just an underscore. any ideas?
 
Old 04-09-2004, 10:28 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
To reinstall to the MBR, you probably need to run 'grub-install /dev/hda'. The 'fixmbr' command from the XP cd undoes this.
Run 'fdisk -l' to see all your partitions (post it here, too)
 
Old 04-09-2004, 10:34 AM   #3
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
hrmmm

./fdisk -l
Cannot open /dev/hda
Cannot open /dev/hdb

how would i do the fixmbr command from the XP cd?

thanks for replying
 
Old 04-09-2004, 10:41 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Are you running the command as root? You do not need the './', just type 'fdisk -l'.
Boot XP cd, go to Recovery Console, run 'fixmbr'.
 
Old 04-09-2004, 10:48 AM   #5
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
when i just type fdisk -l i get bash: fdisk: command not found

anyway,


Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4998 40146403+ 7 HPFS/NTFS

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 81 650601 17 Hidden HPFS/NTFS
/dev/hdb2 4859 4865 56227+ f Win95 Ext'd (LBA)
/dev/hdb3 82 4794 37857172+ 83 Linux
/dev/hdb4 4795 4858 514080 82 Linux swap
/dev/hdb5 4859 4865 56196 b Win95 FAT32

Partition table entries are not in disk order
 
Old 04-09-2004, 11:02 AM   #6
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
okay i did the fixmbr
 
Old 04-09-2004, 11:14 AM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Running the command w/o the './' should work fine. If you are a regular user & not root you will get 'command not found' for certain commands (those in /sbin).
Run 'grub-install /dev/hda' as root to reinstall Grub. Then try to get XP working from Grub. 'fixmbr' will remove grub.
 
Old 04-09-2004, 11:25 AM   #8
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
okay it now works fine, thanks man i appreciate it :]
 
  


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
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM
Dual Boot Problem mainak Linux - General 4 04-12-2003 02:32 PM


All times are GMT -5. The time now is 01:47 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