Archiv verlassen und diese Seite im Standarddesign anzeigen : Rootpartition mounten
Hallo,
Scheinbar habe ich bei meiner Kororaainstallation was verplant. Hab es auf /dev/hdc1 installiert, was ja an sich kein Problem darstellt. Grub hab ich nich installiert, das war noch von Dapper da. Also in Dapper einfach menu.list editiert, und zwar schaut das so aus:
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdc1.
title Kororaa, genkernel-x86-2.6.14-kororaa-r6 (on /dev/hdc1)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.14-kororaa-r6 root=/dev/hdc1 ro quiet splash
initrd /boot/initramfs-genkernel-x86-2.6.14-kororaa-r6
savedefault
boot
Wenn ich nun aber Kororaa boote, muss ich immer die Rootparttion angeben, also /dev/hdc1. Aber normalerweise müsste er es doch durch den Eintrag in der Menu.list sehen, das / auf /dev/hdc1 liegt oder?
Versuch es mal mit
...
root (hd2,0)
...Kenne zwar Dapper nicht, erinnert aber schwer an grub, und da wäre hdc1 eben (hd2,0). Oder hast Du eine eigene /boot auf hda1?
Kreol
ich glaube da muss man auch noch vor die Pfadangabn für kernel und initrd das "(hd2,0)" anhängen, also umgefär so
...
root (hd2,0)
kernel (hd2,0)/boot/kernel-x.x.x-oder-so
initrd (hd2,0)/boot/welcher-pfad.auch-immer
Frederic
Nein, entweder oder. Die Angabe der Partition vor dem Pfad brauchst Du nur, wenn Du vorher nicht mit dem root (hdx,y) eine gemeinsame Partition für kernel und initrd angibst.
Kreol
Hallo,
und da wäre hdc1 eben (hd2,0)
nein, diese Schlußfolgerung kann zwar zufällig richtig sein, muß aber nicht. Wenn beispielsweise "hdc" die erste Festplatte im System ist, dann ist das bei Grub "hd0", denn Grub zählt stur die Festplatten durch. CDROM-Laufwerke oder Brenner werden dabei nicht mitgezählt.
Gruß
hp_tux
nein, diese Schlußfolgerung kann zwar zufällig richtig sein, muß aber nicht. Wenn beispielsweise "hdc" die erste Festplatte im System ist, dann ist das bei Grub "hd0", denn Grub zählt stur die Festplatten durch. CDROM-Laufwerke oder Brenner werden dabei nicht mitgezählt.OK, wenn der TE seine HDs und Laufwerke willkürlich an die IDE-Busse geklemmt hat stimmt (hd2,0) nicht mehr. Und wenn SCSI Laufwerke ins Spiel kommen wird es auch lustig, weil die vorrangig gezählt werden.
Ausgehend von einer "üblichen" HW-Konstellation sollte es halt 2,0 sein. Warten wir doch mal den Erfahrungsbericht des TE ab.
@Pallas: (wenn es nicht klappt) Bitte die exakte HW-Beschreibung posten, also welches Laufwerk ist an welchen Bus geklemmt...
Nachtrag:
@Pallas: Nach eingehender Diskussion im IRC: Poste bitte welche Platten bzw. Laufwerke hast du wo angeklemmt? Unterscheide dabei in SCSI/S-ATA und IDE master/slave. Hilfreich ist die Ausgabe von "fdisk -l" (kleines L, kein großes i, als root ausgeführt). Siehe auch Wiki-Grub (http://de.wikipedia.org/wiki/GRUB) mit weitergehenden Nachweisen.
Kreol
@Pallas: Nach eingehender Diskussion im IRC: Poste bitte welche Platten bzw. Laufwerke hast du wo angeklemmt? Unterscheide dabei in SCSI/S-ATA und IDE master/slave. Hilfreich ist die Ausgabe von "fdisk -l" (kleines L, kein großes i, als root ausgeführt). Siehe auch Wiki-Grub (http://de.wikipedia.org/wiki/GRUB) mit weitergehenden Nachweisen.
Kreol
Hallo erstmal und danke für die Antworten.Das Ändern in
root (hd2,0) führte leider zu nichts. Ich musste nun wieder Die Rootpartition per Hand angeben. fdisk -l sagt Folgendes:
kororaa tobias # fdisk -l
Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 4677 37567971 83 Linux
/dev/hdc2 4678 4865 1510110 5 Extended
/dev/hdc5 4678 4865 1510078+ 82 Linux swap / Solaris
Disk /dev/hdd: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 * 1 4810 38636293+ 83 Linux
/dev/hdd2 4811 4998 1510110 5 Extended
/dev/hdd5 4811 4998 1510078+ 82 Linux swap / Solaris
Die Dapperplatte ist als Slave an den zweiten IDE-Steckplatz angeschlossen, und die Kororaaplatte als Master an den zweiten IDE-Steckplatz.
Ich hoffe diese Informationen reichen, ansonsten bitte posten was noch fehlt.
Mh, dann hatte hp-tux doch recht... Werde mich künftig mit Spekulationen über den hw-Aufbau anderer etwas zurückhalten :cool:
Bei der Konfiguration sollte hdc von grub tatsächlich als (hd0,0) bezeichnet werden. Poste doch mal Deine komplette /boot/grub/menu.lst, also die der Dapper-Installation, da die ja wohl von dem mbr angesprungen werden soll.
Evtl. hat die Kororaa aber auch den mbr auf die eigene /boot verbogen. Also schau Dir auch mal deren menu.lst an.
Welche maßgeblich ist kannst Du ja mal austesten, indem Du in einer der menu.lst einen weiteren Eintrag erstellst, der nur aus "title test" oder so besteht. Wenn der im grub-menü nicht auftaucht, hast Du die falsche menu.lst editiert...
Und das Dapper kannst Du booten? Welche Fehlermeldung liefert grub denn genau, wenn Du Kororaa aus dem Bootmenü auswählst?
Kreol
Hallo kreol!
Poste doch mal Deine komplette /boot/grub/menu.lst, also die der Dapper-Installation, da die ja wohl von dem mbr angesprungen werden soll.
Bitte sehr:
# 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 change this entry to 'saved' 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=/dev/hdd1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)
## 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
## 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
## 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.15-21-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/hdd1 ro quiet splash
initrd /boot/initrd.img-2.6.15-21-386
savedefault
boot
title Ubuntu, kernel 2.6.15-21-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/hdd1 ro single
initrd /boot/initrd.img-2.6.15-21-386
boot
title Ubuntu, kernel 2.6.15-20-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-20-386 root=/dev/hdd1 ro quiet splash
initrd /boot/initrd.img-2.6.15-20-386
savedefault
boot
title Ubuntu, kernel 2.6.15-20-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-20-386 root=/dev/hdd1 ro single
initrd /boot/initrd.img-2.6.15-20-386
boot
title Ubuntu, kernel 2.6.15-19-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-19-386 root=/dev/hdd1 ro quiet splash
initrd /boot/initrd.img-2.6.15-19-386
savedefault
boot
title Ubuntu, kernel 2.6.15-19-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-19-386 root=/dev/hdd1 ro single
initrd /boot/initrd.img-2.6.15-19-386
boot
title Ubuntu, memtest86+
root (hd1,0)
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 an existing
# linux installation on /dev/hdc1.
title Kororaa, genkernel-x86-2.6.14-kororaa-r6 (on /dev/hdc1)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.14-kororaa-r6 root=/dev/hdc1 ro quiet splash
initrd /boot/initramfs-genkernel-x86-2.6.14-kororaa-r6
savedefault
boot
Evtl. hat die Kororaa aber auch den mbr auf die eigene /boot verbogen. Also schau Dir auch mal deren menu.lst an.
Welche maßgeblich ist kannst Du ja mal austesten, indem Du in einer der menu.lst einen weiteren Eintrag erstellst, der nur aus "title test" oder so besteht. Wenn der im grub-menü nicht auftaucht, hast Du die falsche menu.lst editiert...
Habe ich gerade eben probiert, und die Kororaa-menu.list scheint nicht die essentielle zu sein. Habe sie editiert, konnte jedoch keine Änderungen an Grub beim Bootmenu feststellen.
Und das Dapper kannst Du booten? Welche Fehlermeldung liefert grub denn genau, wenn Du Kororaa aus dem Bootmenü auswählst?
Folgende Meldung erscheint:
>>Determining root device
!! The root block device is unspecified or not detected
Please specifie a device to boot, or "shell" fo a shell
Danach gebe ich /dev/hdc1 ein, und die Rootpartition wird gemountet.
Schau mal in die /boot/grub/device.map der Dapper. Ist die hdc dort eingetragen?
...
(hd0) /dev/hdc
...Ggf. poste die Datei mal hierher.
Kreol
Ggf. poste die Datei mal hierher.
Bitte
(hd0) /dev/hdc
(hd1) /dev/hdd
Schau Dir mal Link zum gentoo-forum (http://forums.gentoo.org/viewtopic.php?t=215383) an. Vllt. hilft das ja weiter. Dort wird als Eintrag
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hdc1empfohlen und scheint funktioniert zu haben.
Ansonsten bin ich auch ratlos. Hast Du "The root block device is unspecified or not detected" mal so wie es da steht durch www.google.de/linux gejagt? Da sind einige Hits, die vllt. auch weiterhelfen.
Kreol
Hallo, da ich sowie die menu.list wegen einem Splashimage für Grub verändern wollte, hab ich etwas rumgespielt und nun geht es ;)
So sieht sie nun aus:
default=0
timeout=30
splashimage=(hd0,0)/boot/grub/gentoo.xpm.gz
## ## End Default Options ##
title Kororaa, genkernel-x86-2.6.14-kororaa-r6 (on /dev/hdc1)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.14-kororaa-r6 root=/dev/hdc1 real_root=/dev/hdc1
initrd /boot/initramfs-genkernel-x86-2.6.14-kororaa-r6
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
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdc1.
title Ubuntu, kernel 2.6.15-21-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/hdd1 ro
quiet splash
initrd /boot/initrd.img-2.6.15-21-386
savedefault
boot
title Ubuntu, kernel 2.6.15-21-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-21-386 root=/dev/hdd1 ro
single
initrd /boot/initrd.img-2.6.15-21-386
boot
title Ubuntu, kernel 2.6.15-20-386
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-20-386 root=/dev/hdd1 ro
quiet splash
initrd /boot/initrd.img-2.6.15-20-386
savedefault
boot
title Ubuntu, kernel 2.6.15-20-386 (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-20-386 root=/dev/hdd1 ro
single
initrd /boot/initrd.img-2.6.15-20-386
boot
Also hätte es mit Sicherheit geholfen hätte ich gleich mal
root=/dev/hdc1versucht.
Schön, daß es jetzt geht und danke, daß Du die Lösung gleich mitgepostest hast. Dann freuen sich vllt. noch andere drüber :)
Wobei, eine Frage bleibt:
title Kororaa, genkernel-x86-2.6.14-kororaa-r6 (on /dev/hdc1)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.14-kororaa-r6 root=/dev/hdc1 ro quiet splash
initrd /boot/initramfs-genkernel-x86-2.6.14-kororaa-r6root=/dev/hdc1 stand doch vorher auch schon in der menu.lst. Warum braucht er noch das 'real_root=...' *grübel*
Naja, wenn es jetzt geht... :D
Kreol
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.