LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Unable to installl Windows XP on a previously installed Linux machine (https://www.linuxquestions.org/questions/linux-hardware-18/unable-to-installl-windows-xp-on-a-previously-installed-linux-machine-4175460219/)

navneethr 04-30-2013 08:40 PM

Unable to installl Windows XP on a previously installed Linux machine
 
I have a machine with 2 GB RAM, 250 GB hard disk on which I had successfully installed Windows XP and Fedora in dual mode. Somewhere along the way I reformatted the entire drive and loaded only linux.
Now I need Windows XP again and so I used Gparted and deletd all the current linux partitions, created an ntfs 20GB partition and tried to install Windows but surprisingly I am getting an error during the windows installation.
It goes through the formatting process well, gathers information and Prepares installation successfully.
However when it is in Windows Installing mode it aborts during the installing devices process.

The message given is :
A problem has been detected and Windows has been shut down to prevent damage to your system.
IRQL_NOT_LESS_OR_EQUAL
It restarted the machine but again it aborts at this same point with the same message.
It also states that one must disable BIOS memory cachine and shadowing.
I have noted that the harddrive is set at
ATA/IDE Legacy ( there is another option Native --dont know if I should be using that).

Please HELP me resolve this issue soon. I will very much appreciate it.

smedley76 04-30-2013 09:31 PM

Im not sure about the errors you are experiencing, however to dualboot, windows does need to be installed first, then install fedora, another thing i like to do is if for some odd reason i need wondows ill just install virtualbox and install windows that way as opposed to dualbooting. (if its not broken, dont fix it).

guyonearth 04-30-2013 10:14 PM

The first thing I would do is reset the BIOS, and use setup defaults for everything. This error can be caused by a lot of things, but it's possible a setting got changed that you don't remember. The fact that Linux was on the hard drive should be irrelevant.

navneethr 04-30-2013 10:48 PM

Thanks for your prompt replies.
Right now I do not have any OS on my machine.
smedley you suggest that I first install linux and then Vbox and then windows on it ...Right? I will give that a try later surely.
I am comfortable with dual booting since I have done it in the past.
But for some reason after installing only Linux and deleting them I have run into this problem.
I have read somewhere that I should use the dd command to reset the MBR. But how do I get to the command prompt now that there is no OS? Can one do it through gparted?

Also FYI I did reset the defaul options in BIOS and tried again but same problem. Where does one see the memory cache and shadowing in the bios?

Please help me out. I am eagerly wanting to having this issue resolved soon.

smedley76 04-30-2013 11:06 PM

dd can be used to zero the drive (takes a very long time), it can be done from a live cd but i would suggest trying a few things before going that route. the command would be
Code:

su -c "dd if=/dev/zero of=/dev/sda bs=1M count=1"
substitute sda as needed of course.

guyonearth 04-30-2013 11:28 PM

Quote:

Originally Posted by navneethr (Post 4942321)
Thanks for your prompt replies.
Right now I do not have any OS on my machine.
smedley you suggest that I first install linux and then Vbox and then windows on it ...Right? I will give that a try later surely.
I am comfortable with dual booting since I have done it in the past.
But for some reason after installing only Linux and deleting them I have run into this problem.
I have read somewhere that I should use the dd command to reset the MBR. But how do I get to the command prompt now that there is no OS? Can one do it through gparted?

Also FYI I did reset the defaul options in BIOS and tried again but same problem. Where does one see the memory cache and shadowing in the bios?

Please help me out. I am eagerly wanting to having this issue resolved soon.

Do not install Linux first and Windows second if you are doing a multi-boot system. It is much easier to install Windows first, then install Linux and let grub handle multi-booting. Otherwise Windows will overwrite the MBR and you won't be able to boot Linux.

EDDY1 05-01-2013 12:53 AM

Winsxp can't read linux MBR if you have gparted you can reformat drive not the partitioning but set drive to msdos which will clear all entries to MBR allowing xp to write to it.

guyonearth 05-01-2013 09:53 AM

Quote:

Originally Posted by EDDY1 (Post 4942370)
Winsxp can't read linux MBR if you have gparted you can reformat drive not the partitioning but set drive to msdos which will clear all entries to MBR allowing xp to write to it.

Not true. Windows doesn't have to "read" the mbr. The presence of an mbr has nothing to do with the disk being visible to Windows. The fact that the disk was formatted by Linux or had Linux installed would have no effect on whether you were able to install to it or not. Windows can overwrite any filesystem.

EDDY1 05-01-2013 10:26 AM

Quote:

Originally Posted by guyonearth (Post 4942666)
Not true. Windows doesn't have to "read" the mbr. The presence of an mbr has nothing to do with the disk being visible to Windows. The fact that the disk was formatted by Linux or had Linux installed would have no effect on whether you were able to install to it or not. Windows can overwrite any filesystem.

Maybe not but a lot of paeople experience this problem after installing linux & since OP has deleted linux partition might as well refomat drive which will clear MBR & I guarantee that wins xp will be able to write to it.

SLW210 05-01-2013 11:01 AM

Try the ULTIMATE BOOT CDand use DBAN (Darek's Nuke And Boot) to wipe the drive clean (other wipers are also available).

John VV 05-01-2013 12:39 PM

seeing as XP is in fact starting the install
It can read the drive!!!
the mbr or non MS partition formats do not come into play here

this is a BIOS issue

you should be able to get into the bios by hitting "F2" or "F8"
-- keep tapping the "f2" button during the boot
you should get into the bios settings

there will be a onscreen option to "reset " it to factory settings

jefro 05-01-2013 03:32 PM

Could it be that you need to slipstream in some service packs to get this working?


Guess you could borrow a different xp cd to test if cd is bad. Better to try a windows 7 dvd to see if it will start to boot.

Try memtest and maybe hard drive diags.


There was a bug in linux a very long time ago where the partiton numbers got off. I doubt that is the case here.

johnsfine 05-01-2013 04:13 PM

Do you have any Linux liveCD?

You might need to use dd from a Linux liveCD to trash the MBR, so the Windows installer sees no MBR (as if the disk were brand new) and automatically creates an MBR for you.

Quote:

Originally Posted by navneethr (Post 4942269)
created an ntfs 20GB partition and tried to install Windows

Just as I would never use a Windows partitioning tool to create a partition for a Linux install, I would never use a Linux partitioning tool to create a partition for a Windows install. There is too much chance to get it wrong and no real benefit to trying it at all.

Windows and Linux installer are most typically used creating the partitions they want from unpartitioned space. That is simpler than getting them to use an existing partition.

Quote:

It goes through the formatting process well, gathers information and Prepares installation successfully.
However when it is in Windows Installing mode it aborts during the installing devices process.
I'm not sure I understand where you are saying it fails, but it sounds like it fails somewhere I would not expect for an initial MBR problem or for a BIOS problem. So I might not have a good guess. But lots of people have reported implausible symptoms on XP install after removing Linux and many have reported those symptoms fixed by trashing the MBR before installing Windows.

Quote:

It also states that one must disable BIOS memory cachine and shadowing.
I haven't seen that message in a long time, and it was wrong when I last saw it. It has also been a long time since I saw a BIOS that had the option to turn that stuff off. Does your BIOS have such an option?

Quote:

I have noted that the harddrive is set at
ATA/IDE Legacy ( there is another option Native --dont know if I should be using that).
For an ordinary XP install CD, that must be left in Legacy mode during the XP install. If you have an OEM CD for Windows and it originally came with that same PC, it might be correct to switch to Native mode during the install.

After you install XP, if it or you is able to find/download the right drivers for your motherboard, then after installing those drivers, you might improve performance by switching to native mode.

smedley76 05-01-2013 06:14 PM

have you tried creating a new partition table? is current one a gpt?

guyonearth 05-01-2013 07:56 PM

I will reiterate that his error has nothing to do with either the MBR or Linux having been installed on the drive. Two seconds of research would show you guys that this is a hardware error that has been reported many times.

1. Clear the BIOS.

2. Reset to defaults.

3. Turn off PNP BIOS features (let OS decide).

4. Turn off unused hardware features (parallel port, serial port, floppy, etc.)

5. Try again.

smedley76 05-01-2013 08:01 PM

Its not very specific it has to do with either hardware or a faulty driver, considering he cant install windows i think we can rule out a driver. I dont think its the mbr i think it might just be an efi issue

guyonearth 05-01-2013 09:30 PM

Hardly. A lot of drivers have to be loaded before the Windows installer can get started. He doesn't have an EFI computer.

johnsfine 05-02-2013 08:38 AM

Quote:

Originally Posted by guyonearth (Post 4943030)
1. Clear the BIOS.

2. Reset to defaults.

probably a good idea, but then you need to switch the hard drive BIOS setting back to legacy. The default is likely to be "native", and native is unlikely to work during an install of XP.

EDDY1 05-02-2013 11:56 AM

Is this a sata machine & is it requesting the sata drivers?
Windows xp doesn't have sata drivers they have to be manually loaded during install.

guyonearth 05-02-2013 05:03 PM

Quote:

Originally Posted by johnsfine (Post 4943355)
probably a good idea, but then you need to switch the hard drive BIOS setting back to legacy. The default is likely to be "native", and native is unlikely to work during an install of XP.

I doubt the default is native, if the computer has IDE ports. Either way, that wouldn't cause his problem.

haertig 05-02-2013 05:42 PM

Quote:

Originally Posted by guyonearth (Post 4943030)
Two seconds of research would show you guys that this is a hardware error that has been reported many times.

If that is the case, they why does the OP report this:

Quote:

It goes through the formatting process well...
If Windows is successfully formatting its partition, then this means it is seeing the disk, seeing the partition table, and going about its merry way and formatting things. So what hardware error are we supposedly dealing with here? The drive seems fine by all reports. There could be some BIOS setting that is screwing things up I suppose, so the first step I'd try is resetting BIOS to its defaults. Then try the installation again and see what is reported.

It shouldn't be necessary, but it wouldn't hurt, to zero out all of track 0 after booting with a Linux Live CD, before attempting any Windows installation (as the first OS installed on a disk). MAKE SURE /dev/sda is the correct drive designation before executing the following: "dd if=/dev/zero of=/dev/sda bs=512 count=63" Let me repeat that warning: "Make sure the of= specification is correct before hitting your enter key!"

navneethr 05-05-2013 05:25 AM

Hello,
Thanks for your replies.
I tried resetting the BIOS several times, I tried changing the harddisk settings to NATIVE also but that did not help.

I used gparted tool to wipe off all the partitions and create a new MS-DOS file system onto which I created one partition for Window 20GB formatted and another extended partition in which I have an ext4 partition.

But all this did not help. Window XP installation fails at the same point while copying devices to the system with the same error.
Reading all your suggestions I think I will need to try the following.

1) TRY with another windows XP installing disc. I have YET to get another one.

2) Use the live CD to trash the MBR after getting to a prompt

3) use virtual box (But here too the Windows XP may fail I think not sure) but I need to try.

I have been busy with some other issues and will try the above and get back to all of you with my findings.

Thanks very much for your suggestions. They have given me a better perspective and I hope to have XP installed soon.

guyonearth 05-05-2013 10:12 AM

If it always fails while copying at the same point, this could be a bad CD, unlikely but not impossible. It could also be a memory issue, hitting the same area in buffer each time. Have you done a memcheck? If you install in Virtualbox, the virtual hardware is totally different, so if it does exactly the same thing, it would have to be an issue with your CD. Have you tried copying the CD?

EDDY1 05-05-2013 02:45 PM

Usually winsxp has a dialog box for the failed object if it's already installing & has given the estimated time of completion. I would say that it's not hardware related but a scratched disk.


All times are GMT -5. The time now is 07:23 AM.