no boot XP after FC4 (REPHRASING OF THE QUESTION)]

John Wirt jwirt001 at toward.com
Mon Jan 9 03:33:54 UTC 2006


Refugio,

As Allan Grant has evidently not responded to your reply with the 
subject above, could you please add the next steps to your solution? 
Like Alan, I would like to add Linux to a boot manager other than Grub 
but my situation is somewhat different.

The boot manager I am using is Boot-it by Terrabyte Unlimited
(http://www.terabyteunlimited.com/). There are instructions on that
website for reconfiguring Linux so that it can be added to the boot
menu. The basic issue is moving Grub to the root directory of the Linux
partition, as you outline is your instructions to Alan Grant.

However, I also have two SCSI drives in my machine and am in the process 
swapping the position of one for the other. My machine originally came 
with Linux (RedHat Enterprise Workstation v.3) was on the first SCSI 
disk and the second one had a Linux partition on it. So Linux took up 
the whole first disk. A month ago, I swapped the position of the first 
and second drive and installed Windows XP on the new first drive.

I erased the Linux partition on the new first drive and installed a 
primary partition for XP (NTFS), an extended partition with two NTFS 
volume in it, and Boot-it, which requires a small "EMBR" partition (FAT) 
partition. XP works fine. Now I want to add Linux, which is (now) on the 
2nd SCSI disk, to Boot-it as a boot item. But the Linux on that disk is 
configured to run on a disk that is HD0.

I have tried to (and can) boot my machine to LINUX RESCUE using the 
first CD. The next step, I presume, is that I should follow your 
instructions below to move Grub on the second disk to the root directory 
of the Linux partition on that second drive. Then I must need to 
reconfigure Grub (and or Linux) somehow to tell them that Linux is on 
HD1 and in what partitions.

What I am not sure about is:

  a. What is the name of Linux drive likely to be in this new
configuration?  /dev/sda  or /dev/sdb?

     As I said above, the new drive 0 with XP on it has one primary NTFS 
partition and an extended partition with 2 volumes on it.

  b. What is the best way to find out which partition on the Linux drive 
(the second drive) is the swap partition and which is the Linux 
partition? Will fdisk /dev/shX show me this?

  c. Once I know this, I should be able to use the,

        grub-install /sdXY

command to move Grub to the root partition.

  d. Then, what else do I need to do to reconfigure Grub and/or Linux so 
that they know that Linux is now on HD1 instead of HD0? I have no clue 
about this.

Having done all of this, I would shut down my machine, remove the Linux 
CD#1 from my CD drive, and my reboot my machine to Boot-It. The Linux 
and swap partitions should then show up in Boot-it. If they do, then I 
know how to add Linux to the boot items.

Boot-it's instructions for installing Linux on the boot menu are in
items #1 and #2 here

   (http://www.terabyteunlimited.com/kb/category.php?id=20).

Thanks for any help.

John Wirt


- - - - -
J. Refugio Rodriguez wrote:
> 
> --- Grant Allan <grant at forum8.co.nz> wrote:
> 
> 
>>>On Thu, October 20, 2005 12:53 pm, Grant Allan
>>
>>said:
>>
>>>>hi,
>>>>
>>>>just installed FC4 into empty partition on same
>>
>>drive as WindowsXP
>>
>>>>(disk1).  i'm aiming for dual-boot using NTLDR
>>
>>menu.
>>
>>>>i think i messed something up, cos now during
>>
>>reboot i get told that
>>
>>>>NTLDR
>>>>can't be found.  strange thing is, when i boot
>>
>>from SystemRecoveryCD,
>>
>>>>and
>>>>then choose the option to boot from "disk1",
>>
>>WindowsXP boots fine (and
>>
>>>>so
>>>>obviously NTLDR is there after all).
>>>
>>>No, the bootstrap isn't there but the partition is
>>
>>still active. It may
>>
>>>have been overwritten or corrupted by the FC4
>>
>>install. I think the command
>>
>>>may still be fdisk /mbr which will re-write the
>>
>>NTLDR bootstrap.
>>
>>>>i'm confused - does this mean that my BIOS is not
>>
>>looking at my disk1
>>
>>>>during the boot sequence any more?  (hope not,
>>
>>cos my BIOS menu is in
>>
>>>>japanese, and i can't read it.)  or maybe my MBR
>>
>>has gotten minced?
>>
>>>BIOS has to see the drive else booting wouldn't
>>
>>work at all regardless of
>>
>>>how you tried. The OS depends on the BIOS to tell
>>
>>it where to find the
>>
>>>hardware, but doesn't control what's on the
>>
>>hardware.
>>
>>new info, same but different: i have re-installed
>>linux.  this time during
>>the installation, i asked it to use GRUB, and put it
>>at the front of
>>/dev/hda1.  
> 
> now i have the following behaviour:
> 
>>  reboot (CD & floppy drive empty) - message that
>>NTLDR is missing
>>  reboot with SystemRescueCD, then typing "disk1" to
>>boot from the active
>>partition of my first hard drive - GRUB starts OK
>>  reboot with WinXP-generated boot floppy -
>>windowsXP starts OK
>>
> 
> 
> Your initial aim was to install Fedora under WinXX's
> boot manager; at this point you appear to have
> overwritten your original MBR and thus you can not
> boot into WinXX.
> 
> Boot with your original WinXX media and select R to
> repair you WinXX installation.  After you type your
> Admin password, etc.,etc., and you are at the command
> prompt, type:
> 
> HELP
> 
> you will be shown a range of commands.  Of those
> commands select FIXMBR to return your MBR to boot
> WinXX, as follows:
> 
> FIXMBR 1
> 
> since you only have one hard disk.  That should bring
> you back to the original state before the Fedora
> installation.  Now type:
> 
> BOOTCFG /SCAN
> 
> and you will get a result of your WinXX installations
> (for informational purposses you may want to write
> down the info).  Proceed by typing:
> 
> FIXBOOT C:
> 
> since c: is your WinXX drive.
> 
> That should fix your MBR and  WinXX boot manager to
> initial specs.
> 
> I hope that you noted that if you need help with any
> of  the commands, you can just enter the name of the
> command followed by the switch /?
> 
> 
> 
> To (re)install Grub on the Fedora partition, boot with
> your Linux rescue media; if you do not have that, boot
> with your first Linux installation CD media.  At the
> command prompt type:
> 
> Linux rescue
> 
> press enter.  Make your selections when the program
> requests you to do so, i.e., language, keyboard, etc.
> 
> You will see a dialog that begins with: The rescue
> environment will now attempt to find your Linux
> installation and mount it under /mnt/sysimage. [...]
> 
> Press the "continue" button.
> 
> The program will find your Linux installation and will
> let you know so (if everything goes well).
> 
> At the command prompt in the shell type:
> 
> chroot /mnt/sysimage
> 
> you need to do that before you can use the Grub. Type:
> 
> fdisk /dev/hda
> 
> at the prompt type:
> 
> p
> 
> to print the partition table as seen by Linux; write
> down in what partition your Linux resides (most likely
> it will be /dev/hda2).  Now, --very important! Type:
> 
> q
> 
> to exit from fdisk partitioning utility.
> 
> Having noted the partition number of your Linux, type:
> 
> grub-install /dev/hdaX
> 
> where X represents (replace it by your actual
> partition number) the partition number of your Linux.
> 
> The grub boot manager should be installed where your
> Linux partition resides SINCE you want to boot from
> the WinXX boot manager.
> 
> Again, do as above and we will add the Linux partition
> to WinXX boot manager when you are ready.
> 
> Regards.
> 
> Jose Refugio Rodriguez
> http://www.metztli-it.com
> 
> P.S. Your BIOS is NOT damaged; the Penguin is nice ;)
> 
> 
>>_______________________________________________
>>Redhat-install-list mailing list
>>Redhat-install-list at redhat.com
>>
> 
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> 
>>To Unsubscribe Go To ABOVE URL or send a message to:
>>redhat-install-list-request at redhat.com
>>Subject: unsubscribe
>>
> 
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
> 
> 




More information about the Redhat-install-list mailing list