Difference between revisions of "User:Oldman/A layman's guide/Installing from a USB memory stick"

From ReactOS Wiki
Jump to: navigation, search
(Added more information.)
m (Minor text corrections.)
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
Because USB support is not as yet mature, the only reliable way to install ReactOS from a USB memory stick, is to use the RamDisk method.
 +
 
===RamDisk boot instructions (Windows).===
 
===RamDisk boot instructions (Windows).===
 
Make a bootable usb memory stick with Rufus (install version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10.exe or portable version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10p.exe) to install ReactOS from a RamDisk.
 
Make a bootable usb memory stick with Rufus (install version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10.exe or portable version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10p.exe) to install ReactOS from a RamDisk.
  
Put the stick in a usb port and start Rufus. You will see that Rufus has detected the stick, if it displays the label or the manufacturer's product name under '''device'''. If you have more than one device attached to your computer, then you will have to activate the drop down list under '''device''' and select the correct USB stick. Next activate the drop down list under '''Boot selection''' and select '''System linux 6.04'''. If everything is as in '''Rufus No2''' screenshot, then click on '''Start'''.
+
Put the stick in a usb port and start Rufus. You will see that Rufus has detected the stick, if it displays the label or the manufacturer's product name under '''device'''. If you have more than one device attached to your computer, then you will have to activate the drop down list under '''device''' and select the correct USB stick. Next, activate the drop down list under '''Boot selection''' and select '''System linux 6.04'''. If everything is as in '''Rufus No2''' screenshot, then click on '''Start'''.
  
 
If Rufus fails to download '''ldlinux.c32''' (you will get an error message), continue with Rufus and let it create the bootable USB stick, but you will need to download the package '''syslinux-6''' from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.zip or newer versions from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/
 
If Rufus fails to download '''ldlinux.c32''' (you will get an error message), continue with Rufus and let it create the bootable USB stick, but you will need to download the package '''syslinux-6''' from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.zip or newer versions from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/
Line 12: Line 14:
 
Copy '''ldlinux.c32''' and paste it into your bootable USB stick.
 
Copy '''ldlinux.c32''' and paste it into your bootable USB stick.
  
You now need to down load '''usbramboot''' package from: https://svn.reactos.org/packages/usbramboot.zip. Extract the files (freeldr.ini, freeldr.sys, libcom32.c32, mboot.c32, syslinux.cfg) and copy all of them, then paste them into your bootable USB stick.
+
You now need to download '''usbramboot''' package from: https://svn.reactos.org/packages/usbramboot.zip. Extract the files (freeldr.ini, freeldr.sys, libcom32.c32, mboot.c32, syslinux.cfg) and copy all of them, then paste them into your bootable USB stick.
  
Next you need the '''ReactOS''' ISO file which you are going to install. The ISO needs to be called '''bootcd.iso''' or '''livecd.iso''', so you will have to change the name from some thing like this: '''reactos-bootcd-0.4.15-dev-95-g7895704-x86-gcc-lin-dbg''' to just '''bootcd'''. Reason: the ini file looks for that short name. Now copy the ISO file to the usb drive.
+
Next, you will need the '''ReactOS''' ISO file which you are going to install. The ISO needs to be called '''bootcd.iso''' or '''livecd.iso''', so you will have to change the name from some thing like this: '''reactos-bootcd-0.4.15-dev-95-g7895704-x86-gcc-lin-dbg''' to just '''bootcd'''. Reason: the ini file looks for that short name. Now copy the ISO file to the usb drive.
  
If the contents of the bootable USB stick are the same as in the screenshot '''Folder contents''', you are done and ready to use it.
+
If the contents of the bootable USB stick are the same as in the '''Folder contents''' image in the [[#Screenshots | Screenshots  section]], you are done and ready to use it.
 +
 
 +
'''Warning''': Anti-virus software may interfere with the process by quarantining something that it thinks is malicious, so it may be advisable to disable your anti-virus software until you have created the bootable USB stick.  
  
 
'''Note''': When you come to use it, make sure that the BIOS will boot from it first; you may have to change the boot order in the BIOS setup.
 
'''Note''': When you come to use it, make sure that the BIOS will boot from it first; you may have to change the boot order in the BIOS setup.
Line 22: Line 26:
 
The loading of the RamDisk, on older computers and with a USB 1.1 memory stick, can take almost three and a half minutes, but the installation process is much quicker than from a CD/DVD. The progress bar moves in stages and it may look like the process has stopped.
 
The loading of the RamDisk, on older computers and with a USB 1.1 memory stick, can take almost three and a half minutes, but the installation process is much quicker than from a CD/DVD. The progress bar moves in stages and it may look like the process has stopped.
  
'''Screenshots'''  
+
Once you have a bootable USB stick, all you need to do to update it with a newer version of ReactOS, is to delete the old ISO file from the stick and replace it with the newer version, but remember that you will have to shorten it's name to just '''bootcd''' or '''livecd'''.
 +
 
 +
====Problems====
 +
 
 +
If you get an error window '''Opening hive file failed!''' when ReactOS is booting, press the '''Enter''' key and then follow these steps:
 +
 
 +
<div style="display:block;width:45em;"><pre style="background:#000;color:#fff;border:none;">
 +
Please select the operating system to start:
 +
 
 +
  ReactOS
 +
  ReactOS (Debug)
 +
  ReactOS (RosDbg)
 +
  ReactOS (Screen)
 +
  ReactOS (Log file)
 +
  ReactOS (RAM Disk)
 +
  ReactOS (Emergency Management Services)
 +
 
 +
For troubleshooting and advanced startup options for ReactOS, press F8.
 +
</pre></div>
 +
 
 +
At the above screen, press '''F8''', but make sure that the boot menu that you want to boot, is highlighted.
 +
 
 +
<div style="display:block;width:38em;"><pre style="background:#000;color:#fff;border:none;">
 +
select an option:
 +
 
 +
Safe Mode
 +
Safe Mode with Networking
 +
Safe Mode with Command Prompt
 +
-------------------------------------------||
 +
Enable Boot Logging
 +
Enable VGA Mode
 +
Last Known Good Configuration
 +
Directory Services Restore Mode
 +
Debugging Mode
 +
FreeLdr debugging
 +
-------------------------------------------||
 +
Start ReactOS normally
 +
Edit Boot Command Line (F10)
 +
Custom Boot
 +
Reboot
 +
</pre></div>
 +
 
 +
At the above screen, select '''Edit Boot Command Line (F10)''' and press the Enter key.
 +
 
 +
<div style="display:block;width:38em;"><pre style="background:#000;color:#fff;border:none;">
 +
=======================================================
 +
||                                                  ||
 +
|| Enter the path to your ReactOS system directory.  ||
 +
||                                                  ||
 +
|| Examples:                                        ||
 +
||                                                  ||
 +
|| \REACTOS                                          ||
 +
|| \ROS                                              ||
 +
||                                                  ||
 +
|| multi(0)disk(0)rdisk(1)partition(1)\ReactOS      ||
 +
||                                                  ||
 +
=======================================================
 +
</pre></div>
 +
 
 +
In the above window, if the line '''multi(0)disk(0)rdisk(1)partition(1)\ReactOS''' (which is in an input box), shows '''rdisk(1)''' then alter it to '''rdisk(0)''' and press the Enter key, then at the next screen, press the Enter key, then choose your normal boot selection. You will have to do this twice, because it will need doing at the beginning of stage three as well as at the beginning of stage two. But once you have booted successfully in stage three, you can go into '''C:\''' and open '''freeldr.ini''', then scroll down and find the section entries (as shown below) that correspond with the boot select menu, such as '''[ReactOS]''', '''[ReactOS_Debug]''',  '''[ReactOS_Screen]''', '''[ReactOS_LogFile]''' and then change the '''rdisk(1)''' to '''rdisk(0)''', then save.
 +
 
 +
Now next time you boot you should be able to boot into the desktop without the error window '''Opening hive file failed!'''.
 +
 
 +
This (below) is the section that you need to find in '''freeldr.ini''', with the suggested modes, rdisk(1) entries changed.
 +
<pre style="padding-top:0px;background:none;border:none;">
 +
[ReactOS]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
 +
 
 +
[ReactOS_Debug]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS
 +
 
 +
[ReactOS_KdSerial]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(1)partition(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /KDSERIAL
 +
 
 +
[ReactOS_Screen]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=SCREEN /SOS
 +
 
 +
[ReactOS_LogFile]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=FILE /SOS
 +
 
 +
[ReactOS_Ram]
 +
BootType=Windows2003
 +
SystemPath=ramdisk(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /RDPATH=reactos.img /RDIMAGEOFFSET=32256
 +
 
 +
[ReactOS_EMS]
 +
BootType=Windows2003
 +
SystemPath=multi(0)disk(0)rdisk(1)partition(1)\ReactOS
 +
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /redirect=com2 /redirectbaudrate=115200
 +
</pre>
 +
You only need to change the entries for the modes that you will be using.
 +
 
 +
====Screenshots====
 
<gallery widths="422px" heights="678px" paddings="0px">
 
<gallery widths="422px" heights="678px" paddings="0px">
 
File:Rufus-1.png | Rufus No1.
 
File:Rufus-1.png | Rufus No1.

Latest revision as of 12:12, 10 August 2020

Because USB support is not as yet mature, the only reliable way to install ReactOS from a USB memory stick, is to use the RamDisk method.

RamDisk boot instructions (Windows).

Make a bootable usb memory stick with Rufus (install version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10.exe or portable version https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10p.exe) to install ReactOS from a RamDisk.

Put the stick in a usb port and start Rufus. You will see that Rufus has detected the stick, if it displays the label or the manufacturer's product name under device. If you have more than one device attached to your computer, then you will have to activate the drop down list under device and select the correct USB stick. Next, activate the drop down list under Boot selection and select System linux 6.04. If everything is as in Rufus No2 screenshot, then click on Start.

If Rufus fails to download ldlinux.c32 (you will get an error message), continue with Rufus and let it create the bootable USB stick, but you will need to download the package syslinux-6 from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.zip or newer versions from: https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/

Extract the syslinux zip. Then in the extracted folder, go into the bios folder, then into the com32 folder, then into the elflink folder, then into the ldlinux folder where you will find ldlinux.c32. This is my example path to ldlinux.c32 where syslinux zip was extracted to the folder syslinux-6.03:

\syslinux-6.03\bios\com32\elflink\ldlinux\ldlinux.c32.

Copy ldlinux.c32 and paste it into your bootable USB stick.

You now need to download usbramboot package from: https://svn.reactos.org/packages/usbramboot.zip. Extract the files (freeldr.ini, freeldr.sys, libcom32.c32, mboot.c32, syslinux.cfg) and copy all of them, then paste them into your bootable USB stick.

Next, you will need the ReactOS ISO file which you are going to install. The ISO needs to be called bootcd.iso or livecd.iso, so you will have to change the name from some thing like this: reactos-bootcd-0.4.15-dev-95-g7895704-x86-gcc-lin-dbg to just bootcd. Reason: the ini file looks for that short name. Now copy the ISO file to the usb drive.

If the contents of the bootable USB stick are the same as in the Folder contents image in the Screenshots section, you are done and ready to use it.

Warning: Anti-virus software may interfere with the process by quarantining something that it thinks is malicious, so it may be advisable to disable your anti-virus software until you have created the bootable USB stick.

Note: When you come to use it, make sure that the BIOS will boot from it first; you may have to change the boot order in the BIOS setup.

The loading of the RamDisk, on older computers and with a USB 1.1 memory stick, can take almost three and a half minutes, but the installation process is much quicker than from a CD/DVD. The progress bar moves in stages and it may look like the process has stopped.

Once you have a bootable USB stick, all you need to do to update it with a newer version of ReactOS, is to delete the old ISO file from the stick and replace it with the newer version, but remember that you will have to shorten it's name to just bootcd or livecd.

Problems

If you get an error window Opening hive file failed! when ReactOS is booting, press the Enter key and then follow these steps:

Please select the operating system to start:

  ReactOS
  ReactOS (Debug)
  ReactOS (RosDbg)
  ReactOS (Screen)
  ReactOS (Log file)
  ReactOS (RAM Disk)
  ReactOS (Emergency Management Services)

For troubleshooting and advanced startup options for ReactOS, press F8.

At the above screen, press F8, but make sure that the boot menu that you want to boot, is highlighted.

select an option:

Safe Mode
Safe Mode with Networking
Safe Mode with Command Prompt
-------------------------------------------||
Enable Boot Logging
Enable VGA Mode
Last Known Good Configuration
Directory Services Restore Mode
Debugging Mode
FreeLdr debugging
-------------------------------------------||
Start ReactOS normally
Edit Boot Command Line (F10)
Custom Boot
Reboot

At the above screen, select Edit Boot Command Line (F10) and press the Enter key.

=======================================================
||                                                   ||
|| Enter the path to your ReactOS system directory.  ||
||                                                   ||
|| Examples:                                         ||
||                                                   ||
|| \REACTOS                                          ||
|| \ROS                                              ||
||                                                   ||
|| multi(0)disk(0)rdisk(1)partition(1)\ReactOS       ||
||                                                   ||
=======================================================

In the above window, if the line multi(0)disk(0)rdisk(1)partition(1)\ReactOS (which is in an input box), shows rdisk(1) then alter it to rdisk(0) and press the Enter key, then at the next screen, press the Enter key, then choose your normal boot selection. You will have to do this twice, because it will need doing at the beginning of stage three as well as at the beginning of stage two. But once you have booted successfully in stage three, you can go into C:\ and open freeldr.ini, then scroll down and find the section entries (as shown below) that correspond with the boot select menu, such as [ReactOS], [ReactOS_Debug], [ReactOS_Screen], [ReactOS_LogFile] and then change the rdisk(1) to rdisk(0), then save.

Now next time you boot you should be able to boot into the desktop without the error window Opening hive file failed!.

This (below) is the section that you need to find in freeldr.ini, with the suggested modes, rdisk(1) entries changed.

[ReactOS]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS

[ReactOS_Debug]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS

[ReactOS_KdSerial]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(1)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /KDSERIAL

[ReactOS_Screen]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=SCREEN /SOS

[ReactOS_LogFile]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(0)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=FILE /SOS

[ReactOS_Ram]
BootType=Windows2003
SystemPath=ramdisk(1)\ReactOS
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /RDPATH=reactos.img /RDIMAGEOFFSET=32256

[ReactOS_EMS]
BootType=Windows2003
SystemPath=multi(0)disk(0)rdisk(1)partition(1)\ReactOS
Options=/DEBUG /DEBUGPORT=COM1 /BAUDRATE=115200 /SOS /redirect=com2 /redirectbaudrate=115200

You only need to change the entries for the modes that you will be using.

Screenshots

Press any key to boot from the ReactOS medium....
(Folder contents)


Layman's guides

ReactOS Development Wiki Installing_ReactOS