Install Debian 7.5.0 (Wheezy) in UEFI Mode (Dual Boot Windows 8)
HTML-код
- Опубликовано: 22 май 2014
- This is a sample video showing how to install Debian 7.5.0 (Wheezy) in UEFI Mode and Dual Boot with Windows 8
Wanna support me? Visit: / nehaljwani Хобби
yes, I am using Debian Jessie and I like it better than Ubuntu (by a long shot!!!!)but Mint 17 gives you the same uefi boot. So I opted for triple boot. Win is there first then then I add Mint on minimal size partition, let it install uefi grub, add Jessie on a bit larger partition. w/o boot loader. Boot into Mint, do a update-grub and you are done. On a laptop the Mint installer gets wifi going w/o a hassle which is another advantage. If this is is a desktop system it is even easier by just adding a ssd for linux. There Many ways to skin this cat. Nehal, you did a great job with this video, Many thanks!
Thank you for sharing! :)
THX a lot you really helped me out !!!!
i like your videos very much great work !
Yeah !! you did it !
Is there a way to dual boot debian without installing grub? I don't want to overwrite the windows uefi on the MBR
Thank you for this video! Very informative! I had to watch it several times as some of it was just a little above my skill level, I'm trying to understand what is going on so I can build on my knowledge and not just 'get it working'. So, what is going on in the for loop where, as I understand, I believe you are mounting the virtual file system to the same directory where you have the partition with your Debian installation mounted? Is this just so you can run programs like apt when you chroot into the Debian directory? I would be so incredibly grateful if you elaborated on this. Thanks again!
JaDev I am glad that you asked this question. So, basically, I mount /dev, /dev/pts, /proc, /sys /var to /mnt, using the --bind option. To understand why I do this, you should first understand the role of these directories.
/dev Contains references to all the CPU peripheral hardware, which are represented as files with special properties.
/var Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it.
/proc A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail.
/sys allows you to get information about the system and its components (mostly attached and installed hardware) in a structured way.
Now, all of these directories are automatically created during boot time. Since you are trying to enter a linux system which hasn't been 'booted', but it has to be made to think that it is being used as if it has been 'booted', we need to mount those directories. Once you chroot into it, it is *almost* same as a running linux.
Feel free to post any other queries.
Nehal J Wani Wow thank you for the quick response! That makes sense, I figured it was something like that. I spent the whole day reading up on this and I'm glad I found your channel! I'm going to give it a go tomorrow when I have another whole day to troubleshoot just in case anything goes wrong. My new notebook shipped with 2 SSDs in RAID 0 configuration and I've been eager to get Debian up and running as it should be blazing fast once everything is configured correctly. I am probably going to get Kali running on it as well but on the HDD.
Hi Nehal
Thanks for an illustrative video.. I have also downloaded the live image.. but when I boot into it using an USB, the 'install debian wheezy' does not execute..
Also at the USB boot menu, when I click on the Graphical Installation, it always searches for a CD..
Can you please help?
Thanks for this video man. I've outgrown my training wheels of Ubuntu and want to move on to the original version of Debian now. Thanks to your video you made things easy :)
ry1js Glad to be of help.
Nehal J Wani I'm stuck. How do i make the directory if the command "mount /dev/sda1 /mnt/boot/efi" returns with "Mount point /mnt/boot/efi does not exist"?
Yes sda1 is listed as efi system partition
ry1js
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
Nehal J Wani The command fori in dev /dev/ /dev/pts /proc/ /sys ; do mount -B $i /mnt/$i ; dome Returns with another line with an arrow pointing in like this >
ry1js
also 10.1.33.241:8080 doesnt get me a sources list file
good job.
I configured grub.cfg like you but I got a problem when select Windows in GRUB menu. "error: disk hd0, gpt2 not found, you need to load the kernel first". Moreower my Debian Jessie doesn't stop when i shutdown it : I must press Power button to stop my computer. I have Boot secure disabled and Launch CSM disabled. It's a ROG with Windows 8 OEM and a SSD Crucial MX100 512GB. Can you help me please?
Lyp L 'error: disk hd0, gpt2 not found' -> This means that your FAT32 EFI partition number is not 2. Type the command sudo gdisk -l /dev/sda to find out the partition number of that partition.
After i type for i in /dev/ /dev/pts /proc/ /sys : do mount - B $i /mnt/$i : done it just shows me a arrow sign and doesnt do anything.
There is no space between - and B. -B is a flag to the command mount.
thanks!!
:-)
Also input output error for chroot /mnt/
Thanks Wani
:-)
+Nehal J Wani But I suspect that things what do you in Ubuntu could be done in Wheezy Live also, right? I mean, you can also mount your partitions, update the sources and install grub-efi package, don't you? ...
+WyRe12 Grub can be setup for UEFI mode correctly, only when the EFI variables available. This can happen only when you run those commands in UEFI mode. If done in Legacy, then grub-install command will either fail, or, the EFI variables won't be set. If you can boot Debian in UEFI mode, sure, then you can do this in Debian. Actually, Debian 8.1 installation media boots correctly in UEFI mode. ruclips.net/video/9hd_NEvwr3M/видео.html
Solved the /dev/ prob but cannot connect to source file link
What's source file link?
I'm having some trouble mounting the Debian partition on my disk from Ubuntu Live. My disk set up is a little confusing because I have an SSD with 5 partitions: EFI System Partition, ESP Backup, Windows(C:\), Debian, and Windows Recovery. Then I have Disk 0 which is my HDD and contains my D:\ partition for data backup/storage, and 16GB linux swap partition. Then when booted into Ubuntu there's the disk drive containing the Live disk, for a grand total of 8 partitions over 3 separate disks.
So my SDD is assigned to /dev/sdb and the partition scheme is almost identical to your /dev/sda with the exception that my swap partition is not on this disk. The Debian partition is partition 6. However when I try to mount /dev/sdb6, I get an error that the disk does not exist. It seemed to be pretty straightforward for you, just 'mount /dev/sda6 /mnt/', but mine seems to want something different. I'm reading more documentation now, and I'll post back if I find anything before you get a chance to respond. Thanks again I've been learning a lot.
In ubuntu, please share the output for the command:
gdisk -l /dev/sda
gdisk -l /dev/sdb
Nehal J Wani
for sda:
Disk dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID):
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 3427 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1919934463 915 GiB 0700 Microsoft basic data
2 1919934464 1953523711 16.0 GiB 8200 Linux swap
Nehal J Wani for sdb:
Disk dev/sdb: 2500069680 sectors, 119.2 GiB
logical sectors size: 512 bytes
Disk identifier (GUID):
Partition table holds up to 128 entries
First usable sector is 34, last usable sectors is 500129758
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 300.0 MiB 2700 Basic data partition
2 260.0 MiB EF00 EFI system partition
3 128.0 MiB 0C01 Microsoft reserved part
4 132.8 GiB 0700 Basic data partition
5 15.0 GiB 0700 Basic data partition
6 90.0 GiB 0700
Where 6 is the 90 GiB partition I installed Debian under, 4 is the C: drive that Windows is installed and boots under, 1 and 2 are ESP and ESP backup, and 5 is Windows Recovery.
Nehal J Wani
I did notice that sdb is not showing the correct disk size, this is actually 2 separate physical drives in RAID 0 mode, so this is reading the partition table for the RAID drive but only showing the disk size of one physical disk...
Nehal J Wani
Okay it was because of the RAID configuration. The actual partition is under /dev/mapper/isw...etc I have it mounted now but I'm not sure if I should reinstall Debian now
Well I took my disks out of Raid, created a new partition table on the first SSD, installed Debian, everything seemed to be going fine during boot it got further than before, until it went to a black screen with just a blinking cursor at the top left...I rebooted in verbose mode and it hangs after the line:
[ 14.303227] input: ACPI Virtual Keyboard Device as /devices/virtual/input/input10
And then it just stops. I am just about fed up with Debian.
Looks like some kind of regression with this kernel. Try searching on google for keyboard drivers (kernel modules). Otherwise, switch to Mint or Fedora :P
Ya I'm going to play around with the different distros until I find one that I like. Debian will boot into a shell but I can't get xorg configured to let me get a desktop it just says the server can't find a screen or something like that.
I'm still an utter n00b with a lot of this, I have Ubuntu working now but I can't get my sound to work and after I boot from my external drive sometimes it doesn't detect the touchpad and I have to reboot several times to get it back. I just ordered "How Linux Works: What Every Super User Should Know" from No Starch press. I'm also gonna work my way through Linux From Scratch. I start school tomorrow to get my BS in Computer Science, which I'm really looking forward to.
JaDev
Great! If you want to learn the hard way, start with Arch Linux :)
im using this video to install debian 7.7, when i try to do the step: chroot /mnt/, i got into 'bash-4.3#', could you please help?
koiminx That is good, continue as shown in the video.
Nehal J Wani it's when I chroot and I can't update and can't run any cimmands
koiminx
Share the error. I'll help you out.
Nehal J Wani hey everything is fine. Just had to create and Efi partition of 300mb and use the remaining space for everything
I get the error "mount: mount point /mnt/boot/efi does not exit" when I enter "mount /dev/sda2 /mnt/boot/efi", sda2 is definitely my efi partition.
gdisk also lists it as an EFI partition
Jan M.
You need to create that directory, if it does not exist. Type the command:
mkdir -p /mnt/boot/efi
Why use Ubuntu to fix the EFI stuff instead of that very same Debian live CD?
Because, To fix EFI related stuff in Linux, you have to boot in UEFI Mode. Since Debian Installation Disc doesn't support UEFI Mode, I have to go via Ubuntu Disc.
Nehal J Wani Thank you for the quick response.
The sources.list file which u download from your browser
You have to create the file on your own. I just downloaded it from my local network. Also, maybe you want to follow the more recent video? ruclips.net/video/9hd_NEvwr3M/видео.html
this works with windows 7?
If Win7 is installed in UEFI mode, then yes, you can follow the same method as listed in this video.
nice video, I just installed Wheezy but with grub and I see you omit that step so I wanna know if I still can follow the other steps in the video even though I installed grub in the partition where Debian is??
XphantasmaX In case you really want the dual boot to work, and the debian installation to be converted to UEFI mode, you *have* to follow the rest of the steps.
Nehal J Wani
hi sorry I'm stuck when i try to do "apt-get update" i get the error message "could not resolve..." for each site listed i don't know what to do maybe you can help me
XphantasmaX
Do this: echo "nameserver 8.8.8.8" >> /etc/resolv.conf
and then continue with the apt-get update.
thank you! i finally get to dual boot windows 8 with debian but i suppose everytime i do "update-grub" it will delete the entry i made for windows right
XphantasmaX
Maybe. Could you please share whether os-prober is installed or not, in debian?
I foplow your instractions but when I reboot after changing grub, Windows has started. I have grub 2 is it a problem ?
The Nominalista Make sure you have disabled Fast startup/shutdown in Windows, try going to the boot menu when you restart the computer.
***** No, it shouldn't be. Boot using the live disk again, and share the output for the command:
sudo gdisk -l /dev/sda
***** Yeah, boot using Ubuntu Live disk, and share the output for sudo gdisk -l /dev/sda
Nehal J Wani GPT fdisk (gdisk) version 0.8.8
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): A03E03C5-048A-4A8D-B076-98E1AAE213DE
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 821248 1083391 128.0 MiB 0C01 Microsoft reserved part
4 1083392 613476351 292.0 GiB 0700 Basic data partition
5 920676352 921602047 452.0 MiB 2700
6 921602048 1953523711 492.1 GiB 0700 Basic data partition
7 613476352 629100543 7.5 GiB 8200
8 629100544 920676351 139.0 GiB 8300
The Nominalista What is the make/model of your computer?
Are there any difference between installing Debian 7.6 and 7.5.0 in UEFI mode?
+berk a No. But Since 8.0 is stable now, I guess you should be installing that. Follow ruclips.net/video/9hd_NEvwr3M/видео.html
Thank you,i will look at it
Thank you...
And btw, i wondering bout the song....
Aulia Dani 'Hey Girl' by 'Topher Mohr and Alex Elena'
Thanks Nehal J Wani...and thanks again for the tutorial
wich version of ubuntu do you download? because I found desktop and server, can you give the url ?
Humberto Salazar I think I had used cdimage.debian.org/debian-cd/7.6.0/amd64/iso-dvd/debian-7.6.0-amd64-DVD-1.iso. This is Debian, not Ubuntu.
Nehal J Wani in minute 8, there is install with ubuntu live installation media
Humberto Salazar Oh. For that I use: releases.ubuntu.com/14.04.1/ubuntu-14.04.1-desktop-amd64.iso
Nehal J Wani thank you for your help, and great video
Humberto Salazar
Glad to be of help!
How do u find where your debian is installed if u have done it manually?
Type:
sudo gdisk -l /dev/sda
Mount all the partitions one by one to a specific place and see which one of these partitions has the file /etc/issue and contains the text 'Debian' in it. :)
+Nehal J Wani sorry for my lack of knowledge but could u tell me how to mount these partitions.
To mount:
sudo mount /dev/sdaX /mnt (Replace X with the number of the partition)
To unmount:
sudo umount /mnt
BTW, you can share the output for sudo gdisk -l /dev/sda here, and I'll help you figure it out.
+Nehal J Wani its a lot i have got 23 sectors
+Nehal J Wani i found it out thank u so much for replying so quickly and for all your good work
Hi!! how do I create the mnt/boot/efi/ ??
Use this command:
mkdir -p /mnt/boot/efi
Thanks bro! I like your videos if I had another issue I'd let you know!
Nehal J Wani Sorry for annoy again but I had problems while installing apt-get install --reinstall grub-efi. Once I type it this appear:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 211 not upgraded.
Need to get 0 B/2,560 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 169933 files and directories currently installed.)
Preparing to unpack .../grub-efi_2.02~beta2-9ubuntu1_amd64.deb ...
Unpacking grub-efi (2.02~beta2-9ubuntu1) over (2.02~beta2-9ubuntu1) ...
Setting up grub-efi (2.02~beta2-9ubuntu1) ...
Before that I didn't update the sources.list file because I couldn't find 10.1.33.241:8080 and when I search them here debgen.simplylinux.ch/ I don't know how copy them or update them. I don't know if it is related to that.
Kira Light Yagami
10.1.33.241:8080 was my local server for updating sources.list file. You need to generate sources.list from debgen.simplylinux.ch/ and copy that to /etc/apt/sources.list
Nehal J Wani Of course but when I try to open this in ubuntu bash: /etc/apt/sources.list: Permission denied
I can not access
Are you using partitions GTP?
Yes, the partition table is GPT.
Nehal J Wani Did you have any problems with secure boot option in the BIOS?
Sorry my english is very poor and I am using Google Translate
Sebastian Florez Guerrero If enabling secure boot causes problem, I disable it in BIOS settings.
apt-get command not found error. What should i do?
What is the exact error?
+Nehal J Wani bash apt-get : command not found.
Did you chroot into the debian installation or not?
+Shubham G also the reason i am following this video instead of the more recent one is because i downloaded debian 8.5.0 i386 iso dvd but my uefi system would not recognize my bootable usb. Even though i had made my usb bootable using rufus and debian 8.5.0 has uefi support.
i386 is 32 bit. You should have downloaded x86_64
10.1.33.241:8080/sources.list ?????????????
You can generate the sources.list file from debgen.simplylinux.ch/
Song name please?
"Hey Girl" By Topher Mohr and Alex Elena
thank you very much
Could you give me some RAID specific advice on what to do? I'm leaving off right now with an unbootable system. I was able to get grub to start successfully but then it doesn't load Debian it says it's unable to find the root device. I followed the instructions here for installing Debian in RAID:
wiki.debian.org/DebianInstaller/SataRaid
With the exception that I did not install by adding 'dmraid=true' to the kernel boot line. I had already installed using the Live USB like in the video. So I'm not sure if this is why Debian is not able to boot
To be honest, I have never tried an installation in RAID configuration. If you do find out the correct way, please make a blog post about it to help others.
Nehal J Wani
No luck on this yet! I just posted to unix.stackexchange and I'm waiting for a response. I'm able to get as far as Grub, but when I go to load Debian it throws a "Gave up waiting for root device' error and says the disk volume does not exist. I suspect I may have needed to explicitly set the drive as a LVM drive during the initial paritioning and installation as the drives that were enumerated with Ubuntu Live are apparently not the same when I boot into Debian. So I think Ubuntu knows automagically it is a RAID volume and treats it accordingly whereas Debian is not aware of this and maybe assigning it differently under /dev/
JaDev
Could you please post the link to the question here?
Sure thing!
unix.stackexchange.com/questions/179658/dual-boot-debian-on-raid-0-in-uefi-mode
JaDev
Hey, can you share the output for the command:
$ sudo mount
when you boot into ubuntu in UEFI mode?
Name - Dimitri
from my prospective it is a complete madness
a. I am @ Debian Whizy - who knows what bloody flavaor of Inbuntu he was talkinig about - it is never published - and it is is twenty fife thousands
keystrokes away
- you guys are sadomasochistic - stay there,
especially when you are only asked for stead forward given answers
How to marry Win with Linux ( with a choice , Of newly installed system to ask -
one polite question - "would you like to keep us both?"
It is a normal question to ask. One spent a million of man hours - which were paid
Others spent a million of man hours - when they are proclaiming will never be paid - lairs
The publisher of this article is the latter
Come up with Appolo 13 decision - 5 moves and we will achieve dual to begin with
Bow,
Dmitri