I get an error while installing Windows XP "could not find place for swap file"

0

When installing Windows XP from MS-DOS (HBCD-HirenBootCD) i get the following message:

"An internal Setup error has occoured. Could not find place for swap file."

I can't boot from CD/USB so i've copied the cd to the HDD (from HBCD)

Remus Rigo

Posted 2016-09-28T13:59:34.213

Reputation: 2 623

How big is your HD and how is it partitioned. Is it formatted? And is d: a second harddisk, or a second partition? – None – 2016-09-28T14:14:31.840

Answers

1

I guess you are translating the message and what the message means is Could not find space for swap file.

It's some time since I installed XP, but I think it tries initially to create a swap file of a size related to your installed memory (eg twice the RAM size). The message, if I'm interpreting it correctly, means that you don't have enough free space on your install disc.

For example, if you have the maximum 4GB of RAM (for a 32-bit OS), you will need a file this size for hibernation (hiberfil.sys), plus an 8GB file for swap (pagefile.sys), meaning that you need at least 12GB more than what the installed files occupy, so I would suggest a target disc of 32GB or more.

If you are installing in a VM, it is easy to configure a larger virtual drive - you could also make it expandable. You can also easily reduce the VM's memory to reduce the swap/hibernation overhead.

If you are installing to a hard disc, then you need a bigger disc, or you have to remove or disable RAM modules.

Once the system has been installed and booted, you can change the swap file location and size (though not the hibernation file).

By the way, the rule of thumb that swap size is double RAM size is a very poor one: the swap space needed depends on the number and size of the programs you run, and will normally need to increase if the RAM size is reduced.

AFH

Posted 2016-09-28T13:59:34.213

Reputation: 15 470

I'm installing on an old laptop, the available space is only 19GB, and the memory is 2GB RAM – Remus Rigo – 2016-09-28T17:36:13.597

i'm not installing a VM, but in that case it would be much easier – Remus Rigo – 2016-09-28T18:23:28.233

You might just squeeze it in if you use Hiren to format the drive as NTFS compressed: make sure you don't reformat during installation. – AFH – 2016-09-28T22:05:52.347

0

this worked in the end:

  • format drive c: (fat32)
  • boot under freeDOS
  • run setup (/i386/winnt.exe)
  • when the setup ask, convert the drive to ntfs

PS: HBCD creates drives on that drive which corrupts the installation (also creates big swap files)

Remus Rigo

Posted 2016-09-28T13:59:34.213

Reputation: 2 623