triple boot 2 linux : PC BSD, Mandriva, and Mint 11
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If Mint works and you are using its bootloader, post the output of /boot/grub/grub.cfg, at least the part referring to Mandriva.
What partition do you believe Mandriva is on?
You could also get much more detailed information by googling bootinfoscript, going to the site downloading and running the script. Read the instructions available first and post the output here if you need to.
Generating grub.cfg ...
Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found unknown Linux distribution on /dev/sda1
Found Mandriva Linux 2011.0 (2011.0) on /dev/sda6
done
I think Mandriva is on 6, based on the output, correct?
Also, I was recently able to boot into BSD from GAG on a cdrom but not into Mandriva.
File system: ufs
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
File system: ext4
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.97) is installed in the boot sector
of sda8 and looks at sector 342066944 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sda. Stage2 looks on partition #8
for /boot/grub/menu.lst.
Operating System: Linux Mint 11 Katya
Boot files: /boot/grub/menu.lst /boot/grub/grub.cfg
/boot/burg/burg.cfg /etc/fstab /boot/grub/core.img
/boot/burg/core.img
--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=107be7d3-f207-402e-9a36-3dee12ebf4d8
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Linux Mint 11 Katya, kernel 2.6.38-8-generic
uuid 107be7d3-f207-402e-9a36-3dee12ebf4d8
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro quiet splash
initrd /boot/initrd.img-2.6.38-8-generic
quiet
title Linux Mint 11 Katya, kernel 2.6.38-8-generic (recovery mode)
uuid 107be7d3-f207-402e-9a36-3dee12ebf4d8
kernel /boot/vmlinuz-2.6.38-8-generic root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro single
initrd /boot/initrd.img-2.6.38-8-generic
title Chainload into GRUB 2
root 107be7d3-f207-402e-9a36-3dee12ebf4d8
kernel /boot/grub/core.img
title Linux Mint 11 Katya, memtest86+
uuid 107be7d3-f207-402e-9a36-3dee12ebf4d8
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
#
# 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
set have_grubenv=true
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
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/06_mint_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
insmod png
if background_image /boot/grub/linuxmint.png ; then
set color_normal=white/black
set color_highlight=white/light-gray
else
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 11, 2.6.38-8-generic (/dev/sda8)' --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Linux Mint 11, 2.6.38-8-generic (/dev/sda8) -- recovery mode' --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 107be7d3-f207-402e-9a36-3dee12ebf4d8
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober_proxy ###
menuentry "linux (on /dev/sda5)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot logo.nologo quiet resume=UUID=12ce4fc1-e773-4aba-956a-c85d592240e6 splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
}
menuentry "linux-nonfb (on /dev/sda5)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot resume=UUID=12ce4fc1-e773-4aba-956a-c85d592240e6
initrd (hd0,5)/boot/initrd.img
}
menuentry "failsafe (on /dev/sda5)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot failsafe
initrd (hd0,5)/boot/initrd.img
}
### END /etc/grub.d/30_os-prober_proxy ###
### 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 ###
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/burg
#
### BEGIN /etc/burg.d/00_header ###
set theme_name=burg
if [ -s $prefix/burgenv ]; 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
}
set gfxmode=VGA1
function select_menu {
if menu_popup -t template_popup theme_menu ; then
free_config template_popup template_subitem menu class screen
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
save_env theme_name
menu_refresh
fi
}
function toggle_fold {
if test -z $theme_fold ; then
set theme_fold=1
else
set theme_fold=
fi
save_env theme_fold
menu_refresh
}
function select_resolution {
if menu_popup -t template_popup resolution_menu ; then
menu_reload_mode
fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
insmod coreui
menu_region.text
load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
load_string '+theme_menu { -autumn { command="set theme_name=autumn" }}'
load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
load_string '+theme_menu { -homer { command="set theme_name=homer" }}'
load_string '+theme_menu { -minimal_by_sir { command="set theme_name=minimal_by_sir" }}'
load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
load_config ${prefix}/themes/conf.d/10_hotkey
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
insmod vbe
insmod png
insmod jpeg
set gfxfont="Unifont Regular 16"
menu_region.gfx
vmenu resolution_menu
controller.ext
fi
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 107be7d3-f207-402e-9a36-3dee12ebf4d8
set locale_dir=($root)/boot/burg/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/burg.d/00_header ###
### BEGIN /etc/burg.d/10_linux ###
menuentry 'LinuxMint GNU/Linux, with Linux 2.6.38-8-generic' --class linuxmint --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 107be7d3-f207-402e-9a36-3dee12ebf4d8
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
### END /etc/burg.d/10_linux ###
### BEGIN /etc/burg.d/30_os-prober ###
menuentry "linux (on /dev/sda6)" --class mandrake --class os --group group_/dev/sda6 {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot logo.nologo quiet resume=UUID=12ce4fc1-e773-4aba-956a-c85d592240e6 splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
}
menuentry "linux-nonfb (on /dev/sda6)" --class mandrake --class os --group group_/dev/sda6 {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot resume=UUID=12ce4fc1-e773-4aba-956a-c85d592240e6
initrd (hd0,5)/boot/initrd.img
}
menuentry "failsafe (on /dev/sda6)" --class mandrake --class os --group group_/dev/sda6 {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 20066e93-b9d5-42fc-bf7a-ed12222bf158
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=20066e93-b9d5-42fc-bf7a-ed12222bf158 nokmsboot failsafe
initrd (hd0,5)/boot/initrd.img
}
### END /etc/burg.d/30_os-prober ###
### BEGIN /etc/burg.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/burg.d/40_custom ###
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda8 during installation
UUID=107be7d3-f207-402e-9a36-3dee12ebf4d8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=2fdc0d73-501a-46ab-ba00-4a72625be127 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda8: Location of files loaded by Grub: ====================
Wow! What a mess. I've seen worse though.
You have three different bootloaders. Grub Legacy, Grub2 (Mint default) and Burg and boot files for all three are on sda8, your Mint partition. You have Grub Legacy in the master boot record pointing to a menu.lst file on sda8 which has an entry for Mint but not for BSD or Mandriva (The BSD thing will probably need to be a separate thread?). You also have a chainloader entry in the Mint menu.lst file which chainloads to the grub.cfg file for Mint on sda8 which has an entry for Mandriva. You say this shows but doesn't boot? If you compare your Mint entry in its grub.cfg file to the Mandriva entry you will note that there is a uuid entry three times for Mandriva and twice for Mint and the third entry for Mandriva is for the swap partition. You could remove the swap uuid but I don't know if that will help.
My suggestion and what I think would be the fastest solution, reinstall Grub2. You can get info at the site below and it is also a good tutorial on Grub2. Section 4.G explains how to reinstall Grub2 to the master boot record while booted into Mint.
If that doesn't go well, the next best solution given the state of things would be to install Mandriva to the same partition and install its Grub Legacy bootloader to its / (root) partition. Then install Mint and install Grub to the master boot record. If you cannot boot Mandriva then, run sudo update-grub from a terminal in Mint. This will clean up the system of all the bootloader files also.
Haha! Quite a mess I've made, eh? It's a wonder it works.
Quote:
Originally Posted by yancek
My suggestion and what I think would be the fastest solution, reinstall Grub2. You can get info at the site below and it is also a good tutorial on Grub2. Section 4.G explains how to reinstall Grub2 to the master boot record while booted into Mint.
If that doesn't go well, the next best solution given the state of things would be to install Mandriva to the same partition and install its Grub Legacy bootloader to its / (root) partition. Then install Mint and install Grub to the master boot record. If you cannot boot Mandriva then, run sudo update-grub from a terminal in Mint. This will clean up the system of all the bootloader files also.
I'll try some of the solutions you outlined above. Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.