Ask Your Question
0

dual boot fedora with kali

asked 2017-11-06 12:57:58 -0500

daliharic gravatar image

Im planning on running a dual boot with fedora as my main os with kali Linux as my trial os. I am willing to do a clean install of both. but this question is what do I need to change in the settings to get it to format the whole drive but set up a separate partition for Kali? and when running a dual boot like this with fedora would it automatically start with fedora or would a screen pop up allowing me to choose fedora or kali? Is there something that I could change in the settings so I could get a screen to give me the choice so I wont have to open up the boot menu every time?

edit retag flag offensive close merge delete

Comments

If you use Kali as a trial OS, why not just run it in a VM or use live-usb? Or better yet, if you're interested in hacking/security works, why not give a try to Fedora Security Spin (or just groupinstall all the tools from it to your main OS)?

bombandealer gravatar imagebombandealer ( 2017-11-10 02:13:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-07 04:44:53 -0500

jjmonrod gravatar image

This question is very broad and it is mostly up to you to decide what to do. The first step is to set up the partitions as you want. You can do this directly with the Fedora installer, just choose Custom partitioning. The number of partitions and sizes depend on how you want to boot.

If you want to boot using UEFI (on modern systems this is what you want) then you need a small partition (mine is 100 MB) at the beginning of the disk, mounted at /boot/efi/. Then one partition for Fedora and one partition for Kali. And finally a swap partition is recommended. The mount points would look like this:

  • sda1: /boot/efi/ (this is the EFI boot partition where the bootloaders are installed)
  • sda2: / (this will be your Fedora installation)
  • sda3: (not mounted) (this will later be your Kali installation)
  • sda4: swap

If you want to boot using standard BIOS (on older systems) then you do not need the EFI partition. I think Fedora will install the appropriate bootloader automatically depending on your mount points and also the way you booted your live USB (either UEFI or BIOS again). For me it is very important to install Fedora when connected to the internet with updates enabled, because in this way the installer will detect and install GRUB automatically depending on the specifications of your system (UEFI or BIOS).

After installing Fedora, you can install Kali on the separate partition you already prepared (sda3). When installing Kali just set the mount points for / at sda3, and for swap. Do not mount sda2. Try not to mount /boot/efi because this could overwrite your bootloader. If you have to mount it, then do it and proceed, but keep in mind you have to manually fix the bootloader in the next step:

Finally you need to boot to Fedora and run grub2-mkconfig to update the bootloader. Depending on how you installed Kali, this can be tricky and maybe you have to do it manually from the GRUB command line. For doing this you hit 'c' when GRUB is prompted and then set up the following variables (replace kernel ver. with the installed kernel version, you can use Tab for autocomplete)

set root=(hd0,gpt2)
linux /boot/vmlinuz-(kernel ver.) root=/dev/sda2
initrd /boot/initrd-(kernel ver.)
boot

Now you should be on Fedora. From Fedora, the command for reconfiguring GRUB in EFI mode is

grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

And this is mostly it. Read some more guides, I'm sure there are blogs explaining this in detail. Especially UEFI vs BIOS booting. Check this search: https://www.google.de/search?q=UEFI+v...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-11-06 12:57:58 -0500

Seen: 1,081 times

Last updated: Nov 07 '17