В общем у меня стоит дебиан 6.06 и фряха 9. Инструкции о том, как добавить фряху 8.2 я находил, но по ним 9я фряха не добавляется в grub2. Вот мой список разделов на жестком диске:
~$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd2c16fe5
Device Boot Start End Blocks Id System
/dev/sda1 1 2611 20971503 a5 FreeBSD
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 2611 2642 242688 83 Linux
/dev/sda3 13417 38914 204798976 7 HPFS/NTFS
/dev/sda4 2642 13417 86554625 5 Extended
/dev/sda5 7580 7823 1951744 83 Linux
/dev/sda6 7823 8066 1951744 82 Linux swap / Solaris
/dev/sda7 8067 13417 42980352 83 Linux
/dev/sda8 2642 5073 19529728 83 Linux
Partition table entries are not in disk order
Суть вопроса в следующем: Как добавить в Grub2 FreeBSD с sda1 ?
Прикладываю конфиг груба
# cat /boot/grub/grub.cfg
#
# 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 {
}
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### 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 "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda8)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 090024fe-6b50-4f4b-8bc8-ebcb8edeadfc
linux /vmlinuz-2.6.32-5-686 root=UUID=dbc83da8-a409-412b-81f5-643e3296213d ro quiet
initrd /initrd.img-2.6.32-5-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda8)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 090024fe-6b50-4f4b-8bc8-ebcb8edeadfc
linux /vmlinuz-2.6.32-5-686 root=UUID=dbc83da8-a409-412b-81f5-643e3296213d ro single
initrd /initrd.img-2.6.32-5-686
}
### 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.
menuentry "FreeBSD 9.0" {
insmod ufs2
set root=(hd0,1,a)
#chainloader +1
kfreebsd /boot/loader
}
### 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 ###