Please don't use this script as it has not been updated for ages.... Please use the Clover script instead - https://github.com/ryanrudolfoba/SteamDeck-Clover-dualboot
This repository contains the instructions and scripts on how to install rEFInd - a graphical boot manager.
This will mostly benefit Steam Deck users who have setup a dual boot and wants to have a graphical way to select which OS to boot from.
NOTE
If you are going to use this script for a video tutorial, PLEASE reference on your video where you got the script! This will make the support process easier!
Windows, SteamOS and Batocera (microSD)
SteamOS, Batocera (microSD) and Windows (external SSD)
- Do this at your own risk!
- This is for educational and research purposes only!
NOTE
This was inspired from the rEFInd script available here.
- Re-wrote the script and removed unneeded components (3rd party systemd scripts /
powershell scripts/ EasyUEFI). - This contains the same techniques I learned when writing the Clover install script!
- When the dual boot breaks, just boot back manually to SteamOS and it will fix the dual boot entries on its own!
- All-in-One script - install, disable / re-enable, uninstall!
- Simplified config file so it is easy to read, understand and modify.
- Doesn't rely on pacman repositories - uses the official rEFInd ISO image.
- Doesn't use hardcoded menu entries - this allows Windows on microSD / external SSD to get detected automatically!
- misc - Added a cool Matrix Morpheus wallpaper, custom icon for Windows, SteamOS and Batocera.
WARNING!
Please carefully read the items below!
- The script has been thoroughly tested on a fresh SteamOS and Windows install.
- If your SteamOS has prior traces of rEFInd or scripts / systemd services related to rEFInd, it is suggested to uninstall / remove those first before proceeding.
- If your Windows install has scripts or programs related to rEFInd / EasyUEFI, it is suggested to uninstall / remove those first before proceeding.
This is a complete rewrite and it doesn't rely on systemd services / 3rd party apps. I don't know what the behavior will be if those are present in the system. Remove them first before using this script!
Prerequisites for SteamOS
- No prior traces of rEFInd or scripts / systemd services related to rEFInd.
- sudo password should already be set by the end user. If sudo password is not yet set, the script will ask to set it up.
Prerequisites for Windows
NOTE
This applies to Windows installed on the internal SSD / external SSD / microSD.
- No scripts / scheduled tasks related to rEFInd or EasyUEFI.
- APU / GPU drivers has been installed and screen orientation set to Landscape.
- This is VERY IMPORTANT! Do not skip this step -
- Open command prompt with admin privileges and enter the command -
bcdedit.exe -set {globalsettings} highestmode on
- Open command prompt with admin privileges and enter the command -
NOTE1 - please read carefully below
- Make sure you fully read and understand the disclaimer, warnings and prerequisites!
- The script will create a directory called ~/1rEFInd-tools with scripts to enable / disable Windows EFI and an uninstall to reverse any changes made. Do not delete this folder!
For the SteamOS side
The script copies files to the /esp/efi/rEFInd location and manipulates the EFI boot orders. No files are renamed / moved.
Extra scripts are saved in ~/1rEFInd-tools which manipulates the EFI boot orders, and an uninstall to reverse any changes made.
There are no extra systemd scripts created,no extra power shell scripts neededand no need for EasyUEFI.
For the Windows side
The script creates a folder called C:\1rEFInd-tools and creates a Scheduled Task.
The Scheduled Task runs the powershell script saved in C:\1rEFInd-tools. The powershell script queries the EFI entries and sets rEFInd to be the next boot entry.
NOTE2
The installation is divided into 2 parts - 1 for SteamOS, and 1 for Windows.
The recommended way is to do the steps on SteamOS first, and then do the steps for Windows.
Installation Steps for SteamOS
-
Go into Desktop Mode.
-
Open a konsole terminal.
-
Clone the github repo.
cd ~/
git clone https://github.com/ryanrudolfoba/SteamDeck-rEFInd-dualboot -
Execute the script!
cd ~/SteamDeck-rEFInd-dualboot
chmod +x install-rEFInd.sh
./install-rEFInd.sh -
The script will check if sudo passwword is already set.
4a. If it is already set, enter the current sudo password and the script will continue.
If wrong password is provided the script will exit immdediately. Re-run the script and enter the correct sudo password!4b. If the sudo password is blank / not yet set by the end user, the script will prompt to setup the sudo password. Re-run the script to continue.
4c. Script will continue to run and perform sanity checks all throughout the install process.
-
Reboot the Steam Deck. rEFInd is installed and you should see a GUI to select which OS to boot from! Use the DPAD and press A to confirm your choice.
Installation Steps for Windows
-
Download the ZIP by pressing the GREEN CODE BUTTON, then select Download ZIP.
-
Go to your Downloads folder and then extract the zip.
-
Right click rEFIndWindows.bat and select RUNAS Administrator.
-
The script will automatically create the C:\1rEFInd-tools folder and copy the files in there.\
-
It will also automatically create the Scheduled Task called rEFIndTask-donotdelete
-
Go to Task Scheduler and the rEFIndTask will show up in there.
-
Under the General tab, make sure it looks like this. Change it if it doesn't then press OK.
-
Right click the task and select RUN.
-
Close Task Scheduler. Go to C:\1rEFInd-tools and look for the file called status.txt.
-
Open status.txt and the rEFInd GUID should be the same as the bootsequence. Sample below.
-
Reboot and you should see a GUI to select which OS to boot from! Use the DPAD and press A to confirm your choice. You can also use the trackpad to control the mouse pointer and use the RIGHT SHOULDER BUTTON for LEFT-CLICK.
Read this for your Common Questions and Answers! This will be regularly updated and some of the answers in here are contributions from the WindowsOnDeck reddit community!
Use a hash file calculator. Verify that the hash matches -
MD5 - 4e5bc6cf04b9263bd0555960f27c10c4
SHA1 - 2be1a0db421b56e15cf4a14e1c3fbf6a0198f687
SHA256 - 2c33e5316216dfc8f9cc0c0af3aaa8213f4ff0fb24a380673a7ba21a64ab7a33
SHA384 - a9ecd691474cfe5132b60022d002d1ed62a592b76aab9f31ad7ce8eec8d38bdfbe835624bfc61ee4a66c8b1c91297353\
- Boot to Windows.
- Open command prompt with admin privileges and enter the command -
bcdedit.exe -set {globalsettings} highestmode on
-
Boot into SteamOS.
-
Go to Desktop Mode.
-
Open a konsole terminal and re-enable the Windows EFI -
cd ~/1rEFInd-tools
./enable-windows-efi.sh
-
Reboot the Steam Deck and it will boot directly to Windows.
-
Open command prompt with admin privileges and enter the command -
bcdedit.exe -set {globalsettings} highestmode on -
Make sure screen orientation is set to Landscape.
-
Reboot and it will go back to rEFInd!
-
Boot into SteamOS.
-
Go to Desktop Mode.
-
Open a konsole terminal and re-enable the Windows EFI -
cd ~/1rEFInd-tools
./enable-windows-efi.sh
-
Reboot the Steam Deck and it will automatically load Windows.
-
Install the GPU / APU driver upgrade and reboot Windows.
-
After the reboot it will go back to rEFInd.
-
Select Windows and wait until it loads.
-
Make sure screen orientation is set to Landscape.
-
If everything looks good, reboot and it will go back to rEFInd.
- Follow the steps for the Windows install.
- Manually boot into SteamOS and it will automatically fix the dual boot entries.
- On the next reboot it will go to rEFInd.
This happens even if not using dualboot / Clover / rEFInd.
- Turn OFF the Steam Deck. While powered OFF, press VOLUP + POWER.
- Go to Boot from File > efi > steamos > steamcl.efi
- Wait until SteamOS boots up and it will automatically fix the dual boot entries.
- On the next reboot it will go to rEFInd.
Q7. I hate rEFInd / I want to just dual boot the manual way / A better script came along and I want to uninstall your work!
-
Boot into SteamOS.
-
Open a konsole terminal and run the uninstall script -
cd ~/1rEFInd-tools
./uninstall-rEFInd.sh
-
Reboot the Steam Deck and it will automatically load Windows. rEFInd has been uninstalled!
You can send me a message on reddit / discord to say thanks!