LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Cant get dual boot working... please help (https://www.linuxquestions.org/questions/fedora-35/cant-get-dual-boot-working-please-help-457095/)

trancekid 06-21-2006 09:10 PM

Cant get dual boot working... please help
 
Alright, total Linux newb here but I really want to start using it. After a long day of struggling to get it working and trying three different distro's with none of the DVD's working I finally decided to try installing off my 2nd HD. So I have the FC5 ISO on device1 while XP is on device0. I was able to install it fine this way, having it allocate all empty space on device1 to the ext3 file format for FC5. So yah, it is installed and I was happy but then when I rebooted it just goes straight to XP. I searched around google and found a program called bootpart, so I ran it with the proper command lines to to create a file "bootsect.lnx" which I placed in my C:\ on the windows drive. I also changed the boot.ini in C:\ to include c:\bootsect.lnx="Linux". Rebooted, and it displayed Win XP or Linux, so I click on Linux and it goes to the next screen displaying some info about bootpart and then it just sat there. I don't remember the exact error it gave after a bit but something about placing the media in the drive.

I am ready to give up though. I tried reinstalling FC5 hoping grub or something magic would happen if I kept reinstalling, haha, but of course that didnt happen. I notice everyone talking about GRUB here on the forums to dual boot but I can not boot FC5 so there is no way for me to install anything Unix.

The partitions are pretty normal.
2 IDE Drives
0 - 200g - WinXp
1 - 150g - 10g vFat for the FC5 ISO with the rest for Linux

In partition magic it shows 1 as having:
* - unallocated - 7mb
* - extended - 10g
Local Disk F - FAT32 - 10g
Local Disk * - Linux ext3 - 102mb
Local Disk G - Type 8E - 142.5g

When installing FC5 I told it to just use all the unpartitioned space and set up default partitions and that is what it set up, the ext3 and 8E.

I am ready to start pulling the hair straight out of my scalp after rebooting my pc as many times as I have today so if anyone has any advice or could point me in the right direction that would be great.

Thanks in advance.

PS. I know FC5 is installed fulled because I went into rescue mode and was trying to figure out the commands. Granted I did not figure them out, but I typed in find at one point and it just spammed me for like 3 minutes with every file installed on the Linux drive.

syg00 06-21-2006 09:48 PM

Change the BIOS to boot the second drive - what happens ???.

gfem 06-22-2006 05:00 PM

I had the same problem. What I did was used partition magic(dos/windows) or Qtparted(linux) to partition 102mb on the first hard drive(0) the winxp one, then linux can load grub or lilo on that partition and boot both os's.

trancekid 06-22-2006 05:45 PM

When I have it boot off the second drive it says there is an error loading the operating system. Could the problem have to do with the fact that I have the 2nd drive set up like this?

|----fat32---||-swap-||------------------8E------------------|

I have read that the boot files need to be in the first 8 gigs or so of the hard drive but it also seemed that the info was very outdated so I pretty much ignored it considering my pc is not even 2 years old yet.

Gfem: How did you go about installing Grub? I can only get into Rescue mode and I do not have a floppy drive. I have obviously cd/dvd and a USB flash drive. Could I install grub off a cd or flash drive in rescue mode? If so, how do i access the drive from rescue mode? I dont know many of the Unix commands yet, just df and ls -al really...

One other thing. I was actually trying to do something like this last night, installing a shared partition on device0 to get the bootsect file from linux then install grub with it. But once I got into rescue mode the /boot partition i made wasnt showing up then it later told me i cant have two /boot partitions. Even though I only see one.

Should I try to reinstall with a custom partition set up instead of the default? Because everyone says to make like a /boot /swap / /root partitions but the default setup only made two for me.

Thanks for any help.

syg00 06-22-2006 06:35 PM

Quote:

Originally Posted by trancekid
When I have it boot off the second drive it says there is an error loading the operating system.

That's o.k - means you didn't install grub to the MBR of the second disk, which is what I wanted to check.

When you reboot, *immediately* after the BIOS messages, hit the <ESC> key.
See if you get a grub menu - if so, select Fedora and see what happens.

harley51 06-22-2006 06:59 PM

Try This
 
Fedora Core 4 Install

This by all means may not work for everybody.

I run an Intel D865perl motherboard with 2.6 gig Intel processor with 1 gig of ram. Two 250 gig
hard drives. The first hard drive is for Windows XP. Second hard drive is for Fedora and data
backups.

Drive 2 the first 40 gig is Fedora and the second 210 gig is for files backups and Norton ghost 2003
images. Which I never doing anything without a current image file it will save your butt.

Install Fedora Core 4 on the second hard drive and use the automatic partitioning tool but don't
put grub on your Master MBR put it on the first sector on your second drive. When you get to the
Boot Loader Configuration screen make sure you check the Configure advanced boot loader
options. The next screen will give the option where to put Grub Boot Loader. It should say like
hda or hdb. Hda is usually your XP Drive. From their finish loading. Put it on hdb.

Now duel booting using XP boot manager (My Preference. I don't like third party boot managers.)

Use your rescue CD to boot to Fedora.
Hit enter at the boot prompt.
Hit enter for English
Hit enter for us
Setup network select no
At the rescue screen select continue
At the next rescue screen hit enter
Now you have a prompt sh-3.00#
At the prompt type in chroot /mnt/sysimage
If hdb2 is Not your boot partition, change it as appropriate. Type: df then determine which hda#
Run the command dd if=/dev/hdb2 of=boot.lnx bs=512 count=1
You should see
1+0 records in
1+0 records out
Type ls and you should see a file named boot.lnx
Put a blank floppy disk in your a: drive
Type mcopy boot.lnx a:
It should have copied the file to your a: drive

Now reboot to Windows

Copy boot.lnx to your root directory
Right click on your boot.ini file select properties and uncheck read only click ok
Double click your boot.ini file and add one line at the end it should read
C:\boot.lnx="Fedora Core 3". Then save it. When you reboot your XP boot
manager will come up and you can chose Fedora it jumps to the Grub Boot manager on your
second drive.

My file looks like this

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(0)(1)\windows
[operating systems]
multi(0)disk(0)rdisk(0)partition(0)(1)\windows="Microsoft Windows XP Pro SP2"
/fastdetect /NoExecute=OptIn
c:\boot.lnx="RedHat Fedora Core 3 Project"

You call it anything you want

trancekid 06-22-2006 07:06 PM

I will give this a shot when I go home, but I do not have a floppy drive. Can I use a USB flash drive or will it not detect a flash drive in Rescue Mode?

trancekid 06-23-2006 11:57 AM

I tried the esc thing and got nothing. But while installing FC5 there is never an option for the boot loader. When I go to update/edit the install with the CD I can add Grub but then when it goes to install it, I get the no kernels installed or some message like that. I will try to find grub and install it through rescue.

short circut 06-25-2006 10:10 AM

wow this actually worked. i cant beileve it.


All times are GMT -5. The time now is 10:56 PM.