Home > Common Problem > body text

Methods and tutorials to install Windows 11 on Surface Duo (128GB) (software included)

PHPz
Release: 2023-06-03 12:00:01
forward
2065 people have browsed it

Required files

  • TWRP image: twrp.img
  • Separate: Separate
  • Startup package: DuoBoot.tar
  • Customized UEFI: boot.img
  • Platform Tools from Google (ADB and Fastboot)
  • The ARM64 Windows version of your choice (specifically the install.wim file). You can use UUPMediaCreator for this
  • Driver set: SurfaceDuo-Drivers-Full.zip

WARNING

Do not create partitions from mass storage mode (because ABL will Broken due to spaces/spaces in name)

This will wipe all your Android data

We are not responsible for any damage caused to your phone responsibility. By following this tutorial, you agree to take full responsibility for your actions. We've done some testing, but this is an early preview and issues may arise.

This has not been tested on 256GB devices. This tutorial is for 128GB devices only.

Please read and make sure you understand the entire tutorial before starting

What You Will Get

You will end up using both Android and Windows on Duo. Both Android and Windows will split 128GB RAM (64GB and 64GB)

Android will boot normally, you have to boot Windows using PC if needed.

Steps

Unlock the bootloader

  • Back up all data. You will lose everything you own on Android and start from scratch.

Assuming your Duo boots to Android and plugs into your PC:

  • Open a command prompt on your PC and run the following command:
adb reboot bootloader
Copy after login
  • You will reboot into the Duo's bootloader. From there:
fastboot flashing unlock
Copy after login

Making Partition

  • Start TWRP:
fastboot boot twrp.img
Copy after login
  • Once in TWRP, touch will not work. Connect your phone to your PC and execute the following command:
adb push  /sdcard/adb shell "cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted"adb shell
Copy after login
  • Now we use the PC to issue commands directly from within the Duo. Let's run parted and partition:
parted /dev/block/sdaprint
Copy after login
  • Make sure the last partition number listed is 6.
  • Note the original size, here it is 51.9MB -> 112GB
  • Run these commands:
rm 6mkpart esp fat32 51.9MB 180MBmkpart win ntfs 180MB 57344MBmkpart userdata ext4 57344MB 112GBset 6 esp onquit
Copy after login

This will get you out of the breakup.

We deleted the 6th partition, the Android userdata partition, and created 3 partitions: an esp partition containing Windows startup files, a win partition containing Windows, and the last one is the new userdata partition of Android. Just smaller. Now let's make them actually usable:

mkfs.fat -F32 -s1 /dev/block/sda6mkfs.ntfs -f /dev/block/sda7mke2fs -t ext4 /dev/block/sda8mkdir /sdcard/espmnt && mount /dev/block/sda6 /sdcard/espmnt/quit
Copy after login
  • Let's load the files from duoboot.tar into the Duo, which will be necessary to boot and enter mass storage mode:
adb push  /sdcard/adb shell "tar -xf /sdcard/DuoBoot.tar -C /sdcard/espmnt"adb shell "mv /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi.bak"adb shell "cp /sdcard/espmnt/Windows/System32/Boot/developermenu.efi /sdcard/espmnt/Windows/System32/Boot/ffuloader.efi"adb reboot bootloader
Copy after login

You will be returned to the Duo's bootloader.

Booting Custom UEFI

Let’s boot custom UEFI:

fastboot boot boot.img
Copy after login
Copy after login

You will need to perform the above steps every time you want to boot Windows.

You should be thrown into the developer menu.

  • Use the volume up/down buttons to navigate to mass storage mode and press the power button to confirm. Once in mass storage mode we can continue.

Installing Windows

  • Make sure you are in mass storage mode and your Duo is plugged into your PC
  • Mount the file you created using diskpart Partition and assign some letters to it:
THESE ARE NOT ALL COMMANDS. DISKPART COMMANDS VARY A LOT, SO THESE ARE SOME ROUGH INSTRUCTIONS. ACTUAL COMMANDS START WITH AN HASHTAG (which you'll need to remove)# list diskFind the Duo Disk, and take note of the number.# select disk # list partitionYou'll be able to recognize the partitions we made earlier by their size. take note of the ESP and WIN partition numbers.# select partition # assign letter=Y:# select partition # assign letter=X:
Copy after login
  • You will load two partitions, one is the ESP partition and the other is the Win partition. Note which letters you use.

Warning: We assume that X: is the Win partition and Y: is the ESP partition for the next command. Replace them properly or you will lose data on your PC.

  • Run these commands:
dism /apply-image /ImageFile:"" /index:1 /ApplyDir:X:\
Copy after login

This will take some time.

  • After completion:
bcdboot X:\Windows /s Y: /f UEFI
Copy after login

Windows is now installed, but there are no drivers.

Install Driver

  • Extract the driver and then from the command prompt:
dism /image:X:\ /add-driver /driver:"" /recurse
Copy after login
  • Once done, you can restart your phone . You will be able to use Android and your phone will work fine. Set it up if needed.

Startup window

We are ready to launch!

  • Manually reboot the phone into the bootloader (press and hold the Power button Volume Down until the Microsoft logo appears, then stop pressing the Power button but continue to press the Volume Down button).

From the command prompt:

fastboot boot boot.img
Copy after login
Copy after login

If you did everything right, Windows will now boot! enjoy!

Enable USB

Still assuming that X: is the installed Duo Windows partition:

reg load RTS X:\Windows\System32\config\SYSTEM
Copy after login

Now open regedit.exe and edit this registry key:

HKEY_LOCAL_MACHINE\RTS\ControlSet001\Control\USBOsDefaultRoleSwitchMode
Copy after login

Set the key to value 1 and you are done.

The above is the detailed content of Methods and tutorials to install Windows 11 on Surface Duo (128GB) (software included). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!