Run Kali Linux , BackBox and Gentoo Distrubutions Directly from Hard Disk in Ubuntu 14.04 using Grub Menu

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

21 Responses

  1. lilw says:

    I follow this tutorial but failed to see the menu entry in grub2. Checked the grub.cfg and saw the menu but it’s still not appear in grub2 menu
    I’m running on ubuntu 12.04. and it is on the sda3. Actually I have multiple ubuntu version running on my system. sda1 and sda2 is for ubuntu OEM recovery. so here is the look of it:

    sda1 – DELLUTILITY
    sda2 – OS
    sda3 – 12.04 x64 OEM
    sda4 – Extended
    sda5 – swap
    sda6 – 10.04 x64
    sda7 – 10.04 x86
    sda8 – 12.04 x32
    sda9 – 14.04 x32
    sda10 – 14.04 x64
    sda11 – data
    sda12 – 12.04 x64

    the sda3 is the owner of grub2, so I work on this sda3. Also I tried grub-imageboot but failed to boot cause of memdisk not found.

  2. Ankit Singhaniya says:

    can you tell how to make it persistent?

  3. Ankit Singhaniya says:

    I am trying to use BackBox and i have Ubuntu oh hd0, gpt 7
    i tried changing every parameters, but get the following
    error: secure boot forbids to load /boot/grub/…/*.mod (altough secure boot is disabled)
    error: could not load kernel.
    and 2 more

    can you please provide me an entry for 40_custom, and yes my system is UEFI enabled)

  4. Waheed says:

    /dev/sda6 in above input, which automatically means yes i have linux ext4 parition numberd 6. :)

  5. Matei Cezar says:

    @Waheed : Do you even have six partitions on your hard disk? Did you read topic: (hd0,6) or
    hd0,gpt6 are just examples here, it means the 6th partition on first hard disk? Got it?
    Change those numbers with your exact locations? Run fdisk -l to see have a point of view!

  6. Waheed says:

    Removing any hd0,gpt6 like entry worked for me. my ubuntu partition is not visible when running kali linux, but this is i think because of the fact that we are running kali from ubuntu partition. the following entry for gpt drive worked for me

    menuentry ‘Kali Linux 2014 Live’ –class os –class gnu-linux –class gnu –class os –group group_main {
    set isofile=”/live/kali-linux-1.0.7-amd64.iso”

    insmod part_gpt
    insmod ext2
    insmod loopback
    insmod iso9660
    loopback loop $isofile
    search –no-floppy –fs-uuid –set=root YOURUBUNTUDRIVEUUID
    linux (loop)/live/vmlinuz boot=live fromiso=/dev/sda6/$isofile noconfig=sudo username=root hostname=kali
    initrd (loop)/live/initrd.img

    • Ankit Singhaniya says:

      Your details were really helpful. Still I needed to add extra line as:
      set root='(hd0,gpt7)’

      search –no-floppy –fs-uuid –set=root –hint-bios=hd0,gpt7 –hint-efi=hd0,gpt7 –hint-
      baremetal=ahci0,gpt7 e8005837-2f2e-49e1-8a0d-c65728014928

      now BackBox runs fine.

  7. Matei Cezar says:

    Here is a complete entry for Ubuntu 14.04 at six partiton on first GPT disk:

    menuentry “[loopback]ubuntu-14.04-desktop-amd64″ {
    set isofile=”/path_to_iso/ubuntu-14.04-desktop-amd64.iso”
    loopback loop (hd0,6)/$isofile
    linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8
    initrd (loop)/casper/initrd.lz

    The same instructions an apply on Linux Mint Qiana.

    If doesn’t work try this:

    insmod part_gpt
    set root=(hd0,6)
    search –fs-uuid –no-floppy –set=root –hint-bios=hd0,gpt2

  8. Waheed says:

    what will be the input for GPT drives?

  9. vigneswaran says:

    Will this work only for the specified Linux distributions or all distributions ?

  10. Vikri says:

    Thank you for this great article.

    I have a Linux iso “linuxmint-17-dvd-64bit-mate”

    if you have a Custom kernel boot parameters for this.?
    read from your posts, every linux has a different boot parameters.

    Thank you for your attention

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.