[{"data":1,"prerenderedAt":551},["ShallowReactive",2],{"\u002Fdocs\u002Fgetting-started\u002Fdual-boot":3},{"id":4,"title":5,"body":6,"description":543,"extension":544,"meta":545,"navigation":546,"path":547,"seo":548,"stem":549,"__hash__":550},"docs\u002Fdocs\u002Fgetting-started\u002Fdual-boot.md","Dual Boot with Windows",{"type":7,"value":8,"toc":532},"minimark",[9,13,22,32,37,40,124,128,131,159,166,176,180,197,259,262,273,277,291,296,307,372,386,390,393,408,430,446,457,461,467,487,497,511,515,528],[10,11,5],"h1",{"id":12},"dual-boot-with-windows",[14,15,16,17,21],"p",{},"You don't have to give up Windows to use LeiOS. In a ",[18,19,20],"strong",{},"dual boot"," setup, both systems are installed\non the same computer, and a menu lets you pick one every time the computer starts. It's a good way\nto switch at your own pace.",[23,24,25],"tip",{},[14,26,27,28,31],{},"Have a second disk in your computer? Installing LeiOS on its own disk is the simplest and safest\ndual boot setup: choose that disk and ",[18,29,30],{},"Erase disk"," in the installer, and Windows stays untouched.",[33,34,36],"h2",{"id":35},"before-you-start","Before you start",[14,38,39],{},"Do these things in Windows first:",[41,42,43,50,74,88],"ol",{},[44,45,46,49],"li",{},[18,47,48],{},"Back up your files."," Changing partitions is safe when done right, but a backup costs little\nand protects you from mistakes.",[44,51,52,55,56,60,61,69,70,73],{},[18,53,54],{},"Save your BitLocker recovery key."," Many Windows 11 computers encrypt the disk with BitLocker\n(",[57,58,59],"em",{},"device encryption","). Windows may ask for the recovery key after you install LeiOS or change\nfirmware settings. Find it in your Microsoft account at\n",[62,63,68],"a",{"href":64,"rel":65,"target":67},"https:\u002F\u002Faka.ms\u002Fmyrecoverykey",[66],"nofollow","_blank","aka.ms\u002Fmyrecoverykey",", or in Windows under\n",[18,71,72],{},"Manage BitLocker → Back up your recovery key",".",[44,75,76,79,80,83,84,87],{},[18,77,78],{},"Turn off Fast Startup."," With Fast Startup, Windows never fully shuts down and keeps its disk\nlocked. Open ",[18,81,82],{},"Control Panel → Power Options → Choose what the power buttons do → Change\nsettings that are currently unavailable",", clear ",[18,85,86],{},"Turn on fast startup"," and save.",[44,89,90,93,94,98,99,102,103,107,108,111,112,115,116,119,120,123],{},[18,91,92],{},"Check the boot mode."," Press ",[95,96],"kbd",{"value":97},"Win"," + ",[95,100],{"value":101},"R",", type ",[104,105,106],"code",{},"msinfo32"," and press\n",[95,109],{"value":110},"Enter",". If ",[18,113,114],{},"BIOS Mode"," says ",[18,117,118],{},"UEFI",", start the LeiOS stick in UEFI mode too (the\nboot menu entry starting with ",[104,121,122],{},"UEFI:",").",[33,125,127],{"id":126},"make-room-for-leios","Make room for LeiOS",[14,129,130],{},"LeiOS needs its own space on the disk: at least 15 GB, better 50 GB or more if you plan to use it\nevery day. Shrink the Windows partition from inside Windows:",[41,132,133,139,149],{},[44,134,135,136,73],{},"Right-click the Start button and open ",[18,137,138],{},"Disk Management",[44,140,141,142,145,146,73],{},"Right-click your Windows partition, usually ",[18,143,144],{},"(C:)",", and choose ",[18,147,148],{},"Shrink Volume",[44,150,151,152,155,156,73],{},"Enter how much space to free in MB, for example ",[104,153,154],{},"51200"," for 50 GB, and click ",[18,157,158],{},"Shrink",[14,160,161,162,165],{},"You now see a block of ",[18,163,164],{},"Unallocated"," space next to the Windows partition. Leave it empty: the\ninstaller uses it for LeiOS.",[167,168,169],"note",{},[14,170,171,172,175],{},"The installer's ",[18,173,174],{},"Install alongside"," option can shrink Windows for you, too. Shrinking from\nWindows is more reliable, and it is the only way if your disk is encrypted with BitLocker.",[33,177,179],{"id":178},"install-leios","Install LeiOS",[14,181,182,183,187,188,192,193,196],{},"Start the ",[62,184,186],{"href":185},"\u002Fdocs\u002Fgetting-started\u002Fbooting-and-secure-boot","live system"," and the installer as usual,\nand follow the ",[62,189,191],{"href":190},"\u002Fdocs\u002Fgetting-started\u002Finstallation","installation guide"," until you reach the\n",[18,194,195],{},"Partitions"," page. Then:",[41,198,199,209,234,253],{},[44,200,201,202,205,206,73],{},"Choose ",[18,203,204],{},"Manual partitioning"," and click ",[18,207,208],{},"Next",[44,210,211,212,215,216,219,220,223,224,227,228,205,231,73],{},"Select the ",[18,213,214],{},"EFI system partition",": a small partition (100 to 300 MB) with the file system\n",[18,217,218],{},"fat32",", which already holds Windows' boot loader. Click ",[18,221,222],{},"Edit",", keep its content (do ",[18,225,226],{},"not","\nformat it), set the mount point to ",[104,229,230],{},"\u002Fboot\u002Fefi",[18,232,233],{},"OK",[44,235,211,236,239,240,243,244,247,248,205,251,73],{},[18,237,238],{},"Free Space"," you made in Windows and click ",[18,241,242],{},"Create",". Choose the file system\n",[18,245,246],{},"ext4",", set the mount point to ",[104,249,250],{},"\u002F",[18,252,233],{},[44,254,255,256,258],{},"Click ",[18,257,208],{}," and continue the installation.",[14,260,261],{},"The installer leaves the Windows partition alone and adds LeiOS to the existing EFI system\npartition, next to Windows' boot loader.",[14,263,264,265,268,269,272],{},"On the next page, ",[18,266,267],{},"Dual Boot",", keep ",[18,270,271],{},"Enable dual boot detection"," selected. It makes the LeiOS\nboot menu list Windows, too.",[33,274,276],{"id":275},"choose-a-system-at-startup","Choose a system at startup",[14,278,279,280,283,284,287,288,290],{},"After installing, the computer starts the ",[18,281,282],{},"LeiOS boot menu",". It lists LeiOS and ",[18,285,286],{},"Windows Boot\nManager",". Pick one with the arrow keys and ",[95,289],{"value":110},". Without input, LeiOS starts after a\nfew seconds.",[292,293,295],"h3",{"id":294},"windows-is-missing-from-the-boot-menu","Windows is missing from the boot menu",[14,297,298,299,302,303,306],{},"The boot menu finds other systems with a tool called ",[104,300,301],{},"os-prober",", which you turn on with ",[18,304,305],{},"Enable\ndual boot detection"," in the installer. If you turned it off, or Windows still doesn't show up,\nturn it on and update the menu:",[308,309,314],"pre",{"className":310,"code":311,"language":312,"meta":313,"style":313},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","sudo mkdir -p \u002Fetc\u002Fdefault\u002Fgrub.d\necho 'GRUB_DISABLE_OS_PROBER=false' | sudo tee \u002Fetc\u002Fdefault\u002Fgrub.d\u002F90-leios-os-prober.cfg\nsudo update-grub\n","bash","",[104,315,316,335,364],{"__ignoreMap":313},[317,318,321,325,329,332],"span",{"class":319,"line":320},"line",1,[317,322,324],{"class":323},"sBMFI","sudo",[317,326,328],{"class":327},"sfazB"," mkdir",[317,330,331],{"class":327}," -p",[317,333,334],{"class":327}," \u002Fetc\u002Fdefault\u002Fgrub.d\n",[317,336,338,342,346,349,352,355,358,361],{"class":319,"line":337},2,[317,339,341],{"class":340},"s2Zo4","echo",[317,343,345],{"class":344},"sMK4o"," '",[317,347,348],{"class":327},"GRUB_DISABLE_OS_PROBER=false",[317,350,351],{"class":344},"'",[317,353,354],{"class":344}," |",[317,356,357],{"class":323}," sudo",[317,359,360],{"class":327}," tee",[317,362,363],{"class":327}," \u002Fetc\u002Fdefault\u002Fgrub.d\u002F90-leios-os-prober.cfg\n",[317,365,367,369],{"class":319,"line":366},3,[317,368,324],{"class":323},[317,370,371],{"class":327}," update-grub\n",[14,373,374,375,378,379,382,383,73],{},"Restart, and Windows Boot Manager is in the menu. Until then, you can always start Windows from\nyour computer's boot menu key. To turn dual boot detection off again, write ",[104,376,377],{},"true"," instead of\n",[104,380,381],{},"false"," and run ",[104,384,385],{},"sudo update-grub",[292,387,389],{"id":388},"change-the-default-system-or-the-waiting-time","Change the default system or the waiting time",[14,391,392],{},"Open the boot loader settings in a text editor:",[308,394,396],{"className":310,"code":395,"language":312,"meta":313,"style":313},"sudo nano \u002Fetc\u002Fdefault\u002Fgrub\n",[104,397,398],{"__ignoreMap":313},[317,399,400,402,405],{"class":319,"line":320},[317,401,324],{"class":323},[317,403,404],{"class":327}," nano",[317,406,407],{"class":327}," \u002Fetc\u002Fdefault\u002Fgrub\n",[409,410,411,417],"ul",{},[44,412,413,416],{},[104,414,415],{},"GRUB_TIMEOUT=5"," is the number of seconds the menu waits.",[44,418,419,422,423,426,427,73],{},[104,420,421],{},"GRUB_DEFAULT=0"," starts the first entry. To start the system you picked last time instead, set\n",[104,424,425],{},"GRUB_DEFAULT=saved"," and add the line ",[104,428,429],{},"GRUB_SAVEDEFAULT=true",[14,431,432,433,98,436,439,440,98,442,445],{},"Save with ",[95,434],{"value":435},"Ctrl",[95,437],{"value":438},"O",", close with ",[95,441],{"value":435},[95,443],{"value":444},"X",",\nthen apply the change:",[308,447,449],{"className":310,"code":448,"language":312,"meta":313,"style":313},"sudo update-grub\n",[104,450,451],{"__ignoreMap":313},[317,452,453,455],{"class":319,"line":320},[317,454,324],{"class":323},[317,456,371],{"class":327},[33,458,460],{"id":459},"living-with-two-systems","Living with two systems",[14,462,463,466],{},[18,464,465],{},"The clock is wrong in Windows.","\nWindows and LeiOS store the time in the computer's hardware clock differently: Windows as local\ntime, LeiOS as UTC. Tell LeiOS to use local time as Windows does:",[308,468,470],{"className":310,"code":469,"language":312,"meta":313,"style":313},"timedatectl set-local-rtc 1 --adjust-system-clock\n",[104,471,472],{"__ignoreMap":313},[317,473,474,477,480,484],{"class":319,"line":320},[317,475,476],{"class":323},"timedatectl",[317,478,479],{"class":327}," set-local-rtc",[317,481,483],{"class":482},"sbssI"," 1",[317,485,486],{"class":327}," --adjust-system-clock\n",[14,488,489,492,493,496],{},[18,490,491],{},"Sharing files.","\nLeiOS can read and write your Windows partition: it appears in Dolphin's sidebar under\n",[57,494,495],{},"Devices",". Windows can't read LeiOS's partitions. To share files both ways, use a USB stick,\ncloud storage, or a separate partition formatted as exFAT or NTFS. If Windows wasn't shut down\ncompletely (Fast Startup or hibernation), LeiOS refuses to write to the Windows partition to\nprotect your data.",[14,498,499,502,503,506,507,510],{},[18,500,501],{},"After a big Windows update, the computer starts Windows directly.","\nSome Windows updates put Windows Boot Manager first in the boot order again. Open the firmware\nsetup and move ",[18,504,505],{},"leios"," (or ",[18,508,509],{},"LeiOS",") back to the top of the boot order.",[33,512,514],{"id":513},"removing-leios-again","Removing LeiOS again",[14,516,517,518,520,521,523,524,527],{},"To go back to Windows only, start Windows, open ",[18,519,138],{},", delete the LeiOS partitions\n(the ones without a drive letter that you created during installation) and extend ",[18,522,144],{}," into the\nfree space. Then move ",[18,525,526],{},"Windows Boot Manager"," to the top of the boot order in the firmware setup.",[529,530,531],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":313,"searchDepth":337,"depth":337,"links":533},[534,535,536,537,541,542],{"id":35,"depth":337,"text":36},{"id":126,"depth":337,"text":127},{"id":178,"depth":337,"text":179},{"id":275,"depth":337,"text":276,"children":538},[539,540],{"id":294,"depth":366,"text":295},{"id":388,"depth":366,"text":389},{"id":459,"depth":337,"text":460},{"id":513,"depth":337,"text":514},"Install LeiOS next to Windows: prepare Windows, make room on the disk, install, and choose a system every time your computer starts.","md",{},{"title":5},"\u002Fdocs\u002Fgetting-started\u002Fdual-boot",{"title":5,"description":543},"docs\u002Fgetting-started\u002Fdual-boot","o07s2afEDPOUnHw9BF-kXPou8M_Ts9PbIERpxUfWKS8",1794173487196]