Bill said:
I have two fat32 partitions and a ext3 partition 0x83 anyway. I had
that. I formatted my fat32 the bootable one and reinstalled xp x64. Well an
ext partition was created I have one fat32 partition with ntldr ntdetect.com
and boot.ini. And another partition is the main one with everything else on
it. What the heck. And there's 7-8 MB unallocated space between all these
new partitions. Can I get ntldr and ntdect.com and boot.ini all onto one
fat32 partition? The pagefile.sys in one the main system drive. Xp is
calling the other fat32 partition the boot partition. I want boot and system
on one partition. Whew.
Bill
I've run into this with Win2K.
I had a setup with Win2K on it, and decided to install a second copy.
What happened was, Win2K created an Extended Partition and put a
Logical Partition inside it (which should not be boot-able). The
second copy of Windows, relies on the first copy of Windows for
the boot.ini and other associated boot files. So the first copy
of Windows "runs the show", and when in the boot menu, if
you select the second copy, the second copy finishes booting.
In such a setup, you dare not delete the first copy of Windows!
And this means, the second copy doesn't need a complete set of files.
It can be missing boot files, because it depends on the first copy
to boot. As you say "What the heck".
I'm guessing your setup looks roughly like this (for anyone
else playing along at home). In my diagram here, I just assumed
the first WinXP was in the first partition. That's why I assigned
it the Active flag. If the Linux is controlling the booting
right now, and chain loading WinXP (first copy), I suppose it's
possible for the second copy to come up. I'm surprised the
second install doesn't reload the MBR with Windows boot code
(blowing away GRUB).
+-----+----------+---------+------------------+------------------------------------+
| MBR | FAT32 | FAT32 | EXT3 0x83 | Extended envelope (primary entry) |
| | Primary | Primary | (Linux) Primary +-------------------------+-- ... ---+
| | (Active) | | | Logical | |
| | | | | (Second copy of WinXP) | |
+-----+----------+---------+------------------+-------------------------+----------+
What you do next, really depends on what you were
trying to do in the first place.
I would:
0) Back up this hard drive before it is too late!
then
1) Boot my Linux LiveCD.
2) Use GParted.
Delete Extended envelope. Now back to three partitions.
New WinXP is effectively erased.
Create new FAT32 or NTFS primary, located at the end of the
disk, in place of the Extended. That should occupy the fourth
primary partition slot.
3) sudo fdisk /dev/sd...
turn off active on first partition.
make fourth partition active.
change partition type field of first partition (original WinXP) to 0x00
(first partition is now hidden.)
You must be very careful when doing this - the first partition "looks empty",
And lots of tools will jump at the chance to overwrite all the
fields in that first entry.
4) Boot installer CD. Install WinXP (second copy).
Specify location for installation (fourth partition).
Since the installer cannot see the first copy of WinXP, it
won't try any tricks. The MBR gets boot code. GRUB is disabled.
Linux is an orphan.
5) After WinXP install finished, go back to using the
Linux FDISK from your LiveCD (Linux onboard won't run),
change first partition type field from 0x00 to
0x0C or 0x07 or whatever it was in the first place.
This procedure makes the WinXP in the fourth partition,
a complete installation. The active (boot flag) is set.
There is no boot menu, because the new OS doesn't know
about the old OS. The old OS now looks like a data partition
in a way. The pagefile can be seen, but that's not a problem.
Since the OS in the fourth partition was booted, before the
first partition was turned back on, the presence of a pagefile.sys
won't cause a problem.
*******
And in case you say something like "I can't follow this",
you're the individual who thought it would be cool to
triple boot.
*******
I don't do this stuff myself. It's "one OS, one hard drive"
here in my shack. All OSes are independent of one another.
I unplug drives I don't want. No other drive is affected
when I unplug a drive. All drives are perfectly fine if
booted on the PC all by themselves.
I don't have a problem *simulating* triple boot setups
inside a VM, because "nobody gets hurt" if a VM is trashed.
I've had enough "accidents" here with real data and setups,
to not want to risk it with my primary setup.
To give a recent example of a bad outcome, I was multiplexing
OSes on my test machine. Came time to install Ubuntu,
was in a rush to get the show on the road. The prompt said
"will replace your existing Ubuntu install". Fine I said to
myself, it'll overwrite the existing Linux slash partition.
Pushed the button, and it erased the entire disk! Including
my large partition with the backup copies of all the other
OSes being multiplexed in, as well as an original copy
of my laptop backup. Grrr. You can never be too careful,
when a disk has stuff on it you should not be risking...
Ubuntu is now on my "treat it like Debian" list. No more
OS multiplexing on that disk, the OS is now fixed at Win7.
That won't bring back the lost backups. I'd have run TestDisk,
but the important stuff was already overwritten.
*******
I hope you make backups of your setups, before doing
dangerous stuff. If you'd made a backup, you could
just have restored and nobody would need to know what
happened
Paul