User:Illen/RAM Boot

From ReactOS Wiki
Revision as of 07:14, 19 March 2019 by Jedi-to-be (talk | contribs) (Load process stuck on the screen with the progress bar)
Jump to: navigation, search

RAM boot might prove useful when there is no other way to install ReactOS (mostly a case on modern notebooks that can boot only from the xHCI USB ports). Installation from RAM disk is possible since 0.4.11 release.

Prepare the RAM bootable USB drive

On Windows

You will need installfreeldr tool to write the FreeLDR boot sector, you can extract it from dev build images.

Execute installfreeldr as following:

installfreeldr X: FAT32

Where X is a drive letter assigned to your USB drive, if your drive is formatted using FAT16 file system, use the FAT option instead. As pointed out by the tool itself, you need to get freeldr.sys and freeldr.ini files there. You can extract freeldr.sys from BootCD/LiveCD image, and create the blank freeldr.ini file. You may have to mark the volume on your USB drive as active, you can do that with DISKPART tool, or some 3rd party partition manager.

On Linux

You can use syslinux to chainload FreeLoader, syslinux is included in most Linux distributions. Format USB drive using FAT32 file system and add the boot flag (GParted can do this for you).

Install syslinux on USB drive:

syslinux --install /dev/sdbx

Where x is a number assigned to your USB drive. Copy chain.c32 and its dependencies (libcom32.c32 and libutil.c32) onto USB drive, and create syslinux.cfg with following configuration:

DEFAULT chain.c32 file=freeldr.sys seg=0x0F80

Copy freeldr.sys (can be extracted from BootCD/LiveCD) onto USB drive, and create blank freeldr.ini on it.

Setting up FreeLoader

Now you will need to configure FreeLoader to load the ISO image to RAM and boot ReactOS from RAM disk. Here is the example of freeldr.ini configured to load the Setup or Live image:


TitleText=ReactOS Setup
TimeText=Seconds until highlighted choice will be started automatically:   

[Operating Systems]



You can just copy & paste the configuration from above to your newly created freeldr.ini file.

At this point, the USB drive is fully prepared to RAM boot your ReactOS ISO image, just copy it there (and remember to rename it as specified in freeldr.ini).

Known issues

The "Opening hive failed!" error

After the 1st stage setup, you will (most likely) get the "Opening hive failed!" error when attempting to load into 2nd stage setup. A workaround is to boot into LiveCD, check the drive and partition numbers using DISKPART, and update your freeldr.ini accordingly (in most cases, just need to change rdisk value to 0). An another "hit or miss" method is to press F8 in FreeLDR menu, choose "Custom Boot" option, then "ReactOS" option, and keep trying until you find the correct drive/partition numbers and successfully load ReactOS.

1st stage setup hangs at "Flushing cache"

It seems like older operating systems (Windows 2003 and older also are affected) are having issues with reboot command on some modern computers, they won't reboot but just hang after all the shutdown tasks are done. Just wait a moment to ensure that the data was properly saved and then manually reset your computer, unfortunately you have to do it each time you want to reboot your computer.

Load process stuck on the screen with the progress bar

1. Try to wait some more time. It may taaaake a whileeeeee....
2. Retry with a different USB-stick. The problem may be related to the local incompatibility of the computer's USB chipset and the internal controller of the USB flash drive.

External links