Results 1 to 6 of 6

Thread: dual boot kali with centos

  1. #1
    Join Date
    2013-Jul
    Posts
    1

    dual boot kali with centos

    hi everybody
    i've installed centos on my laptop.when i install kali on it, i can not boot to centos and my grub only show kali.i have searched alot.i really don't know what i have to do.
    please help me ....

  2. #2
    You'll need to write a custom GRUB menu if OS_Detect isn't working.
    see this link: https://help.ubuntu.com/community/Grub2/CustomMenus
    Also see if anything posted here helps: http://ubuntuforums.org/showthread.php?t=1476603&page=2
    Don't worry about it being all about Ubuntu and CentOS, GRUB is GRUB. You just need to figure out how to get the right CentOS entry in your custom GRUB menu.
    Good luck, and keep us posted on how you go.
    Any additional questions feel free to ask.

  3. #3
    Join Date
    2013-Jun
    Location
    Lanaken, Belgium
    Posts
    43
    If you know the partitions where Centos is installed. It shouldn't be to hard to fix. Otherwise boot Kali and run fdisk, you should be able to view the partition table. Be aware, don't change the table!

  4. #4
    Join Date
    2013-Mar
    Posts
    354
    Quote Originally Posted by semofa View Post
    hi everybody
    i've installed centos on my laptop.when i install kali on it, i can not boot to centos and my grub only show kali.i have searched alot.i really don't know what i have to do.
    please help me ....
    You need to execute os-prober, then run update-grub

    That is pretty basic comming from someone using linux..update-grub will use templates in /etc/grub.d and /etc/default/grub and create a new grub.cfg.

    The os-prober is a file which locates partitions in HDD or external devices. The os-prober template is under /etc/grub.d

    Hope it helps. Try reading and accesing the templates under /etc/grub.d and the grub file under /etc.default/grub

  5. #5
    Join Date
    2014-Oct
    Posts
    2
    Hello All

    I am new in Kali, I just installed it yesterday night .

    I have the same issue than Semofa , my previous os is a new gentoo.
    Actually I am at work so I will work on Maverik35's advise at the end of the day.

    By the way, yesterday I did a :
    Update grub
    he found my gentoo on /dev/sda3
    But at the reboot he did not give me the gentoo's choice on the menu.

    So I just have to edit and work around grub.cfg ?
    right ?

  6. #6
    Join Date
    2014-Oct
    Posts
    2
    So I did
    os-prober
    then update-grub

    Generating grub.cfg ...
    Found background image: /usr/share/images/desktop-base/desktop-grub.png
    Found Linux image: /boot/vmlinuz-3.14-kalil-amd64
    Found initrd image: /boot/initrd.img-3.14-kalil-amd64
    No volume groups found
    Found Gentoo Base System release 2.2 on /dev/sda3
    Done

    But no Gentoo choice on boot
    my grub.cfg did not update
    here my grub.conf

    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi

    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    }

    function load_video {
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    }

    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root d2805c26-a0c0-49b4-93b9-dfa87ef15a4e
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=640x480
    load_video
    insmod gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root d2805c26-a0c0-49b4-93b9-dfa87ef15a4e
    set locale_dir=($root)/boot/grub/locale
    set lang=fr_FR
    insmod gettext
    fi
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/05_debian_theme ###
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root d2805c26-a0c0-49b4-93b9-dfa87ef15a4e
    insmod png
    if background_image /usr/share/images/desktop-base/kali-grub.png; then
    set color_normal=white/black
    set color_highlight=black/white
    else
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
    fi
    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Debian GNU/Linux, avec Linux 3.14-kali1-amd64' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root d2805c26-a0c0-49b4-93b9-dfa87ef15a4e
    echo 'Chargement de Linux 3.14-kali1-amd64 ...'
    linux /boot/vmlinuz-3.14-kali1-amd64 root=UUID=d2805c26-a0c0-49b4-93b9-dfa87ef15a4e ro initrd=/install/initrd.gz quiet
    echo 'Chargement du disque mémoire initial ...'
    initrd /boot/initrd.img-3.14-kali1-amd64
    }
    menuentry 'Debian GNU/Linux, avec Linux 3.14-kali1-amd64 (mode de dépannage)' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root d2805c26-a0c0-49b4-93b9-dfa87ef15a4e
    echo 'Chargement de Linux 3.14-kali1-amd64 ...'
    linux /boot/vmlinuz-3.14-kali1-amd64 root=UUID=d2805c26-a0c0-49b4-93b9-dfa87ef15a4e ro single initrd=/install/initrd.gz
    echo 'Chargement du disque mémoire initial ...'
    initrd /boot/initrd.img-3.14-kali1-amd64
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###

Similar Threads

  1. Replies: 1
    Last Post: 2016-09-03, 12:21
  2. Replies: 8
    Last Post: 2016-03-21, 05:24
  3. Replies: 4
    Last Post: 2013-07-05, 18:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •