Install Winxp after openSUSE

How can i install windows XP professional keeping my current OS fedora and Suse perfect. Suse has the current boorloader. I can edit menu.lst, but how to load bootloader as XP will remove it.

(Sorry for the wrong title. It was a misteke noticed after post.)

Edit: Fixed the title for you.

The more important question is, where on the disk(s) are you going to install XP? Post back here the output of fdisk -lu, and tell us how you plan to install XP.

Even if there are two distros already installed as long as it is not occupying the space of the first partition it is resolvable which xp will call it his drive c.

To add a bit in ref to above . . . XP can be installed on 2 partitions. The “system volume” which controls the boot can be very small, <10MB even. The “boot volume” which is where the OS actually is (yes, the MS names seem backwards) can be on any other partition on any disk. Theoretically, the system volume only needs to be on one of the boot disk’s primary partitions, excluding the extended primary (i.e., on 1 of the 3 non-extended primaries). However, on some machines it must be on the 1st primary.

My computer currently has Fedora, XP, SUSE (installed in order). Now i want to reinstall xp. Current menu.lst is:
default 0
timeout 5
gfxmenu (hd0,2)/boot/message
title openSUSE 11
root (hd0,2)
kernel /boot/vmlinuz-2.6.25.5-1.1-pae root=/dev/disk/by-id/scsi-SATA_ST3160815AS_6RADNZSN-part3 resume=/dev/sda5 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.5-1.1-pae
title Fedora 9
root (hd0,0)
kernel /boot/vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=3a836c59-f4b0-450a-8ae3-5bc94ad5b314 rhgb quiet
initrd /boot/initrd-2.6.25-14.fc9.i686.img
configfile /boot/grub/menu.lst
title Windows
rootnoverify (hd0,2)
chainloader (hd0,1)+1
I want to install XP on the same drive where it’s now. But that’ll change the boot-loader. How to write suse’s bootloader to default?

According to your menu.lst (assuming it accurately represents the partition table, suggest next time that you include the output of fdisk -l) Fedora is on the first primary, XP was on the second primary, and openSUSE is on the third primary. When you reinstall XP, you intend to put in back on that second partition; XP will write a new boot sector to that partition and write its boot code to the MBR.

To re-install grub to the MBR can be done from a LiveCD or the openSUSE DVD. If the LiveCD, boot from it, open a terminal window, switch to root. If the DVD, boot from it into Rescue Mode, at the prompt login as root. Then do:

grub
root (hd0,2)
setup (hd0) (hd0,2
quit

The setup command should tell you that is found the grub files and that it successfull installed grub to (hd0), which is the MBR of the first disk.

The DVD also has a Repair System option which uses the YaST Boot Loader gui module for reinstalling the boot loader; you can try using that instead. Occasionally I have found it to be a bit buggy, so, since all it does is feed a command to the grub shell very similar to the code above, my preference is to just do it directly in the shell myself so I can be sure of the results. Your choice.

Thanks. U’ve perfectly understood my problem. I’ll try that. Thank you vry much.

Thanks. U’ve perfectly understood my problem. I’ll try that. Thank you vry much.

In trouble with the issue, solution not working. It’s saying stage1 not found. I’ve tried to install XP in sda10 (i think that was a mistake). And …

fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2611    20972826    7  HPFS/NTFS
/dev/sda2   *        2612        5222    20972857+   b  W95 FAT32
/dev/sda3            5223        7833    20972857+  83  Linux
/dev/sda4            7834       19457    93369780    5  Extended
/dev/sda5            7834        7898      522081   82  Linux swap / Solaris
/dev/sda6            7899       10509    20972826    7  HPFS/NTFS
/dev/sda7           10510       13120    20972826    e  W95 FAT16 (LBA)
/dev/sda8           13121       15731    20972826    e  W95 FAT16 (LBA)
/dev/sda9           15732       17643    15358108+   e  W95 FAT16 (LBA)
/dev/sda10          17644       19456    14562891    7  HPFS/NTFS

Knoppix telling me that:
sda1 has fedora
sda2 has personal files
sda3 has suse
sda6 has personal files
sda10 has incomplete_xp (XP is not installing, after copying files and restart “disk-error”; but presently main issue is to fix the bootloader. Once suse can be booted i can setup menu.lst:’()

I’m also confused a little. fdisk showing sda1 filesystem is NTFS, but it contains my fedora installation. (!_!)
Need Quick Reply, Thanks in advance.

You may need this:

df -hla
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             3.4M   32K  3.4M   1% /
/ramdisk              352M   56M  296M  16% /ramdisk
/UNIONFS              352M   56M  296M  16% /UNIONFS
/dev/hdd              697M  697M     0 100% /cdrom
/dev/cloop            2.0G  2.0G     0 100% /KNOPPIX
/proc/bus/usb            0     0     0   -  /proc/bus/usb
/dev/pts                 0     0     0   -  /dev/pts
/dev/sda3              20G  8.2G   11G  44% /media/sda3
/dev/sda1              20G  7.3G   12G  39% /media/sda1
/dev/sda6              21G  8.1G   12G  41% /media/sda6
/dev/sda2              20G   15G  5.4G  74% /media/sda2
/dev/sda10             14G  583M   14G   5% /media/sda10

Just saw your last post . . .

First, you are going to have trouble installing XP on a logical partition. In fact, AFAIK, the XP setup program won’t do it - it wants to be on a primary partition (excluding the extended primary). I haven’t ever tried, but I also suspect it may not even be possible to do, even imaging from an existing installation. IIRC what is possible is to put the “system volume” which is the boot loader (ntldr) and associated files on a primary, and then the “boot volume” or Windows OS itself on a logical. The “system volume” can be very small; the files don’t add up to more than a few MB.

Second, regarding the sda1 file system and what is installed on that partition: That is strange. In the partition table in the 5th byte there is a “system ID”. When a file system is formatted on a partition, that field is updated. NTFS will place a “07” there; ext3 will put an “83” there. Windows uses that value to determine which file system drivers to load when it boots. I don’t know if linux uses it at all, as the important data re the file system on the partition is stored in a data block appended to the boot sector. Consequently, it being 07 rather than 83 may have no real effect on your system (other than to confuse you a bit). If Fedora is working fine, it would seem not.

If you want to look at the physical table itself, you can do it thus:

dd if=/dev/sda of=sdambr bs=512 count=1
xxd sdambr

It was not possible for me to continue 2 days with live cd. So i installed Mandriva. Now points here: before that Fedora was malfunctioning bcoz all the contents inside root of fedora were gone. Another thing i’ve noticed, wherever i try to install XP, the boot.ini, ntdetect, ntldr files are always placed in sda2. I’m feeling that there may be some problem with initial partitioning (mainly sda2). Now presently in my system with Suse and Mandriva,

localhost:~ # dd if=/dev/sda of=sdambr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0320861 s, 16.0 kB/s
localhost:~ # xxd sdambr
0000000: eb48 9000 0000 4752 5542 501f fcbe 1b7c .H…GRUBP…|
0000010: bf1b 0650 57b9 e501 f3a4 cbbd be07 b104 …PW…
0000020: 386e 007c 0975 1383 c510 e2f4 cd18 8bf5 8n.|.u…
0000030: 83c6 1049 7419 382c 74f6 a0b5 07b4 0302 …It.8,t…
0000040: ff00 0020 0100 0000 0002 fa90 90f6 c280 … …
0000050: 7502 b280 ea59 7c00 0031 c08e d88e d0bc u…Y|…1…
0000060: 0020 fba0 407c 3cff 7402 88c2 52be 7f7d . …@|<.t…R…}
0000070: e834 01f6 c280 7454 b441 bbaa 55cd 135a .4…tT.A…U…Z
0000080: 5272 4981 fb55 aa75 43a0 417c 84c0 7505 RrI…U.uC.A|…u.
0000090: 83e1 0174 3766 8b4c 10be 057c c644 ff01 …t7f.L…|.D…
00000a0: 668b 1e44 7cc7 0410 00c7 4402 0100 6689 f…D|…D…f.
00000b0: 5c08 c744 0600 7066 31c0 8944 0466 8944 ..D…pf1…D.f.D
00000c0: 0cb4 42cd 1372 05bb 0070 eb7d b408 cd13 …B…r…p.}…
00000d0: 730a f6c2 800f 84ea 00e9 8d00 be05 7cc6 s…|.
00000e0: 44ff 0066 31c0 88f0 4066 8944 0431 d288 D…f1…@f.D.1
00000f0: cac1 e202 88e8 88f4 4089 4408 31c0 88d0 …@.D.1…
0000100: c0e8 0266 8904 66a1 447c 6631 d266 f734 …f…f.D|f1.f.4
0000110: 8854 0a66 31d2 66f7 7404 8854 0b89 440c .T.f1.f.t…T…D.
0000120: 3b44 087d 3c8a 540d c0e2 068a 4c0a fec1 ;D.}<.T…L…
0000130: 08d1 8a6c 0c5a 8a74 0bbb 0070 8ec3 31db …l.Z.t…p…1.
0000140: b801 02cd 1372 2a8c c38e 0648 7c60 1eb9 …r*…H|`…
0000150: 0001 8edb 31f6 31ff fcf3 a51f 61ff 2642 …1.1…a.&B
0000160: 7cbe 857d e840 00eb 0ebe 8a7d e838 00eb |…}.@…}.8…
0000170: 06be 947d e830 00be 997d e82a 00eb fe47 …}.0…}.*…G
0000180: 5255 4220 0047 656f 6d00 4861 7264 2044 RUB .Geom.Hard D
0000190: 6973 6b00 5265 6164 0020 4572 726f 7200 isk.Read. Error.
00001a0: bb01 00b4 0ecd 10ac 3c00 75f4 c300 0000 …<.u…
00001b0: 0000 0000 0000 0000 5ebc 0d00 0000 0001 …^…
00001c0: 0100 07fe ffff 3f00 0000 340a 8002 80fe …?..4…
00001d0: ffff 0bfe ffff 730a 8002 730a 8002 00fe …s…s…
00001e0: ffff 83fe ffff e614 0005 730a 8002 00fe …s…
00001f0: ffff 05fe ffff 591f 8007 a72c 210b 55aa …Y…,!.U.

and

localhost:~ # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000dbc5e

Device Boot Start End Blocks Id System
/dev/sda1 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 * 2612 5222 20972857+ b W95 FAT32
/dev/sda3 5223 7833 20972857+ 83 Linux
/dev/sda4 7834 19456 93361747+ 5 Extended
/dev/sda5 7834 7898 522081 82 Linux swap / Solaris
/dev/sda6 7899 10509 20972826 7 HPFS/NTFS
/dev/sda7 10510 13120 20972826 e W95 FAT16 (LBA)
/dev/sda8 13121 15731 20972826 e W95 FAT16 (LBA)
/dev/sda9 15732 17643 15358108+ e W95 FAT16 (LBA)
/dev/sda10 17644 19456 14562891 83 Linux

where sda10 contain Mandriva.

Per my post above, XP is trying to create a “system volume” (MS’s term for the volume where the boot loader files are put) on one of the primary partitions, and it is going to choose whichever is marked “active” (note the asterisk in fdisk). It doesn’t care (or probably even check) if you are using an alternate boot loader, as you currently have (i.e., grub in the MBR). It presumes to take control of the boot, and its boot code will not work unless there is a system volume on a primary that is marked active.

Something to consider: Perhaps you can backup whatever you have on sda1 or sda2 and then give that to XP to use for a system volume, and then restore the files from the backup. I don’t remember whether XP is going to force reformatting of the volume, but even if it appears it will not, I would not trust that. Better to let it reformat it and then copy your files back after the XP installation is complete. Also, for the “boot volume” where you install \windows\system32 (the OS itself), it would be better to create the partition first if you can, and then have XP format it for NTFS. Otherwise XP is going to be modifying the partition table and the extended partition records (the chain that goes down the logicals) along with linux, and mixing the two can be dangerous.

Posted By mingus725 >
Per my post above, XP is trying to create a “system volume” (MS’s term for the volume where the boot loader files are put) on one of the primary partitions, and it is going to choose whichever is marked “active” (note the asterisk in fdisk). It doesn’t care (or probably even check) if you are using an alternate boot loader, as you currently have (i.

Now I’m planning to BackUp the data from sda2, ll try to install XP there, then rewrite mbr with LiveCD (and if that fails, i’ll write bootloader with other small linux distro installation). Can any danger arise??

If you plan to put all of XP (that is, both the system and boot volumes into one volume, the default Windows method) and the partition is already created and it is a clean (fresh) install, then usually everything is OK. If you plan to use sda2 only for the system volume and use a logical partition at the end of the disk for the boot volume, you must have an XP CD which includes Service Pack 1 in order for XP to see past 137GB. And of course, if your hardware is a few years old or newer, you probably will need to find/install additional drivers. If the drive is SATA, the original XP CD will not see it; you need to put the SATA driver on a floppy and use the F6 option during XP setup.

For the boot loader, you can go 2 ways. You can install grub to the MBR with a LiveCD or the DVD in Rescue mode. Or, if sda3 is where openSUSE is, install grub to the sda3 boot sector - you can do that right now before installing XP and it will not change anything (because grub is already in the MBR, bypassing the sda3 boot sector). If you do this, you will not need to reinstall grub to the MBR after installing XP; all you need to do is switch the active flag from sda2 (which XP will enable) to sda3, and the XP MBR will load grub from sda3.

Good luck.

After posting #14 I lost internet connection due to my ISP’s problem. Now after almost 10 days i’m back. In the meantime i’ve installed WinXP and Fedora10. WinXP is on sda2. Right now Suse11, WinXp, Fedora10 all three are running perfect. Thank you all. :slight_smile:

You’re welcome. Good job! :slight_smile: