Help - Search - Members - Calendar
Full Version: Xp And Linux
Linuxhelp > Support > Technical Support
i think i have brought this problem upon myself for not being thorough when installing linux. i have a copy of red hat 9 i purchased and after installing it (and the GRUB bootloader with default settings which i now fear is the problem) windows refused to load. It would get to the Windows XP splash screen then go black then the screen would flicker and it would reboot the system. GRUB worked a few times and going to the DOS entry would take me to the windows boot loader which i could choose windows from but it wouldnt load windows after that point. I popped in my windows XP install disk and went through the recovery console with the commands "fixmbr" and "fixboot" hoping that would solve my problem. After that it would not load GRUB at all and i was forced to boot into linux using my boot disk. In linux i toyed with GRUBs settings trying some tips i read from various places, none of which seemed to work. Then i put the linux install CDs in again and went to the boot loader install and went to the advanced settings on it and noticed that on a windows NT system you shouldnt install it to the MBR (the default, which did not make sense to me). So at this point basically my question is what are my options? ive already backed up the critical information on that hard drive and im prepared to reformat it but i would like to know if there are any other options first.
if you are able to boot in to your xp without problem and in to GNU/Linux with the bootdisk then i guess solution is quite simple...just boot in to GNU/Linux using the bootdisk..and do following..
1.copy a file called bootsect.lnx from the boot partition of ur linux system
to a formatted blank floppy.use following commands:-
dd if=/dev/hdb5 of=/bootsect.lnx bs=512 count=1
mount /mnt/floppy
cp /bootsect.lnx /mnt/floppy
umount /mnt/floppy
2.exit form the linux.and boot in to your windows the C drive of windows
there is a file called boot.ini.edit this file and put the following lines at
at the end of the file
save the file and reboot ur System.and enjoy a dual bual boot system
my problem is i cannot boot into windows at all
First...Installing Grub to the MBR doesn't usually cause any problems at all in WinNT type systems (WinNT, Win2K, Win2003). You can use Grub to load windows without any problem.

What is more likely is that you accidentially somehow messed up the Windows partition with the install.

How many physical hard drives do you have in the machine?

Boot to Linux and issue the following command in a terminal window as root:

fdisk -l

My results on one linux dual boot system looks like this:

fdisk -l

Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      2433  19543041    7  HPFS/NTFS

Disk /dev/hdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      2434  19551073+  42  SFS

Disk /dev/hdd: 10.2 GB, 10262568960 bytes
255 heads, 63 sectors/track, 1247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start       End    Blocks   Id  System
/dev/hdd1   *         1        13    104391   83  Linux
/dev/hdd2            14       144   1052257+  82  Linux swap
/dev/hdd3           145      1247   8859847+  83  Linux

This machine as 3 physical hard drives ... in most versions of GNU/Linux, IDE devices (hard drives, CDROMS, DVDROMS, IDE ZIP Drives, etc.) are known as follows:

Primary Master - /dev/hda
Primary Slave - /dev/hdb
Secondary Master - /dev/hdc
Secondary Slave - /dev/hdd

So in my example, my linux drive is /dev/hdd and it has 3 partitions ... and I have 2 WinXP drives (/dev/hda and /dev/hdb) that each have 1 partition ... the /dev/hdb partiton is SFS because it is setup in WinXP to as a compressed drive.

If you don't have some NTFS (or SFS) partitions showing on fdisk -l then I'm afriad you may have erased the XP partitions...
i have 2 physical drives and window was set up in a kind of odd configuration to begin with. it was installed on hdb1 (fat32) and booted off of hda1 (ntfs). linux is installed on hda3-5. i can still see my ntfs partition in linux.
Hemant seems that really you have messed up with your windows partition..So i a fresh install of both..but just have your partition plan very clear...
GRUB can very well boot Windows XP without i guess you can safely install grub on MBR but few things you sould make sure...
C drive of windows XP must be within first 1024 cylinders...i mean the size of c drive can be bigger but still it should occupy first 1024 cylinders(means some 6to 7 GB)...
well hopefully i will be getting a new computer anyway, still good to learn as much as i can though

i guess ill try just reinstalling everything (blah)
When you go to re-load, I think you have to load Windows first, then Linux.

I could be wrong, but thats what I thought anyway.
you can load linux on first if you like then Xp huh.gif

But it can get very mess biggrin.gif
You can do it either way ... but Windows then Linux is easier (with windows on hda and linux (and maybe some windows partitions) on hdb)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.