ubuntuusers.de

Wie Windows 7 in Grub hinzufügen?

Status: Ungelöst | Ubuntu-Version: Ubuntu 14.04 (Trusty Tahr)
Antworten |

luigi17

Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

In Grub ist bisher Windows als Dualboot-Option nicht gelistet. Ich hab versucht, es nach der Anleitung in diesem thread zu ändern. Zwar erscheint jetzt Windows 7, allerdings mit Fehlermeldung, es läßt sich nicht booten.

Hier sind die Infos, die auch im erwähnten thread gefragt wurden:

rainer@rainer-pc:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
rainer@rainer-pc:~$ 
rainer@rainer-pc:~$ 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
  # GRUB lacks write support for btrfs, so recordfail support is disabled.
}
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_msdos
insmod btrfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
else
  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
fi
    font="/@/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=640x480
  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=3
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=3
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=3
  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-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod btrfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
	else
	  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
	fi
	linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
	initrd	/@/boot/initrd.img-3.16.0-33-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
	menuentry 'Ubuntu, mit Linux 3.16.0-33-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.16.0-33-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.16.0-33-generic
	}
	menuentry 'Ubuntu, with Linux 3.16.0-33-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-recovery-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.16.0-33-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro recovery nomodeset rootflags=subvol=@ 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.16.0-33-generic
	}
	menuentry 'Ubuntu, mit Linux 3.13.0-48-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.13.0-48-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.13.0-48-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.13.0-48-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-48-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.13.0-48-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.13.0-48-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro recovery nomodeset rootflags=subvol=@ 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.13.0-48-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/30_os-prober ###

### 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 ###
rainer@rainer-pc:~$ sudo fdisk -l
[sudo] password for rainer: 

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder, zusammen 488397168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x00092fe5

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *        2048    97656831    48827392   83  Linux
/dev/sda2        97658878   308592639   105466881    5  Erweiterte
/dev/sda3       308592640   488396799    89902080    7  HPFS/NTFS/exFAT
/dev/sda5        97658880   114407423     8374272   82  Linux Swap / Solaris
/dev/sda6       114409472   308592639    97091584   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Festplattenidentifikation: 0x000eabcf

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1            2048    82051071    41024512   83  Linux
/dev/sdb2        82051072  1953523711   935736320    5  Erweiterte
/dev/sdb5   *    82053120  1953523711   935735296   82  Linux Swap / Solaris
rainer@rainer-pc:~$ 

sda3 ist die Windows-Partition.

rainer@rainer-pc:~$ sudo blkid
[sudo] password for rainer: 
/dev/sda1: UUID="6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa" UUID_SUB="27a81c80-0ed1-4998-9b88-f0f31e890fb1" TYPE="btrfs" 
/dev/sda3: UUID="32FDB5DB7B630344" TYPE="ntfs" 
/dev/sda5: UUID="515061c6-2837-4561-b260-48fee924a3ee" TYPE="swap" 
/dev/sda6: UUID="06c74dbe-1e43-43e8-9515-e950445320f9" UUID_SUB="1bb7aeb7-93ed-4cf7-905f-a2ae8b65ba13" TYPE="btrfs" 
/dev/sdb1: LABEL="OS2" UUID="a7936c34-d32f-442a-8126-2455e04b6989" TYPE="ext4" 
/dev/sdb5: LABEL="Dateien" UUID="2bc40685-23c1-4f4d-a943-4e36d754e03a" TYPE="ext4" 
rainer@rainer-pc:~$ 

Als script habe ich das nachfolgende 41_Win7 ausführbar bemacht und ins entspr. Verzeichnis kopiert, danach ein update-grub gemacht:

#! /bin/sh -e
echo "Adding Windows 7 entry" >&2
 cat << EOF
menuentry "Windows 7" {
        insmod chain
	insmod ntfs
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 32FDB5DB7B630344
	drivemap -s (hd0) \${root}
	chainloader +1
}
EOF

Es hat sich nach sudo update-grub nicht in grub.cfg eingetragen. Ist das OK? Allerdings gab es dann auch keinen Windows-Eintrag. Deshalb habe ich händisch

### BEGIN /etc/grub.d/41_7 ###
menuentry "Windows 7" {
        insmod chain
	insmod ntfs
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 32FDB5DB7B630344
	drivemap -s (hd0) \${root}
	chainloader +1
}
### END /etc/grub.d/41_7 ###

in grub.cfg eingetragen. Daraufhin erscheint Windows 7 wie gewünscht an 2. Stelle, läßt sich aber nicht booten. Ich gehe davon aus, daß hd0,3 sowie die UUID richtig eingesetzt ist. Oder?

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Nachtrag: Nach der bisherigen Aktion war plötzlich der Windows-Bootloader am Start, zwar mit Eintrag "Ubuntu" (das hatte ich über einen anderen Lösungsweg probiert), aber auch damit war die 2. Boot-Option nicht praktikabel.

Um das zu reparieren, hat mir bisher lediglich das Tool Boot-Repair helfen können. Beim letzten Repair habe ich zusätzlich für sda3 boot-flag gesetzt.

Daraufhin ist Grub am Start, auch mit Windows 7 aufgelistet, aber immer noch wird Windows nicht gestartet.

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11316

Hej luigi17,

luigi17 schrieb:

Nachtrag: Nach der bisherigen Aktion war plötzlich der Windows-Bootloader am Start

und? bootet Windows?

...aber auch damit war die 2. Boot-Option nicht praktikabel.

verstehe nur Bahnhof, was ist die "2. Boot-Option"?

...für sda3 boot-flag gesetzt.

Daraufhin ist Grub am Start

grub/Linux schert sich herzlich wenig um ein boot-flag (irgenwo auch immer)

aber immer noch wird Windows nicht gestartet

zwar ist der menuentry in Deiner /etc/grub.d/41_7 falsch, wenn, dann muß es

...set root=(hd0,3)
...--set=root 32FDB5DB7B630344

heißen, aber Du solltest einfach mal im grub-menue in die grub Konsole mit einem C wechseln, dort dann der Reihe nach

set root=(hd0,3)

ggf. noch ein

drivemap -s (hd0) \${root

sollte aber nicht erforderlich sein, Windows kann mittlerweile von jeder primären Partition booten, und dann

chainloader +1

eingeben, gefolgt von einem

boot

+ , wenn Windows dann nicht bootet, muß zunächst mit der Windows DVD dessen Bootfähigkeit und danach die von grub wieder hergestellt werden.

Gruß black tencate

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Ja - inzwischen hab ich rausgefunden, daß Windows nicht booten kann, weil kein funktionierendes System erkannt wird. Reparatur ist bisher nicht gelungen. Es wird nach einer Datei Typ "Systeminformationen" gefragt, allerdings weiß ich nicht, wo ich sie finde. Noch nicht...

Ich zögere sehr, Windows einfach nochmal zu installieren, da ich gestern 7 Stunden damit zugebracht habe, danach Ubuntu zu starten. Hab zig Anleitungen gelesen, manche befolgt, wahrscheinlich hat das Tool Boot-Repair auch nicht nur gutes geleistet, ebenso das Windows-Tool EasyBCD.

Es gibt noch die Möglichkeit, Windows zu löschen und neu auf die andere interne Festplatte zu installieren. Ist keine SSD, sondern eine schnelle HDD, aber ich nutze Windows sowieso nur für ganz spezifische Fälle, wo es darauf nicht so ankommt.

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Ich habe inzwischen Windows7 auf die andere HDD installiert, danach vergeblich mit SuperGrub2 Ubuntu gestartet, danach erfolgreich mit Live-USB-Ubuntu + Boot-Repair Ubuntu gestartet.

Danach habe ich die alte Windows-Installation mit GParted gelöscht und formatiert für Linux (vielleicht demnächst Kubuntu).

Schließlich Grub angepaßt. Leider ließ sich weiterhin Windows nicht booten, obwohl es in Grub verzeichnet ist. Windows wird wiederum nicht erkannt, wenn ich von der Installations-DVD reparieren will.

Puuhhh! Ist das anstrengend und frustig. Seit ca. 20h bin ich nur damit beschäftigt, ein funktionierendes Dualboot zu bekommen. Wenn es nicht ebenso zeitaufwendig wäre, Ubuntu noch einmal neu zu installieren, dann wäre das die Option der Wahl.

Aber irgendwie müßte es doch gehen, ohne Windows zu zerschießen!

Weiß jemand Hilfe?

black_tencate

Avatar von black_tencate

Anmeldungsdatum:
27. März 2007

Beiträge: 11316

Hej luigi17,

luigi17 schrieb:

... Danach habe ich die alte Windows-Installation mit GParted gelöscht und formatiert für Linux (vielleicht demnächst Kubuntu).

Schließlich Grub angepaßt. Leider ließ sich weiterhin Windows nicht booten, obwohl es in Grub verzeichnet ist.

ja, wenn Du aber die Windowspartition gelöscht hast, wie soll es dann starten?

Windows wird wiederum nicht erkannt, wenn ich von der Installations-DVD reparieren will.

sehr konfus, meinst Du jetzt das neu installierte, auf einer anderen Platte? Dann müßtest Du im BIOS umstellen auf diese Platte!

Weiß jemand Hilfe?

Es scheint angesagt, mal das boot info script zu bemühen, damit wir 'sehen' können, was bei Dir so los ist 😕

Gruß black tencate

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Ja, ich habe die 1. Win-Installation auf sda gelöscht und eine neue auf sdb installiert. Auch dabei hab ich wohl die MBR zerschrotet.

Hier der RESULTS.txt:

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

    File system:       btrfs
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda1 
                       and looks at sector 2049 of the same hard drive for 
                       core.img. core.img is at this location and looks in 
                       partition 112 for .
    Operating System:  Ubuntu 14.04.2 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       btrfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda3: __________________________________________________________________________

    File system:       btrfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Windows/System32/winload.exe

sdb2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.05 20140113
    Boot sector info:  Syslinux looks at sector 2092570 of /dev/sdc1 for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux/syslinux.cfg 
                       /efi/BOOT/grubx64.efi /ldlinux.sys

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder, zusammen 488397168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    97,656,831    97,654,784  83 Linux
/dev/sda2          97,658,878   308,592,639   210,933,762   5 Extended
/dev/sda5          97,658,880   114,407,423    16,748,544  82 Linux swap / Solaris
/dev/sda6         114,409,472   308,592,639   194,183,168  83 Linux
/dev/sda3         308,592,640   488,396,799   179,804,160  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048    82,051,071    82,049,024   7 NTFS / exFAT / HPFS
/dev/sdb2          82,051,072 1,953,523,711 1,871,472,640   5 Extended
/dev/sdb5          82,053,120 1,953,523,711 1,871,470,592  82 Linux swap / Solaris


Drive: sdc _____________________________________________________________________

Disk /dev/sdc: 64.0 GB, 64023257088 bytes
255 Köpfe, 63 Sektoren/Spur, 7783 Zylinder, zusammen 125045424 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1    *             63   125,045,423   125,045,361   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa   btrfs      Ubuntu
/dev/sda3        3c9e8c76-969b-488e-a5ca-d26e2d222ea5   btrfs      Linux
/dev/sda5        515061c6-2837-4561-b260-48fee924a3ee   swap       
/dev/sda6        06c74dbe-1e43-43e8-9515-e950445320f9   btrfs      home
/dev/sdb1        39A272157E1B5462                       ntfs       
/dev/sdb5        2bc40685-23c1-4f4d-a943-4e36d754e03a   ext4       Dateien
/dev/sdc1        E103-F257                              vfat       
/dev/sr0                                                udf        UDF Volume

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda1        /                        btrfs      (rw,subvol=@)
/dev/sda6        /home                    btrfs      (rw,subvol=@home)
/dev/sdb5        /media/rainer/Dateien    ext4       (rw)
/dev/sdc1        /media/rainer/E103-F257  vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/dev/sr0         /media/rainer/UDF Volume udf        (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,umask=0077,uhelper=udisks2)


=========================== sda1/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
  # GRUB lacks write support for btrfs, so recordfail support is disabled.
}
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_msdos
insmod btrfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
else
  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
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=2
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-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod btrfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
	else
	  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
	fi
	linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
	initrd	/@/boot/initrd.img-3.16.0-33-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
	menuentry 'Ubuntu, mit Linux 3.16.0-33-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.16.0-33-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.16.0-33-generic
	}
	menuentry 'Ubuntu, with Linux 3.16.0-33-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-33-generic-recovery-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.16.0-33-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.16.0-33-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro recovery nomodeset rootflags=subvol=@ 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.16.0-33-generic
	}
	menuentry 'Ubuntu, mit Linux 3.13.0-48-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-advanced-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.13.0-48-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.13.0-48-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro rootflags=subvol=@  quiet splash $vt_handoff
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.13.0-48-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-48-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-48-generic-recovery-6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa' {
		recordfail
		load_video
		insmod gzio
		insmod part_msdos
		insmod btrfs
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		else
		  search --no-floppy --fs-uuid --set=root 6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa
		fi
		echo	'Linux 3.13.0-48-generic wird geladen …'
		linux	/@/boot/vmlinuz-3.13.0-48-generic root=UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa ro recovery nomodeset rootflags=subvol=@ 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/@/boot/initrd.img-3.13.0-48-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/30_os-prober ###
### 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_Win7 ###
menuentry "Windows 7" {
        insmod chain
	insmod ntfs
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set 39A272157E1B5462
	drivemap -s (hd1) ${root}
	chainloader +1
}
### END /etc/grub.d/41_Win7 ###

### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=6a3c2b63-86c9-44b6-8ce2-cb6ff1e0c6aa /               btrfs   defaults,subvol=@ 0       1
# /home was on /dev/sda6 during installation
UUID=06c74dbe-1e43-43e8-9515-e950445320f9 /home           btrfs   defaults,subvol=@home 0       2
# swap was on /dev/sda5 during installation
UUID=515061c6-2837-4561-b260-48fee924a3ee none            swap    sw              0       0
# Dateien
UUID=2bc40685-23c1-4f4d-a943-4e36d754e03a /media/rainer/Dateien		ext4
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


=========================== sdc1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
	set gfxmode=auto
	insmod efi_gop
	insmod efi_uga
	insmod gfxterm
	terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu without installing" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "Install Ubuntu" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
	initrd	/casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true --
	initrd	/casper/initrd.lz
}
menuentry "Check disc for defects" {
	set gfxpayload=keep
	linux	/casper/vmlinuz.efi  boot=casper integrity-check quiet splash --
	initrd	/casper/initrd.lz
}
--------------------------------------------------------------------------------

========================= sdc1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo
--------------------------------------------------------------------------------

=================== sdc1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


================= sdc1: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)


============== sdc1: Version of COM32(R) files used by Syslinux: ===============

 syslinux/chain.c32                 :  COM32R module (v4.xx)
 syslinux/gfxboot.c32               :  COM32R module (v4.xx)
 syslinux/vesamenu.c32              :  COM32R module (v4.xx)

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-N2CXDyOY/Tmp_Log: Datei oder Verzeichnis nicht gefunden
cat: /tmp/BootInfo-N2CXDyOY/Tmp_Log: Datei oder Verzeichnis nicht gefunden
cat: /tmp/BootInfo-N2CXDyOY/Tmp_Log: Datei oder Verzeichnis nicht gefunden

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55469

Wohnort: Berlin

luigi17 schrieb:

Allerdings gab es dann auch keinen Windows-Eintrag. Deshalb habe ich händisch ... in grub.cfg eingetragen.

sudo head -n 2 /boot/grub/grub.cfg | tail -n1

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Ich hab den Befehl mal ausgeführt - ohne zu wissen, warum an dieser Stelle. Ergebnis: DO NOT EDIT THIS FILE.

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55469

Wohnort: Berlin

luigi17 schrieb:

Ergebnis: DO NOT EDIT THIS FILE.

Denk mal drüber nach...

Lidux

Anmeldungsdatum:
18. April 2007

Beiträge: 16765

Hallo luigi17,

Überprüfe bitte im Netz ob ein Laden von Windows und Ubuntu mit Grub2 über ein btrfs Dateisystem möglich ist. Außerdem sitzt im sda immer noch der Windowsbootloader und für Windows sind auf sda und sdb die Bootflags gesetzt.

Gruss Lidux

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Das ein "händischer" Eintrag in die grub.cfg nicht angesagt ist, hab ich kapiert. Es war mir auch gelungen, mit sudo update-grub automatisch einen Eintrag hinzuzufügen. Leider funktioniert Windows nicht, weswegen der Eintrag nichts bewirkt.

Was hat der von Dir vorgestellte Befehl für eine Funktion?

In dem oben dargestellten "RESULTS.txt" ist die Datei nicht anders als jetzt, nach Ausführen des Befehls.

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Lidux schrieb:

Hallo luigi17,

Überprüfe bitte im Netz ob ein Laden von Windows und Ubuntu mit Grub2 über ein btrfs Dateisystem möglich ist. Außerdem sitzt im sda immer noch der Windowsbootloader und für Windows sind auf sda und sdb die Bootflags gesetzt.

Windows ist in Ubuntu gemountet und im Datei-Manager kann ich darin normal blättern (ggf. auch schreiben?). Das mit dem Bootloader ist mir bei der Lektüre von "RESULTS.txt" auch aufgefallen. Wie kann ich das ändern?

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55469

Wohnort: Berlin

luigi17 schrieb:

Was hat der von Dir vorgestellte Befehl für eine Funktion?

Siehe head und tail.

luigi17

(Themenstarter)
Avatar von luigi17

Anmeldungsdatum:
9. August 2008

Beiträge: 1798

Wohnort: Weserbergland

Ich hab es plötzlich lösen können aufgrund eines Beitrags, indem dringendst empfohlen wird, für die Windows-Reparatur alle anderen Festplatten abzuklemmen. Da ich inzwischen Ubuntu und Windows auf 2 verschiedenen Platten habe, konnte ich die Ubuntu-SSD abklemmen.

Danach ließ sich Windows leicht mithilfe der Installations-DVD reparieren und starten. Nach Anklemmen der SSD und Setzen der Boot-Reihenfolge im BIOS auf die SSD erscheint Grub beim Start, mit dem Windows-Eintrag. Wenn ich diesen auswähle, startet Windows jetzt!

Herzlichen Dank Euch allen, auch den unsichtbaren Helfern! Jetzt hab ich doch noch ein paar Std. Wochenende!!!

Antworten |