ubuntuusers.de

rEFInd -> Dual-Boot: Ubuntu und Mac OS -> Boot-Menü

Status: Ungelöst | Ubuntu-Version: Ubuntu 12.04 (Precise Pangolin)
Antworten |

CarpeVentum

Anmeldungsdatum:
11. Februar 2014

Beiträge: 25

Hallo Zusammen,

zum Dual-Boot nutze ich den rEFInd in aktueller Version vom 09.12.2014 (http://sourceforge.net/projects/refind/) Nachdem ich im Ubuntu ein Update von 12.04 auf 12.04.1 sowie einen Kernel-Update durchgeführt habe, erscheint ein neuer Eintrag mit Verweis auf die neue Kernel-Version - der Eintrag mit dem Verweis auf die vorherige Version wird weiter angezeigt. Dazu wird mir neben dem "Mac OS" sowie einem "Boot im EFI" ein "Linux"-OS angezeigt, insg. also 5 Einträge für 2 OS.

Ist dies so korrekt bzw. wie ich dies korrigieren oder anpassen?

CarpeVentum

(Themenstarter)

Anmeldungsdatum:
11. Februar 2014

Beiträge: 25

Anbei weitere Informationen zum System:

ls /boot/vmlinuz*
/boot/vmlinuz-3.13.0-34-generic  /boot/vmlinuz-3.13.0-44-generic

uname -r
3.13.0-44-generic

Wenn möglich würde ich den Kernel 3.13.0-34-generic auch entfernen - Kann es noch bestehende Abhängigkeiten zu einem vorherigen Kernel geben und wie kann ich dies prüfen?

Partitionierung:

sudo parted -l 
Modell: ATA WDC WD10JPVT-00M (scsi)
Festplatte  /dev/sda:  1000GB
Sektorgröße (logisch/physisch): 512B/4096B
Partitionstabelle: gpt

Nummer  Anfang  Ende    Größe   Dateisystem  Name                  Flags
 1      20,5kB  210MB   210MB   fat32        EFI System Partition  boot
 2      210MB   849GB   849GB   hfs+         Mac OS
 3      850GB   946GB   96,0GB  ext4                               msftdata
 4      946GB   1000GB  54,0GB

Installierte Grub-Versionen:

dpkg --list | grep grub 
ii  grub-common                                           2.02~beta2-9ubuntu1                                 amd64        GRand Unified Bootloader (common files)
ii  grub-gfxpayload-lists                                 0.6                                                 amd64        GRUB gfxpayload blacklist
ii  grub-pc                                               2.02~beta2-9ubuntu1                                 amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                                           2.02~beta2-9ubuntu1                                 amd64        GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common                                          2.02~beta2-9ubuntu1                                 amd64        GRand Unified Bootloader (common files for version 2)

grub-config:

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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
else
  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=2
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=2
  fi
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
if background_color 44,0,30,0; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
	else
	  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
	fi
	linux	/boot/vmlinuz-3.13.0-44-generic root=UUID=26e9c5aa-8207-45b4-acdf-01530fe720fe ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-44-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
	menuentry 'Ubuntu, mit Linux 3.13.0-44-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-advanced-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
		else
		  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
		fi
		echo	'Linux 3.13.0-44-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-44-generic root=UUID=26e9c5aa-8207-45b4-acdf-01530fe720fe ro  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-44-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-44-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-44-generic-recovery-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
		recordfail
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
		else
		  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
		fi
		echo	'Linux 3.13.0-44-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-44-generic root=UUID=26e9c5aa-8207-45b4-acdf-01530fe720fe ro recovery nomodeset 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-44-generic
	}
	menuentry 'Ubuntu, mit Linux 3.13.0-34-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-34-generic-advanced-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
		else
		  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
		fi
		echo	'Linux 3.13.0-34-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-34-generic root=UUID=26e9c5aa-8207-45b4-acdf-01530fe720fe ro  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-34-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-34-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-34-generic-recovery-26e9c5aa-8207-45b4-acdf-01530fe720fe' {
		recordfail
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  26e9c5aa-8207-45b4-acdf-01530fe720fe
		else
		  search --no-floppy --fs-uuid --set=root 26e9c5aa-8207-45b4-acdf-01530fe720fe
		fi
		echo	'Linux 3.13.0-34-generic wird geladen …'
		linux	/boot/vmlinuz-3.13.0-34-generic root=UUID=26e9c5aa-8207-45b4-acdf-01530fe720fe ro recovery nomodeset 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.13.0-34-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Mac OS X (32-bit) (auf /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-32-2912b8ca2c53ff09'  {
	insmod part_gpt
	insmod hfsplus
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  2912b8ca2c53ff09
	else
	  search --no-floppy --fs-uuid --set=root 2912b8ca2c53ff09
	fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid 2912b8ca2c53ff09 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
           else
              xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry 'Mac OS X (64-bit) (auf /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-64-2912b8ca2c53ff09'  {
	insmod part_gpt
	insmod hfsplus
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  2912b8ca2c53ff09
	else
	  search --no-floppy --fs-uuid --set=root 2912b8ca2c53ff09
	fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid 2912b8ca2c53ff09 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
           else
              xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

die refit.conf von der Mac OS Partition:

#
# refit.conf
# Configuration file for the rEFIt boot menu
#

# Timeout in seconds for the main menu screen. Setting the timeout to 0
# disables automatic booting (i.e., no timeout).
#
timeout 20

# Disable menu options for increased security. These are intended for a lab
# environment where the administrator doesn't want users to mess with the
# operating system. List the names for the options you want to hide from
# the boot menu. Currently supported:
#  shell       - remove the EFI shell
#  tools       - remove all EFI tools (shell and gptsync)
#  optical     - no booting from optical drives
#  external    - no booting from external disks or USB flash drives
#  internal    - no booting from internal disks; this setting is not
#                 recommended because it locks you out of all operating
#                 systems installed on the internal hard disks.
#  singleuser  - remove the submenu options to boot Mac OS X in single-user
#                 or verbose modes
#  hwtest      - remove the submenu option to run Apple Hardware Test
#  all         - all of the above, except for 'internal'
#
#disable external optical shell singleuser
#disable all

# Note: The 'disableopticalboot' and 'disableexternalboot' options from
# Charles Ahn's patch are also supported for compatibility. They are
# equivalent to 'disable optical' and 'disable external', respectively.

# Use a custom title banner instead of the rEFIt icon and name. The file
# path is relative to the directory where refit.efi is located. The color
# in the top left corner of the image is used as the background color
# for the menu screens. Currently uncompressed BMP images with color
# depths of 24, 8, 4 or 1 bits are supported.
#
#banner hostname.bmp

# Custom images for the selection background. There is a big one (144 x 144)
# for the OS icons, and a small one (64 x 64) for the function icons in the
# second row. If only a small image is given, that one is also used for
# the big icons by stretching it in the middle. If only a big one is given,
# the built-in default will be used for the small icons.
#
# Like the banner option above, these options take a filename of
# an uncompressed BMP image file.
#
#selection_big   selection-big.bmp
#selection_small selection-small.bmp

# Hide the volume badge icons in the graphical main menu. There are three
# settings:
#  none      - show all volume badges (default)
#  internal  - hide badges on internal disk volumes only, allowing you to
#              distinguish CDs and occasionally connected external disks
#  all       - never show volume badges (not recommended)
#
#hidebadges internal

# Hide various user interface elements. Here you can list the names of
# interface elements to hide. Currently supported:
#  banner    - the rEFIt title banner
#  shell     - the EFI shell icon
#  tools     - all EFI tools (shell and gptsync)
#  funcs     - built-in functions (about, restart)
#    ('tools' and 'funcs' together hide the complete second row of icons.)
#  label     - text label in the menu
#  hdbadges  - volume badges for internal disk volumes (same as
#               'hidebadges internal')
#  badges    - all volume badges (same as 'hidebadges all'); this setting
#               is not recommended because it won't let you distinguish
#               installed OSes and bootable CDs/DVDs.
#  all       - all of the above, except for 'badges'
#
# Note: The 'shell' and 'tools' options are equivalent to the 'disable'
# options with the same names.
#
#hideui tools funcs hdbadges
#hideui all

# Use text mode only. When enabled, this option forces rEFIt into text mode.
#
#textonly

# List legacy options first. When enabled, legacy BIOS based boot options
# (e.g. Windows, Linux via LILO or GRUB) will be listed first. This is
# intended as a quick fix to change the default boot choice until full
# configurability arrives.
#
#legacyfirst

# Set the default menu selection.  The available arguments match the
# keyboard accelerators available within rEFIt.  You may select the default
# loader using a one-character abbreviation for the OS name ("M" = Mac OS X,
# "L" = Linux, "W" = Windows).  You may also specify a digit between 1 and
# 9, in which case the Nth loader in the menu will be the default.  You can
# also select a rEFIt tool entry ("S" = EFI Shell, "P" = Partitioning Tool,
# "U" = shutdown).  This is intended as a quick fix to change the default
# boot choice until full configurability arrives.
#
#default_selection L

# EOF
Antworten |