PDA

View Full Version : dual boot kali with centos



semofa
2013-07-03, 20:41
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 ....

daedalus1776
2013-07-03, 23:01
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.

schwermie
2013-07-04, 17:31
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!

maverik35
2013-07-05, 20:22
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

vibidoo
2014-10-21, 08:02
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 ?

vibidoo
2014-10-21, 18:31
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 ###