newbie0101 |
01-17-2012 06:02 AM |
Debian disappeared after CentOS installation
hello, i have installed windows 7 and debian on my HDD.
today i installed centos along them.
when it comes to boot menu i see only centos and other.
when i choose other it starts booting windows so don't know how to get into debian.
here is my centos grub.conf:
Code:
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-220.2.1.el6.i686)
root (hd0,7)
kernel /boot/vmlinuz-2.6.32-220.2.1.el6.i686 ro root=UUID=b1115e42-0dde-4d09-9112-cf28fbdae89d rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 printk.time=1 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM crashkernel=auto
initrd /boot/initramfs-2.6.32-220.2.1.el6.i686.img
title CentOS (2.6.32-220.el6.i686)
root (hd0,7)
kernel /boot/vmlinuz-2.6.32-220.el6.i686 ro root=UUID=b1115e42-0dde-4d09-9112-cf28fbdae89d rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 printk.time=1 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /boot/initramfs-2.6.32-220.el6.i686.img
title Other
rootnoverify (hd0,1)
i tried to add this lines to that conf:
Code:
title Debian
root (hd0,7)
kernel /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d966a81e-611f-45c4-9006-c6a3c01eac6e ro printk.time=1
initrd /boot/initrd.img-2.6.32-5-amd64
btw this lines i copied from debian grub.conf
when it comes to boot menu and i choose Debian it shows some error 5.
i see that centos is also at hd0,7.
yet, i'll put my debian grub.conf:
Code:
### 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,msdos7)'
search --no-floppy --fs-uuid --set d966a81e-611f-45c4-9006-c6a3c01eac6e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set d966a81e-611f-45c4-9006-c6a3c01eac6e
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set d966a81e-611f-45c4-9006-c6a3c01eac6e
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
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, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set d966a81e-611f-45c4-9006-c6a3c01eac6e
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d966a81e-611f-45c4-9006-c6a3c01eac6e ro printk.time=1
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set d966a81e-611f-45c4-9006-c6a3c01eac6e
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d966a81e-611f-45c4-9006-c6a3c01eac6e ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-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 ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a27868a4786878c5
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set bc1e8f171e8eca3a
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set 66501bd0501ba5b9
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
can you give me some advice how to boot debian please ?
or there is only one way to reinstall debian ?
thanks
|