Install Debian 8.1 (Jessie) in UEFI Mode (Dual Boot Windows 8/8.1/10)
HTML-код
- Опубликовано: 26 авг 2015
- This is a tiny tutorial for dual booting Debian 8.1 (Jessie) with Windows 8/8.1/10 in UEFI Mode.
Step1: Make some space for Debian 8.1 in Windows
Step2: Boot Debian installation disk in UEFI Mode. This method can also be used for Debian 8.6.0. Visit: cdimage.debian.org/debian-cd/c... to download the ISO
Step3: Make two partitions in the free space
Step4: Install Debian 8.1 in those partitions.
Step5: Boot into freshly installed Debian 8.1
Step6: Reboot. Done
Music:
Mario Bava Sleeps In a Little Later Than He Expected To by Chris Zabriskie is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
Source: chriszabriskie.com/vendaface/
Artist: chriszabriskie.com/
Wanna support me? Visit:
(i) paypal.me/nehaljwani
(ii) / nehaljwani Хобби
Many thanks for the tutorial. I have installed first in non efi mode and Win7 stop boting. Reinstalled again on EFI mode and got both system working. Like
+38911bytefree :)
Muchas gracias, saludos de Argentina!! Thank you very much, kind regards from Argentina!!
:-)
very helpful tutorial. thank you much...
:-)
Nice video. Some suggestions.
Don't set root password in the installation, and you will get sudo(8) installed and set up the first user as an administrator...
Make a huge LVM2 unit of the free space, and make the swap and root partition there. you might want to use 8Gbyte for / and nearly all of the rest for /home (or some usefull size). Rest will be free if you need to make / or /home larger later.
If you have Internet, you should tick so that updated software is downloaded and installed during istallation.
Except for that, really good video.
I should have probably read the comments before attempting. had to install sudo manually. Good video 👍
+Godfrey Lemi installing sudo(8) manually isn't that huge problem. It's Debian. ;-)
Congratulations, thanks ;-), nice tutorial...
+Gustavo Carneiro :)
Hey Nehal! First and foremost thank you for the awsome tut =D
Second, once you've done all this, where do you get the option to choose which OS to bootup?
Is in in BIOS? is it in windows boot loader? or grub loader? or something else?
Thanks
This video shows installation in UEFI mode. So, you will have to check the boot order in your computer to choose Debian. In most cases, after installation, it is automatically set to boot from Debian first. What is you computer make/model? Which company?
Very good video
Thanks :-)
Muy agradecido todo trabajo en mi configuración bastante bien , Thinkpad T460s Windows 10, Debian Jessie
+xtecuan ¡¡¡¡Hurra!!!! ¡Me alegra ser de ayuda! :-)
perfect music choice for such video. I will use for programming. Can you suggest more like this?
+Rahul Parashar I took it from RUclips's Music Library.
FANTASTIC video!!! Thumbs up!! Thank you very much. It's almost all I need. I just have a question maybe you can help me.
I will do a clean install, UEFI dual boot (Debian Jessie/Win 10). But I have two HDD and my Intel board supports RAID (fake RAID, a.k.a BIOS RAID) so I'm planning on setting up a RAID 0 (stripe). A fake RAID 0, this is.
I think the only difference is that when installing Debian I have to run the installer with the kernel parameter: "mdadm=true". So the installer can properly detect the RAID. Am I wrong?
I don't want to bother you, but it seems to me that you really know what you're doing, so I will REALLY appreciate any information you could give me. Or if you rather want to direct me to some place where I can find some information I will appreciate it too.
Thank you very much, and again great video.
+Ppap Dddar Well, I will be honest with you. This video is not meant for RAID setups. Also, my experience with RAID is very less. This guide assumes that you have a simple non raid setup with one or more than one HDD. If you wanna setup Debian with RAID, you will have to go through atleast: wiki.debian.org/DebianInstaller/SataRaid , wiki.debian.org/DebianInstaller/SoftwareRaidRoot and wiki.debian.org/SoftwareRAID
bro...I'm using HP mini(atom n450).... while installing I'm not getting the uefi mode...
I need help, i can get to the Debian installer however when i press install or graphic install it makes a beep sound and does nothing
What method did you use to create the installation media?
How do you entire encrypt the debian partition so it can be encrypted?
You can follow this guide: linuxconfig.org/basic-guide-to-encrypting-linux-partitions-with-luks
It is not possible to make a forward slash in the console.
Your keyboard layout is wrong in that case. Choose US
Could i have a problem if i don't install the firmware file for the wireless card? Sorry for my english level. I'm spanish
You would probably not have wireless connectivity on booting the installed Debian, if the kernel doesn't already support your card by default. No harm in giving it a try. Won't matter to you if you have a wired connection.
My Windows EFI drive isn't bootable anymore after deactivate Windows once and create those partitions. Could you help me?
What do you mean by 'after deactivate Windows' ?
Hello. Is there a problem if I left the space for linux when I install Windows?
+lombervid * No, not a problem.
thanks works on me !! haha
:-)
Can I install Debian with my ubuntu like this same procedure?
+Angus Berwick If Ubuntu is installed in UEFI mode, and you want to dual boot Debian with that, then sure, yeah.
Was that on your machine or on usb, I dint get it?
The installation was on the machine
thank you
Glad to be of help! :-)
Muss I before installation turn off secure boot?
+Peter Vajda If you are able to boot the installation media with secure boot turned on, then it does not matter.
Hello. I booted Debian USB as UEFI but it takes me to GRUB Command Line.
P.S. My PC had Ubuntu Installed. But as I didn't want it anymore, I deleted the Ubuntu Partitions. But in the UEFI Boot Menu there is still Ubuntu. I couldn't Remove it.
+Abdullah Sabbir
SOLVED IT!!
First Booted a Live Ubuntu Distro from a USB.
Then got the EFI Partition Number from this Command: sudo gdisk -l /dev/sda
My EFI Partition Number was 4 so I mounted that Partition using this Command: sudo mount /dev/sda4 /mnt
Then Removed the Ubuntu Folder from the EFI Partition using this Command: rm -fr /mnt/EFI/Ubuntu
And at last I removed the Ubuntu Entry from Bootloader using this this Command: sudo efibootmgr -b 2 -B (2 was the Entry Number of Ubuntu. You can find it using: sudo efibootmgr)
Thank You again @nehaljw
I have a problem, during the installation the free space that I just created isn't visible, I can only use the booteable USB or the guided partitioning options :(
Hi, please open disk management in Windows, take a screenshot. Upload it on picpaste.com and share the link here.
picpaste.com/Sin_t__tulo-kcpvZfw3.png
it's in spanish
it appears a window asking if I want to force UEFI?
Yes, you have to use UEFI.
I downloaded the iso and made a bootable USB stick but my bios do not see it in UEFI mode. The bootable USB only works in Legacy mode. How do I make the USB boot in UEFI. Also which iso do you advice i download, the DVD or the "Try Debian live before installing..." link. I did my test with the Try Debian live before installing iso.
Hey, which ISO did you use and which method did you use to create the bootable media?
I use the DVD ISO at cdimage.debian.org/debian-cd/current/amd64/iso-dvd/
I used the Try Debian live before installing iso, gnome-desktop environment. I made USB using rufus
If you are using Rufus, make sure you choose *GPT for UEFI* in the partitioning scheme and *Fat32* in the filesytem option *after* selecting the ISO. Also, please use the DVD version.
Ok. Thanks. Do I need all the DVDs 1-3,or just DVD1.?
So it booted me straight back into Windows when I was done installing Debian so how do I go to Debian when I'm in Windows?
Disable fast startup in Windows. As soon as computer starts, keep pressing F9 or F12 or which ever function key takes you to boot order table. From there you should be able to choose Debian.
+Nehal J Wani Tell Windows / EFI to show Grub Secure Boot:
Log into Windows and start an administrative command prompt:
Press Windows key
Search for cmd
Right click --> Run as Administrator
Type this command:
bcdedit /set "{bootmgr}" path \EFI\ubuntu\shimx64.efi
and Reboot
Now it should work!!
+Umar Ali What about Debian's grub?
You were never asked about where to install grub or did I misunderstand the process?
If you booted the installation media in UEFI mode, then I don't think it asks you.
if you install grub install it on partition where you installed linuc. cant be wrong it not effect windows anyhow.it's not even see it. you have to manual add linux to window bootloader like it should done allready 1970.
who want install linux and rewite widdows boot manager? if you delete linux partition system not boot anymore. but if you never rewite windows boot manager windows allways load even linux gone. its so stupid install grub and replace window bootloader that how its done so long linux been around.replace window bootloader LOL. if you smart you write grub on linux partition then make windows know you have linux its so easy or HARD lol
I do not get why shrink 10GB on windows is for???
I haven't done that when I installed it before.
What happened if I don't shrink it?
+Irving Kennedy I just made some space for installing Debian :)
Nehal J Wani
OK!!
I did it!!
So, I don't have any packages on the /etc/apt/source.list
Do you know what are better now?
packages.debian.org/jessie/
+Irving Kennedy Generate sources.list file contents from here: debgen.simplylinux.ch/
Please, could you help me? The Grub wont start, but it appear on the boot list, and If I chosse it Debian start fine.
+Juliano Guimaraes I do not understand what you mean by 'Grub won't start'
The Grub is installed and working fine but it do not start automaticly, I need to press F9 button and chose Debian on the boot list, otherwise the windows starts.
+Juliano Guimaraes Unfortunately, some manufacturers, like HP, tend to hardcode in the UEFI implementation that only bootmgfw.efi will be the one booted by default. Even if you change the bootorder using efibootmgr on reboot, the HP UEFI BIOS won't honor that. So, in your case, you will have to press F9 everytime :'(
Thats exactly my case. My notebook is HP, and Ive try many ways to fix it. Thank you very much. I will try to use the boot-repair tool, If work I let you know, thanks
+Juliano Guimaraes Tell Windows / EFI to show Grub Secure Boot:
Log into Windows and start an administrative command prompt:
Press Windows key
Search for cmd
Right click --> Run as Administrator
Type this command:
bcdedit /set "{bootmgr}" path \EFI\ubuntu\shimx64.efi
and Reboot
Now it should work!!
I have Windows 10 on UEFI partitioned GTP. I did the installation as shown in this video at the end of the PC is restarted , but the start windows and it does not load the grub.
How I can fix this ?
+Sebastian Florez Guerrero Make sure you have turned off fast startup in Windows. What is your PC make/model?
+Nehal J Wani My PC is a Laptop Toshiba S55 - A5279. How make sure I have turned off fast starup in Windows? Thank you.
+Sebastian Florez Guerrero Follow www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html
+Nehal J Wani Now my PC is turned off and fast startup . This boot windows yet. Should I install debian again?
+Sebastian Florez Guerrero Could you please boot into any linux live media in UEFI mode and share the output for the commands:
sudo efibootmgr
sudo gdisk -l /dev/sda
OK. Got it to boot USB netinstall. Secure boot off, UFI on. All went well till I went back to windows 10. After that, would not go back to grub??? I'm on a Dell Inspirion desktop. Boot order menu only shows windows manager. Fast startup in the power menu is unchecked and I see no fast boot in bios.
+Joseph Tannenbaum Disable Secure Boot in BIOS settings. Press F12 on Boot.
Did that already no grub
+Joseph Tannenbaum Fix: bcdedit set "{bootmgr}" path \EFI\debian\grubx64.efi. Now boots to grub. :-)
Thanks to Umar Ali and Super Grub2.
+Joseph Tannenbaum That is a hack. Isn't there an option in your BIOS settings to trust the Debian bootloader?
+Nehal J Wani No matter whether it is hack or not. It works good for hp laptops where they wont honor EFI BIOS as u said. Otherwise we need to press f9 everytime.
Is the Same procedure in Kali Linux 2.0 Thanks for sharing...
+LOSTD34D ruclips.net/video/7m6ALEZKO3Q/видео.html
+Nehal J Wani Thanks I Try your Video. i Hope work in kali Linux.. Thanks for sharing.
Your Debian install is 2 hours ahead of your Windows install though.
I took a break in between :-)
i don't have any EFI DVD/CDROm option in boot manager :(
What should i do?
+berk a Does your motherboard support UEFI? What is it's make/model? If it does, then you have to boot the installation media in UEFI mode. That option name might vary.
yes,it supports UEFI. I tried it,enter boot manager and then there is no dvd/cd-rom.
Actually,there was;but i don't understand that there are not now.
+berk a You can also create a bootable USB and then try to boot from it in UEFI mode.
yes,maybe i should try it.How much gb it has minimum that you recommend?
Umm... Minimum GB for what? If you are asking about the bootable USB, it should be a little more than the size of the ISO.
mais só funciona com debian 64 bits é?
It will work with 32 bit too. But most computers don't support booting 32 bit UEFI bootloaders directly.
I shrinked 20gbs of unallocated space and then tried to select it but it says unusable.
Are u installing in legacy mode? Do you already have four primary partitions?
Open disk management in windows and share a screenshot.
I think I figured it out, since there is a max of 4 primary partitions, Dell has one for recovery, one for boot loading stuff another for windows back up, and the C drive. There's already the max amount of primary partitions so it was just reading it as "unusable"
Im just going to delete one of the recovery partitions because I don't necessarily need it
Okay
Yes I made it.However I have another problem or lets say confusion.before the installion,I have efi system partition(272,6MB).So,do I have to create another efi partition and attach it to boot/efi or just install debian where I want to with ext4
+berk a Only one EFI partition is enough. You don't need to create another one.
Thanks for your fast answer.
Problems never stop(sorry).When it installs grub2 it gives an error.Famous Dummy error...I searched it but none of the solutions satisfactory
+berk a Please share the exact error, so that I can help you.
"grub-install dummy failed. This is a fatal error."
This is the error
+berk a Inside the Debian Installation media, please open up a terminal and share the output for the command:
[ -d /sys/efi/firmware ] && echo UEFI || echo Legacy
I have a problem, when my installation was done. It was loading then later the screen starts flickering.
It won't boot at all btw
Were you trying a dual boot? Are you able to boot into Windows?
Nehal J Wani yes and I am able to boot into windows
What is your computer make/model/manufacturer?
Nehal J Wani built
also the shrinked space shows "unusable " in Debian partition
Then you must be installing in Legacy Mode. And you must have reached the limitation of 4 primary partitions. In Windows, take backup of one primary partition, and delete the 4th one, and then you will be able to install Debian in the unallocated space.
i tried to write debian dvd iso to the usb with win32 diskimager, but it shows "this files set to read only"..
Did u read my previous comment?
+Nehal J Wani yes..and I tried with CD image..but I can't complete the partition.says"swap memory can't allocate in #5 location".
Then I tried DVD image ,since you suggest it.
+ѕυηιт krishnan You can ignore swap if you want. It is not absolutely necessary
Will it work on windows 7 ?
If Windows 7 is installed in UEFI mode, then yes. Otherwise you will have to install in Legacy Mode. In order for me to help you, boot into Windows, open disk management, take a screenshot, upload it on picpaste.com and share the link here.
Your Windows 7 Installation is in Legacy Mode. You will have to install Debian in legacy mode. You may follow this video, but ignore everything related to UEFI/EFI.
Thank you very much!!!!!!....It works :)
Glad to be of help! :-)
Good afternoon, where do I download debian UEFI ?
+William Kenede cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/
+Nehal J Wani I have que Download the 3 Files ?
+William Kenede Download only DVD-1. DVD-2 and DVD-3 contain extra packages.
+Nehal J Wani It would be interesting to install these extra packages ?
+William Kenede You can install then anytime you wish, after the base OS is installed.
i did this so many time grub step keeps failing...
i did methods like this
superuser.com/questions/714856/trying-to-dual-boot-windows-8-1-and-debian-jessie
but i keep fail and my systems starts on grub but in minimal bash-like...(i do not have os options just a terminal like grub)can you help me...
Send a chat request to me on hangouts.google.com and I'll assist you there.
problem was solved thanks to Nehal I will update for the solution asap!
here is a relevant link: "bugs.launchpad.net/ubuntu/+source/grub2/+bug/1456911"
thank you again
Basilis Mart hello. So what you did was install grub 2?
I installed debian but when rebooting the computer is going directly to windows but it cannot start, it keeps failing to start. Don't know what to do
Jaime Candelaria Send a chat request to me on hangouts.google.com and I will assist you there.
Hi everyone, does anyone can help me? I'm trying to install Debian 8.2 xfce using a usb stick, and I want to have dual boot (I have Windows 10 too) , but when I restart to boot in EFI mode, I don't see the classic Installation GUI, it takes me to grub2 command line. I also tried it with others .iso images but it doesn't work.
+Fabrizio Piva Can you please boot into any linux in live mode, in UEFI, and share the output for sudo gdisk -l /dev/sda ?
+Nehal J Wani yes, of course. I already have Ubuntu but I want to install Debian 8.2, so I booted on Ubuntu and I got this:
sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 21DE21FC-2D63-423E-B98A-CE95424898C4
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 616447 300.0 MiB 2700 Basic data partition
2 616448 821247 100.0 MiB EF00 EFI system partition
3 209864704 314724351 50.0 GiB 8300 linux
4 821248 209864703 99.7 GiB 0700 Basic data partition
5 314724352 323117055 4.0 GiB 8200
6 323117056 1743806463 677.4 GiB 8300
7 1743806464 1953523711 100.0 GiB 0700
+Nehal J Wani I also put sudo fdisk -l :
sudo fdisk -l
Disco /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico/físico): 512 bytes / 4096 bytes
Tamaño de E/S (mínimo/óptimo): 4096 bytes / 4096 bytes
Tipo de etiqueta de disco: gpt
Identificador del disco: 21DE21FC-2D63-423E-B98A-CE95424898C4
Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Windows recovery environment
/dev/sda2 616448 821247 204800 100M EFI System
/dev/sda3 209864704 314724351 104859648 50G Linux filesystem
/dev/sda4 821248 209864703 209043456 99,7G Microsoft basic data
/dev/sda5 314724352 323117055 8392704 4G Linux swap
/dev/sda6 323117056 1743806463 1420689408 677,4G Linux filesystem
/dev/sda7 1743806464 1953523711 209717248 100G Microsoft basic data
+Fabrizio Piva Type the following from inside Ubuntu (I am assuming that you have installed Ubuntu, and this is not from the installation media):
sudo mount /dev/sda2 /boot/efi
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-install /dev/sda
+Nehal J Wani Excuse me, but what do that commands do? Because I already have grub, and I can choose any OS to boot. My problem is when i try to boot with my usb stick