Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Linux Forum Linux-Web.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

15.03.2006, 21:40

Bootproblem - Linux und Linux parallel

Hi!
Ja, es gibt nicht nur das tyipische Problem "Wie starte ich Windows, ich habe Linux installiert", sondern auch das Problem (bei mir jedenfalls) "Hilfe! Ich habe mir 2 verschiedene Linux auf verschiedenen Partitionen installiert und ich kann nur eine starten!" Also jetzt mal im Detail:
Zuerst hatte ich nur ein Windows. Das hat auch funktioniert. Danach habe ich mir ein Ubuntu 5.10 installiert. Das hat natürlich auch super funktioniert, auch mit dem Windows starten. Dann ist mein Windows sozusagen in einander zusammen gebrochen => ich musste es neu installieren. Nachdem ich dann Windows neu installiert hatte bin ich aber nicht mehr in linux reingekommen. ich habe zwar versucht micht mit der ubuntu live cd und einer etwas älteren knoppix cd in das system reinzu chrooten und dann grub neu zu installieren bzw. grub so neu zu installieren, doch er hat gemeckert, dass irgendeine stage1 datei im grub verzeichnis wohl so nicht ganz in ordnung sei. Seufzend habe ich dann noch einmal ubuntu installiert; allerdings nicht auf die gleiche partition sondern auf eine andere. dann lief alles wieder einigermaßen gut und schön, ich konnte das neue linux starten und auch mein windows, aber eigentlich will ich das neuere ubuntu gar nicht. ich möchte im prinzip nur das ältere booten können. dabei würde es mir aber nichts ausmachen, wenn ich das neue noch behalten könnte, ist aber nicht bedingung. ich habe nun die boot einträge von meiner alten grub config datei in die neue kopiert, was aber nicht geklappt hat. er scheint die daten nicht zu finden bzw. das dateisystem nicht zu erkennen. könnt ihr mir da helfen? ich finde bei der board suche nichts und auch bei google finde ich nur informationen wie ich linux und WINDOWS parallel laufen lassen kann, oder höchstens auch verschiedene kernelversionen bei einem ubuntu, aber nicht wie ich mehrere ubuntus starten kann. ich bin übrigens zwar kein profi, kenne ich mir aber doch schon recht gut mit linux aus, bzw. habe mich gut eingearbeitet.
mit freundlichen grüßen
yhamm

ps: falls es hilft: das alte ubuntu ist bei dem neuen unter /mnt/lin eingehängt.
pps: ich habe auch bei dem neuen das mit dem chrooten schon erfolglos versucht.
ppps: ich habe nach dem chrooten auch schon versucht meinen gdm bzw. X11 von dem neuen system zu starten, allerdings scheint er keinen monitor zu finden. woran liegt das?
pppps: es ist zwar ein bisschen viel geworden, aber ich hoffe ihr lest es trotzdem und könnt mir helfen

saciel

Fortgeschrittener

  • »saciel« ist männlich

Beiträge: 202

Wohnort: Nähe Nürnberg

Beruf: Student (Dipl.Phys.)

  • Nachricht senden

2

15.03.2006, 22:35

RE: Bootproblem - Linux und Linux parallel

Hat sich vielleicht dadurch, dass du zwischendurch partitioniert hast was an der Nummer der Ubuntu-Systempartition geändert?

Was kommt denn für eine Fehlermeldung, wenn du das alte Ubuntu mit den kopierten Grub-Einträgen starten willst?

bonsai

Prof.Dr. Klugschiss

  • »bonsai« ist männlich

Beiträge: 1 486

Wohnort: N.de

Beruf: Informatiker

  • Nachricht senden

3

16.03.2006, 09:23

Danke....

...fuer die tolle Formatierung Deines Textes - laesst sich grossartig lesen. :ätsch:

stage 1 muesste ja der Teil im MBR sein. => der muesste eigentlich nach einem


chroot /alteplatteRoot /bin/sh
mount mein /altePLatte/boot nach /boot
grub-install /dev/[hda?]

wieder neu geschrieben werden.

Davor solltest Du die menu.lst anpassen. (alt, neu....)

So, wie es klingt, hast Du dies aber gemacht..... - daher die Bitte: Schreib' doch mal exakt, was Du diesbezueglich unternommen hast - MIT WELCHEN Ergebnissen und Fehlermeldung.

Fuer ein bisschen Formatierung des Textes waere ich (wir?) dankbar - liest sich leichter und schoener. ;)
Die erste programmgesteuerte Rechenmaschine (Z1) wurde Mitte der 30er Jahre als "nicht patentwürdig" eingestuft. Warum versaut mir das Ding 50 Jahre später immer noch den Tag?

4

16.03.2006, 18:00

also die fehlermeldung lautet:

Zitat


Booting 'Ubuntu, kernel 2.6.12-10-386 alt'

root (hd0,2)
Filesystem type unknown, partition type 0xf
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hdc3 ro quiet splash

Error 17: Cannot mount selected partition

Press any key to continue...


Zitat


chroot /alteplatteRoot /bin/sh

funktioniert. danke!

Zitat


mount mein /altePLatte/boot nach /boot

sh-3.00# mount /mnt/lin/boot /boot
mount: Sie müssen den Dateisystemtyp angeben
sh-3.00# mount -t auto /mnt/lin/boot /boot
mount: Sie müssen den Dateisystemtyp angeben
sh-3.00# mount -t ext3 /mnt/lin/boot /boot
mount: Gerätedatei /mnt/lin/boot existiert nicht

Also brauche ich das nicht zu machen, oder? ich bin doch schon in dem alten system so zusagen drin, oder irre ich mich da?

Zitat

grub-install /dev/[hda?]

Hier kommt das Problem was ich auch schon vorher hatte:
sh-3.00# grub-install /dev/hdc
The file /boot/grub/stage1 not read correctly.


Und falls es noch weiter hilft... hier habe ich noch meine aktuelle menu.lst von grub:

Zitat


# 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'.
default 6

## 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 specifiv 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=root=/dev/hdc6 ro

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

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

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

## ## End Default Options ##

title Ubuntu, kernel 2.6.12-10-386 alt
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hdc3 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 alt
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hdc3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

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

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hdc6 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

title Ubuntu, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
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


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

und meine fdisk -l ausgabe:

Zitat


root@ubuntu:/home/andreas# fdisk -l

Platte /dev/hdc: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spuren, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes

Gerät boot. Anfang Ende Blöcke Id System
/dev/hdc1 * 1 1275 10241406 c W95 FAT32 (LBA)
/dev/hdc2 1276 8583 58701510 83 Linux
/dev/hdc3 8584 14592 48267292+ f W95 Erw. (LBA)
/dev/hdc5 8584 14075 44114458+ b W95 FAT32
/dev/hdc6 14076 14592 4152771 83 Linux

Hier war übrigens hdc2 mein altes linux system und hdc6 mein aktuelles, wie ihr sicher auch aus der menu.lst rausgelesen habt.

im vergleich zur aktuellen menu.lst habe ich hier noch einen ausschnitt der älteren, die bis zur windows installation noch funktioniert hat:

Zitat


## ## End Default Options ##

title Ubuntu, kernel 2.6.12-10-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hdc3 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hdc3 ro single
initrd /boot/initrd.img-2.6.12-10-386
boot

title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hdc3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hdc3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
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


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

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »yhamm« (16.03.2006, 18:13)


Thema bewerten