PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : grub2 unter lubuntu



dertaliesin
05.06.12, 20:14
Hallo,

nachdem ich nun schon 3 mal nach diversen lubuntu-updates meine win7-Partition neu installieren musste, weil sich windows nicht mehr starten ließ, hoffe ich nun dass ihr mich evtl. vor der 4. Neuinstallation bewahren könnt, denn nach dem heutigen update ist das gleiche Problem wieder aufgetreten.
Nach dem Neustart gelange ich immer wieder bei der Auswahl der Windows-Partition nur ins Grub-Menü.
update-grub bringt auch keinen Erfolg. Die Anleitungen im Grub-Wiki bringen mich auch nicht weiter.

Danke für Eure Hilfe

snowcrash23
06.06.12, 13:40
Und eine Fehlermeldung wird nicht ausgegeben?
Poste doch für den Anfang wenigstens einmal den Inahlt von /etc/default/grub und /boot/grub/grub.cfg sowie die Ausgabe von fdisk -l.

MfG
snowcrash23

dertaliesin
06.06.12, 13:55
nein, keine Fehlermeldung. Es erscheint gleich wieder das Grub-Menü

/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=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="acpi_sleep=nonvs acpi_backlight=vendor"

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


/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
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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
set locale_dir=($root)/boot/grub/locale
set lang=de_DE
insmod gettext
fi
terminal_output gfxterm
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 ###
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
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, mit Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro acpi_sleep=nonvs acpi_backlight=vendor quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry 'Ubuntu, mit Linux 3.2.0-24-generic (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
echo 'Linux 3.2.0-24-generic wird geladen …'
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro recovery nomodeset acpi_sleep=nonvs acpi_backlight=vendor
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-3.2.0-24-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, mit Linux 3.0.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
linux /boot/vmlinuz-3.0.0-17-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro acpi_sleep=nonvs acpi_backlight=vendor quiet splash $vt_handoff
initrd /boot/initrd.img-3.0.0-17-generic
}
menuentry 'Ubuntu, mit Linux 3.0.0-17-generic (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
echo 'Linux 3.0.0-17-generic wird geladen …'
linux /boot/vmlinuz-3.0.0-17-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro recovery nomodeset acpi_sleep=nonvs acpi_backlight=vendor
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-3.0.0-17-generic
}
menuentry 'Ubuntu, mit Linux 3.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro acpi_sleep=nonvs acpi_backlight=vendor quiet splash $vt_handoff
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry 'Ubuntu, mit Linux 3.0.0-16-generic (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
echo 'Linux 3.0.0-16-generic wird geladen …'
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=f53e6426-90f6-4a05-97d2-09415b61e60c ro recovery nomodeset acpi_sleep=nonvs acpi_backlight=vendor
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-3.0.0-16-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+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root f53e6426-90f6-4a05-97d2-09415b61e60c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root A27C549C7C546D53
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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


fdisk -l:


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: 0xc992d338

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 105064447 52428800 7 HPFS/NTFS/exFAT
/dev/sda3 105064448 109017572 1976562+ 82 Linux Swap / Solaris
/dev/sda4 109019134 486322175 188651521 5 Erweiterte
/dev/sda5 109019136 486322175 188651520 83 Linux

snowcrash23
06.06.12, 14:39
'Keine Fehlermeldung' finde ich merkwürdig...
Sieht soweit sauber aus. Überprüfe einmal ob deine UUID für sda1 auch wirklich A27C549C7C546D53 entspricht (blkid).

Evtl. ist nur der Windows Bootlaoder beschädigt. In dem Fall solltest du ihn mithilfe der Windows-CD Reparieren dich danach mit einer Live-CD in dein System begeben und erneut grub installieren (unkompliziertesere weg IMHO). Gut beschrieben auch hier: http://wiki.ubuntuusers.de/GRUB

MfG
snowcrash23

dertaliesin
25.06.12, 16:25
muss das Thema leider nochmal ausgraben :(

Habe in den letzten Tagen immer mal wieder nach einer Lösung gesucht, kam aber leider nicht wirklich weiter.

Windows habe ich mit der Installations-CD (USB-Stick) mehrmals nacheinander reparieren lassen, es konnten aber keine Fehler gefunden werden.

Hab dann noch ein bisschen mit SuperGrubDisk herumexperimentiert. Und mit Grub4Dos kann ich jetzt Win7 wieder starten, ist natürlich keine wirklich gute Dauerlösung, heisst doch aber zumindest, dass die Win7-Partition noch funktioniert, oder?

kreol
25.06.12, 17:19
Poste bitte mal die Ausgabe von
ls -la /etc/grub.dhierher.

Als workaround kannst Du Dir auch EasyBCD für das Win beschaffen und den Windowsbootloader verwenden, in den Du den Grub einträgst.

Kreol

dertaliesin
25.06.12, 17:58
ls -la /etc/grub.d gibt bei mir folgendes aus:


insgesamt 72
drwxr-xr-x 2 root root 4096 Jun 5 20:41 .
drwxr-xr-x 147 root root 12288 Jun 25 18:52 ..
-rwxr-xr-x 1 root root 6715 Apr 17 20:16 00_header
-rwxr-xr-x 1 root root 5522 Okt 1 2011 05_debian_theme
-rwxr-xr-x 1 root root 7407 Mai 17 09:22 10_linux
-rwxr-xr-x 1 root root 6335 Apr 17 20:16 20_linux_xen
-rwxr-xr-x 1 root root 1588 Mai 3 2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 Apr 17 20:16 30_os-prober
-rwxr-xr-x 1 root root 214 Okt 1 2011 40_custom
-rwxr-xr-x 1 root root 95 Okt 1 2011 41_custom
-rw-r--r-- 1 root root 483 Okt 1 2011 README

kreol
25.06.12, 18:02
Das sieht auch unauffällig aus. Vllt. schaust Du Dir doch mal EasyBCD an, der kann auch Grub2 booten.

Oder mal Grub2 reinstallieren bzw. ein
dpkg-reconfigure grub-pc versuchen.

Kreol