PDA

View Full Version : Windows 10 + Kali Linux 2.0 Dual Boot problems



HaraldGer123
2016-01-07, 11:42
Hey Guys! Greetings from germany

I bought a new laptop and ran into many problems.

First of all i wanted to Dualboot W10 and Kali Linux that i can decide in the boot which OS iam going to use.

i always start with Win10 and then i want to install Kali Linux. Not the other way like i have kali installed and then want to install win10.

I prepared a Kali Linux 2.0 Bootable USB-Stick.

First problem was that i couldnt boot from USB . I read that some some problems can be solved if you activate Legacy boot and disable secureboot.

In my szenario i disabled the secureboot and then i could start the Kali boot and installing.
After i finished the installation i got a problem something like "...thin ini.... .change" ( i cannot remember completly, but i was something with "thin" )

I restarted over and over but nothing changed.


Is there a possibility to REALLY create a dual boot system for Windows 10 and Linux ?
Like a tutorial which covering THESE PROBLEMS ? Or video? Or i dont know iam really clueless.
Also one question is about the SWAP partition. How much should it be ? I read some tings like 2*ram+1mb and stuff like that but that seems to be outdated.

F.e i saw many tutorials where s.o installed dualboot windows/linux and in the comments you find many problems, and also solvings, like i said earlier to disable secureboot.

I coming from windows 7 and its really frustrating with win10 now.
Maybe iam just unexperienced and a bit hard in understanding.

Hope you can help me :-(


Excuse for my english please.

HaraldGer123
2016-01-07, 16:37
I have the assumption that there is something wrong with the grub. in all videos i saw they choose where to install it. in my szenario he didnt ask he just install the grub loader. if i restart, windows starts normally, no selection of OS. Is there something in bios i have to change maybe? i turned legacy off and secure boot.

HaraldGer123
2016-01-07, 17:54
im capable of choosing the OS now. Seems like grub works. But when i choose Kali Linux, it doesnt boot up, there is a error lsm:thin init or something like that.... i dont understand....

I read all the time reinstall grub or something, but i have a dumb question now, how iam suppose to enter those syntax in terminal when im not capable to get into the OS Kali Linux?

duxim
2016-01-07, 20:42
Hi HaraldGer123
to dual boot you new laptop you have to enable legacy BIOS option, disable Secure boot and sometimes Fast boot options,
this steps are for Windows.

In your problem I suggest next steps.
first from Windows (windows disk managment) delete Kali partition.
download once again Kali iso img, but download lite version.
check sha1sum is it ok (this is important) and read this posts
https://forums.kali.org/showthread.php?21641-How-to-EFI-install-Kali-Linux-(Beginner-Ways)
https://forums.kali.org/showthread.php?26988-Install-Kali-Linux-2-0-(Sana)-in-UEFI-Mode-(Dual-Boot-Windows-8-8-1-10
https://forums.kali.org/showthread.php?26780-Working-method-to-install-Kali-2-0-Sana

it could be helpful for you to accomplish the task.
Grüße

HaraldGer123
2016-01-08, 09:27
Hey duxim, i followed the first link but i got a problem ( i described it here https://forums.kali.org/showthread.php?21641-How-to-EFI-install-Kali-Linux-%28Beginner-Ways%29 )

If i can make it happen that it works, i pay several sixpacks beer if you come to germany ;-)

duxim
2016-01-08, 11:54
everything for good german beer and it will be soon :)
where you stuck in this? provide some more info.
i suggest you use only Win32 Disk Imager instead of Rufus for Kali 2.0 to make bootable usb.
also read all those post carefully to see other options and solutions.

HaraldGer123
2016-01-08, 13:53
Which is your favorite brand? :-P

also i followed all steps Here : https://forums.kali.org/showthread.php?21641-How-to-EFI-install-Kali-Linux-%28Beginner-Ways%29

I Created Boot with rufus, i created the folder with /EFI/Boot and those 4 files.

i downloaded the files bootx64.efi, MokManager.efi,grubx64.efi as i googled for : <name>.efi download .

For example here : http://ftp.scientificlinux.org/linux/fedora/releases/18/Fedora/x86_64/os/EFI/BOOT/

Those looks "normal" .

I used his GRUB.txt
----------------------------------------------------------------------------------
# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
#
# root=UUID=dc08e5b0-e704-4573-b3f2-cfe41b73e62b persistent

set menu_color_normal=yellow/blue
set menu_color_highlight=blue/yellow

function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}

load_video
set gfxpayload=keep

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0
set color_normal=yellow/blue

menuentry "Kali - Boot Non Persistent Mode" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali
initrdefi /live/initrd.img
}

menuentry "Kali - Boot Persistent" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrdefi /live/initrd.img
}

menuentry "Kali Failsafe" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrdefi /live/initrd.img
}

menuentry "Kali Forensics - No Drive or Swap Mount" {
set root=(hd0,1)
linuxefi /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali noswap noautomount
initrdefi /live/initrd.img
}

menuentry "Kali Graphical Install" {
set root=(hd0,1)
linuxefi /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/gtk/initrd.gz
}

menuentry "Kali Text Install" {
set root=(hd0,1)
linuxefi /install/vmlinuz video=vesa:ywrap,mtrr vga=788
initrdefi /install/initrd.gz
}


-------------------------------------------------------


Then i disabled Legcy that he starts with UEFI. And i also disable secure boot.


My Bios settings:
POST Hotkey Delay 5
CD-Rom Boot <disabled>
Internal Network Adapter <disabled>
Legacy Support <disabled>
Secure Boot <disabled>


UEFI Boot Order:

OS Boot Manager
USB Diskette on key/usb Hard Disk
! USB CD/DVD Rom Drive
! Internal CD / DVD ROm drive
! Network Adapter

So, if i want to BOOT now from the USB i get this on my screen, i can choose between these options:

Shim UEFI key managment:

Continue boot
Enroll key from disk
Enroll hash from disk


If i choose Continue boot, i come back to the Boot Manager.... im really frustrated somehow but i want to make it works! :)


EDIT : i erased the partition with my KALI, but KALI shows up in my UEFI Boot manager,


In my Bootmanager is this :

Boo Option Menu

OS boot Manager <UEFI> - Windows Boot Manager <Samsung xxxxxxxxx>
OS boot Manager <UEFI> - kali < Samsung xxxxxxxx>
Boot fom EFI File

<Samsung xxxxx> = Same SSD

If i choose now Kali i get something like this obviously:

No such partition:
Rescue grub :


Why can i choose it? i erased the partition... but yeah in some other option i tried i mounted smth... somehow i loose my head whats right and whats wrong

duxim
2016-01-08, 14:30
HaraldGer123 wrote:
"I Created Boot with rufus, i created the folder with /EFI/Boot and those 4 files. "
read my post
"i suggest you use only Win32 Disk Imager instead of Rufus for Kali 2.0 to make bootable usb."
and once again perform all steps from the beginning.

"i erased the partition with my KALI, but KALI shows up in my UEFI Boot manager"
this can be easily fix from windows with easyBCD (see on YT how)
and why don't you try steps from this post
https://forums.kali.org/showthread.php?26988-Install-Kali-Linux-2-0-(Sana)-in-UEFI-Mode-(Dual-Boot-Windows-8-8-1-10

HaraldGer123
2016-01-08, 14:56
Okay i do everything with win32disk, but iam capable of put the folders in? F.e if i use "Universal usb" i cannot enter the folder i get the message : "You have to format first". I test it later when im back home.

Much much love to you! thanks that you help me! :-)

One question left, why you suggest Win32disk? I mean read so many programs... UniversalUsb,UsbToIso,Win32Disk,Rufus etc etc.

Have a nice day !

duxim
2016-01-08, 17:09
One question left, why you suggest Win32disk? I mean read so many programs... UniversalUsb,UsbToIso,Win32Disk,Rufus etc etc.

Have a nice day !
it is not that I suggest or that is my fiction :) it is only way to create boot usb with Kali 2.0 on Windows or dd command on Linux
but most users doesn't read that and that is reason why I always recommend it.

HaraldGer123
2016-01-09, 15:52
Hey i got following problem in this step:

Step 8. Mount the Kali Linux partition to /mnt. Also mount (in bind mode) /dev /dev/pts /proc /sys
Code:

for i in /dev /dev/pts /proc /sys ; do mount -B $i /mnt/$i ; done




I get following error :

bash: syntax error near unexpected token ´do' ?????


i type it exactly.... i typed

sudo for i in /dev /dev/pts /proc /sys ; do mount -B $i /mnt/$i /mnt/$i ; done


Please help :-(

HaraldGer123
2016-01-09, 16:19
btw i use ubuntu

i added a "SUDO" for all operations,

sudo for i in /dev /dev/pts /proc /sys ;sudo do mount -B $i /mnt/$i /mnt/$i ;sudo done


i get :

sudo : for : command not found
sudo do: command not found
sudo done: command not found

??

duxim
2016-01-09, 17:53
"Step 5. Create Bootable Installation Media for any Linux Distribution, which is UEFI compatible, and supports live mode. I prefer System Rescue Disk . You can also use Ubuntu Installation Media."
try then with System Rescue Disk. you need to bee focused on installation, about steps you take.
if one step have some errors, then try another one. sometimes Kali installation is very complicated especially for UEFI BOIS.

HaraldGer123
2016-01-09, 19:40
okay it works running rescue disk

i get following error if i type the mounting step for i....

mount point /mnt//dev/pts does not exist

mount point /mnt// proc does not exist


mount point /mnt//sys does not exist

:(

Jesus i sitting the whole weekend here and cant get it working.....

HaraldGer123
2016-01-10, 13:58
Really..... i tried all options.... iam so annoyed.

I tried it to virtualize it. but then if he trying to "configuring grub amd 64" it freezes..... jesus.... whole weekend and not even the OS starting.... .
------------


edit: ok virtualizing works....

lol


i want it on my SSD grrrr

duxim
2016-01-10, 17:21
i want it on my SSD grrrr
then wrote it that you have ssd :confused:

you need to combine some procedure.
for UEFI an for SSD and you need to read,read and after that once again read posts and tutorials
read this for ssd instalation
https://wiki.debian.org/SSD%20Installation
and combine with
https://forums.kali.org/showthread.php?26988-Install-Kali-Linux-2-0-(Sana)-in-UEFI-Mode-(Dual-Boot-Windows-8-8-1-10

hope that this time will be sucessfull insatllation and you will get your Kali work

HaraldGer123
2016-01-11, 07:17
I will try later at home again.

But i followed EXACT way here https://forums.kali.org/showthread.php?26988-Install-Kali-Linux-2-0-%28Sana%29-in-UEFI-Mode-%28Dual-Boot-Windows-8-8-1-10 i dont know what to change :-(. i Thought it shouldnt matter if bootet and install it in HDD / SSD . ( Anyway i tested it all the time on SSD ).

Why he say the stuff with he couldnt find the directories.... i dont get it.

HaraldGer123
2016-01-11, 07:18
also your link is for :

"To copy your running hard disk installation to the SSD,"

I even cant get it running.

HaraldGer123
2016-01-19, 13:00
Hey duxim, im stucking. I copy following from the thread i wrote in.


General: i followed all steps exactly. Boot UEFI with the rescue bootstick. here iam stucking now. Iam using a SSD with Win10 on it.

I also have a 64 bit OS. downloaded 64bit KALI ISO. and downloaded the rescue from the video in the tutorial.

i cannot go into the graphical user interface. my Screen is black and i have a prompt with:

root@sysresccd /root % _ ( here i can enter commands and followed with the commands i entered )

i entered follow commands in order :


[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

Output:
UEFI


gdisk -l /dev/sda

Output :

Number Start end size code name
1 2048 534527 260.0MiB EF00 EFI System partition
2 534528 186851327 88.8GiB 0700 Basic Data partition
3 186851327 188622847 864.0MiB 2700
4 188622848 198387711 4.7GiB 8200 (this is my swap )
5 198387712 250068991 24,6 GiB 8300 ( This is my / directory ) (root)


if i continue the guide i did this :


for i in /dev /dev/pts /proc /sys ; do mount -B $i /mnt/$i ; done

output :

mount: mount point /mnt//dev does not exist
mount: mount point /mnt//dev/pts does not exist
mount: mount point /mnt//proc does not exist
mount: mount point /mnt//sys does not exist



Should i continue with this: ?

fdisk -l
mount /dev/sda# /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
grub-mkconfig -o boot/grub/grub.cfg

?

If you can make it happen that it works, i give you a bag with good german beer! :-P


EDIT: i followed with this command

for i in /dev /dev/pts /proc /sys ; do
mkdir -p /mnt/$i
mount -B $i /mnt/$i
done

and then i can enter

for i in /dev /dev/pts /proc /sys ; do mount -B $i /mnt/$i ; done

wihthout a problem


Now i stucking here

Step 11. Chroot into /mnt.
Code:


chroot /mnt "/bin/bash"

my output is:

chroot: failed to run command 'bin/bash' : no such file or directory

If i searching :

find /mn -name bash

He just jumps in the next line like he couldnt find anything

HaraldGer123
2016-01-19, 13:57
Problem solved needed to mounted my kali