View previous topic :: View next topic |
Author |
Message |
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
Posted: Sun Jan 06, 2013 9:39 am Post subject: [SOLVED]Grub 2 to grub 1 configuration. |
|
|
Hello,
I'm using gentoo, windows and backtrack. My sda partition is sda1 = boot, sda2= gentoo, sda3= windows and sda6 = backtrack. First I installed gentoo, second windows and the last was backtrack. The problem is, I dont want to use grub.cfg from backtrack so I do not installed grub 2 on my sda from backtrack installation, I'm using grub legacy. I want to setup grub.conf from my partition but only gentoo and windows works and backtrack no. When I click to enter on backtrack at boot the error is files not found.
This is my grub.conf that I'm trying to use...
Code: | # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-3.6.11-gentoo root=/dev/sda2
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
title Windows 7 Ultimate
rootnoverify (hd0,2)
makeactive
chainloader +1
title BackTrack 5-r3
root(hd0,5)
kernel /boot/vmlinuz-3.2.6 root=/dev/sda6
initrd /boot/initrd.img-3.2.6 |
And this is the grub.cfg that backtrack give to me....
Code: | #
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 3.2.6' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 5b0cc55a-7312-451f-b9cb-27ebe8720513
linux /boot/vmlinuz-3.2.6 root=UUID=5b0cc55a-7312-451f-b9cb-27ebe8720513 ro text splash vga=791
initrd /boot/initrd.img-3.2.6
}
menuentry 'Ubuntu, with Linux 3.2.6 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 5b0cc55a-7312-451f-b9cb-27ebe8720513
echo 'Loading Linux 3.2.6 ...'
linux /boot/vmlinuz-3.2.6 root=UUID=5b0cc55a-7312-451f-b9cb-27ebe8720513 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.6
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 5b0cc55a-7312-451f-b9cb-27ebe8720513
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 5b0cc55a-7312-451f-b9cb-27ebe8720513
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Gentoo Linux 3.6.11 (on /dev/sda2)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a78709d5-38f3-4656-b999-a8f873f051f2
linux /boot/kernel-3.6.11-gentoo root=/dev/sda2
}
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 781673C716738542
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 ###
|
How can I use grub.cfg information and pass it to grub.conf? The boot paste from backtrack is:
# ls /media/boot/
config-3.2.6 initrdf.img-3.2.6 initrds.img-3.2.6 System.map-3.2.6
grub initrd.img-3.2.6 memtest86+.bin vmlinuz-3.2.6
Last edited by caaarlos on Mon Jan 07, 2013 1:24 pm; edited 1 time in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
caaarlos Apprentice
Joined: 27 Apr 2012 Posts: 155
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|