GRUB unterschlägt Betriebssystempartition

Das Forum für den Linux-Pinguin - auch andere Unix-Derivate (*BSD, (Open)Solaris, Apple's Darwin / MacOS X, ...) sind hier willkommen!
Forumsregeln
Das Forum für den Linux-Pinguin - auch andere Unix-Derivate (*BSD, (Open)Solaris, Apple's Darwin / MacOS X, ...) sind hier willkommen!

GRUB unterschlägt Betriebssystempartition

Beitragvon preiti » Mo 04 Aug, 2008 15:19

Ich habe auf einem PC Windows XP, Opensolaris und Ubuntu 8.04 in dieser Reihenfolge installiert. Unter Ubuntu habe ich dann GRUB als Bootmanager eingerichtet. Bis vor ca. 5 Tagen zeigte GRUB auch brav alle 3 vorhanden bootfähigen Betriebssystempartitionen an und man konnte auch alle 3 auswählen. Aber jetzt ist in der Auswahlmöglichkeit der Eintrag für Opensolaris verschwunden. Wie kann ich den wiederherstellen? Und NEIN, ich habe die Partition NICHT gelöscht!
preiti
Advanced Power-User
Advanced Power-User
 
Beiträge: 3691
Registriert: Mi 03 Mär, 2004 23:19

Beitragvon jutta » Mo 04 Aug, 2008 15:32

was steht in der menu.lst? notfalls den eintrag fuer opensolaris ergaenzen.

ich hatte einmal ein dual-boot debian + ubuntu, wo ich (unabsichtlich) 2 grub menu.lst hatte: eine vom debian-installer angelegt, die zweite vom ubuntu-installer. das hat fuer einige verwirrung gesorgt, bis ich es durchschaut habe. koennte sein, dass dir was aehnliches passiert ist?
jutta
Administrator
Administrator
 
Beiträge: 30473
Registriert: Do 15 Apr, 2004 10:48
Wohnort: wien

Beitragvon preiti » Di 05 Aug, 2008 11:12

Meine menu.lst schaut so aus:
Code: Alles auswählen
# 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-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      10

## 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=e7a34c88-1e28-484f-b3a0-b4aed5790bdf ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

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

## 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      Ubuntu 8.04, kernel 2.6.24-16-generic
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=e7a34c88-1e28-484f-b3a0-b4aed5790bdf ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic
quiet

title      Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.24-16-generic root=UUID=e7a34c88-1e28-484f-b3a0-b4aed5790bdf ro single
initrd      /boot/initrd.img-2.6.24-16-generic

title      Ubuntu 8.04, memtest86+
root      (hd0,2)
kernel      /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1

Ich glaube inzwischen aber , dass da etwas anderes passiert ist. Unter Ubuntu wird nur die Partition von Windows gefunden, es gibt keine Einträge über ein anderes Dateisystem oder sonstige Partitionen.
preiti
Advanced Power-User
Advanced Power-User
 
Beiträge: 3691
Registriert: Mi 03 Mär, 2004 23:19

Beitragvon jutta » Di 05 Aug, 2008 11:22

und was passiert, wenn du den eintrag fuer opensolaris einfach ergaenzt?

zum vergleich meine zwei menu.lst, die mich anfangs zur verzweiflung gebracht haben (nur der untere teil kopiert, weil der anfang eh nur defaults + kommentare enthaelt)


auf der debian-partition sieht die menu.lst so aus:
Code: Alles auswählen
## ## End Default Options ##

title           Debian GNU/Linux, kernel 2.6.18-6-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-6-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-6-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-6-k7 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-6-k7 root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.18-6-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-5-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-5-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-5-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-5-k7 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-5-k7 root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.18-5-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-4-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-4-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-4-k7 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.18-4-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-3-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-3-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-3-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-3-k7 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-3-k7 root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.18-3-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.17-2-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.17-2-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.17-2-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.17-2-k7 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.17-2-k7 root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.17-2-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.16-2-k7-smp
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.16-2-k7-smp root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.16-2-k7-smp
savedefault

title           Debian GNU/Linux, kernel 2.6.16-2-k7-smp (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.16-2-k7-smp root=/dev/hda1 ro single
initrd          /boot/initrd.img-2.6.16-2-k7-smp
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST
debian:/boot/grub#


und in der ubuntu-partition so:

Code: Alles auswählen
## ## End Default Options ##

title           Ubuntu, kernel 2.6.10-6-386
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.10-6-386 root=/dev/hda6 ro quiet splash
initrd          /boot/initrd.img-2.6.10-6-386
savedefault
boot

title           Ubuntu, kernel 2.6.10-6-386 (recovery mode)
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.10-6-386 root=/dev/hda6 ro single
initrd          /boot/initrd.img-2.6.10-6-386
savedefault
boot

title           Ubuntu, kernel 2.6.10-5-386
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.10-5-386 root=/dev/hda6 ro quiet splash
initrd          /boot/initrd.img-2.6.10-5-386
savedefault
boot

title           Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root            (hd0,5)
kernel          /boot/vmlinuz-2.6.10-5-386 root=/dev/hda6 ro single
initrd          /boot/initrd.img-2.6.10-5-386
savedefault
boot

title           Ubuntu, kernel memtest86+
root            (hd0,5)
kernel          /boot/memtest86+.bin
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title           Other operating systems:
root

title           Debian GNU/Linux, kernel 2.6.18-4-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-4-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.18-3-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-3-k7  root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.18-3-k7
savedefault

title           Debian GNU/Linux, kernel 2.6.15-1-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.15-1-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.15-1-k7
savedefault
boot


title           Debian testing
root            (hd0,0)
chainloader     +1

tilte           Debian testing
rootnoverify    (hd0,0)
chainloader     +1


bevor jetzt jemand was ueber die uralten ubuntu-versionen sagt: das war eine testinstallation vor 2 oder 3 jahren. schon ewig nicht mehr verwendet, aber mir fehlt noch der plan, wie ich sie elegant beseitigen kann, ohne den rest des rechners zu gefaehrden.
jutta
Administrator
Administrator
 
Beiträge: 30473
Registriert: Do 15 Apr, 2004 10:48
Wohnort: wien

Beitragvon barbakuss » Di 05 Aug, 2008 12:44

@jutta
wennst noch a paar jahre wartest und das ding nie updatest irgendwann wird das Ubuntu dann zu einem Hochsicherheits-OS, weils keiner mehr hacken kann
Bild

No one fucks around with the admin! The admin does the fucking!
barbakuss
Board-User Level 1
Board-User Level 1
 
Beiträge: 713
Registriert: Fr 09 Dez, 2005 20:51

Beitragvon LeO4711 » Di 05 Aug, 2008 21:39

äh, wie sagt doch schon mr simpson 'zuerst suchen, bevor ...' ;)

@jutta: so ganz verstehe ich die problematik nicht: wenn's nur die grub-einträge sind, wieso die dann nicht löschen? ich meine gibt es die verzeichnise überhaupt noch auf der HDD? ich hätte mal vermutet, dass debian nachträglich installiert wurde und automatisch die einträge angepasst hat (was nicht mehr da ist, wird auch nicht eingetragen).
LeO4711
Junior Board-Mitglied
Junior Board-Mitglied
 
Beiträge: 43
Registriert: Mo 28 Jul, 2008 18:02

Beitragvon preiti » Di 05 Aug, 2008 23:10

Da ich sowieso bald eine größere HDD einbauen werde lasse ich das ganze vorest mal so wie es ist. Bei der Installation der größeren HDD kommen dann nur Windows XP und Ubuntu drauf. Mit Opensolaris möchte ich mich zuerst ohne solche Schwierigkeiten beschäftigen.
preiti
Advanced Power-User
Advanced Power-User
 
Beiträge: 3691
Registriert: Mi 03 Mär, 2004 23:19

Beitragvon jutta » Mi 06 Aug, 2008 06:01

@LeO4711: es geht natuerlich nicht um das loeschen der eintraege in der menu.lst, sondern um die ganze ubuntu-installation und vor allem darum, wie ich die partitionen ohne datenverlust aendern kann. (brauchen wir hier aber nicht diskutieren, da es mit preitis problem nichts zu tun hat.)
jutta
Administrator
Administrator
 
Beiträge: 30473
Registriert: Do 15 Apr, 2004 10:48
Wohnort: wien


Zurück zu LINUX & UNIX-DERIVATE

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 21 Gäste

cron