Gruuuuuuuuub, verzweifel

N

netbui

Eroberer
Hallo,

ich komme mal wieder nicht weiter :hilfe2: . Nachdem nun auch meine sechste und letzte Samsung HHD ihren Geist aufgibt, habe ich die Systempartition von /dev/hda4 mit rsync -av nach /dev/sda3 kopiert, die fstab, mtab und menu.lst angepasst und grub in einer chroot umgebung installiert. Leider wird beim booten von der neuern Platte Grub nicht geladen, es erscheint nur:
Code:
_
und der Rechern startet neu. Warum?

Code:
ws ~ # mount -o bind /dev /mnt/sda3/dev/
ws ~ # mount -t proc proc /mnt/sda3/proc/
ws ~ # chroot /mnt/sda3/ /bin/bash
ws / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
ws / # mount
/dev/root on / type ext3 (rw,noatime,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
/dev/hda3 on /mnt/hda3 type ext3 (rw,nosuid,nodev,noexec,noatime,data=ordered)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,noexec)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec)
nfsd on /proc/fs/nfs type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/hdc type iso9660 (ro,nosuid,nodev,noexec)
[B]/dev/sda3 on / type reiserfs (rw)[/B]
udev on /mnt/hda3/dev type tmpfs (rw,nosuid)
udev on /dev type tmpfs (rw,nosuid)
proc on /proc type proc (rw)
ws / # grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/hda
(hd1)   /dev/hdb
(hd2)   /dev/hdc
(hd3)   /dev/hdd
(hd4)   /dev/sda
(hd5)   /dev/sdb
(hd6)   /dev/sdc
(hd7)   /dev/sdd
Ich hab Grub auch mit grub-install /dev/sda3 installiert, leider mit dem gleichem Ergebnis.

Code:
ws ~ # fdisk -l /dev/sda

Platte /dev/sda: 320.0 GByte, 320072933376 Byte
255 Köpfe, 63 Sektoren/Spuren, 38913 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1        6375    51200000    7  HPFS/NTFS
/dev/sda2           38653       38913     2096482+  82  Linux Swap / Solaris
/dev/sda3   *       22988       38652   125829112+  83  Linux
/dev/sda4            6375       22987   133442053+  83  Linux

Code:
menu.lst
default 0
timeout 5
splashimage=(hd4,2)/boot/grub/splash.xpm.gz


title=Gentoo vmlinuz
root (hd4,2)
kernel /boot/vmlinuz root=/dev/sda3
Code:
fstab:
/dev/sda3        /               auto            defaults,noatime        0 1
Selbst wenn ich von der alten Platte mit dem Eintrag:
Code:
title=Gentoo SDA3
root (hd4,2)
kernel /boot/vmlinuz root=/dev/sda3
boote, bekomme ich eine Fehlermeldung:
Code:
root (hd4,2) 
Error 21: Selected disk does not exist
... mit dem Eintrag:
Code:
title=Gentoo vmlinuz
root (hd0,3)
kernel /boot/vmlinuz root=/dev/hda4
kann ich problemlos die alte Installation auf der verreckenden Samsung IDE HDD booten. Den Via SATA Treiber habe ich fest in den Kernel einkompiliert.

Hat jemand einen Tipp für mich :hilfe2: ?

Vielen dank im voraus.
 
Du hast den Bootloader nicht im MBR installiert..? Welcher ist dann zur Zeit dort installiert?
 
Hi,

ich dachte, mit grub-install /dev/sda wird er im mbr installiert, oder? Ich habe, bevor ich Gentoo auf die neue Platte gezogen habe, auf die erste Partition :devil: Vista, RC1 :devil: installiert (war halt 'ne Probem zum anfixen in der neuen IX dabei).
Aber ich habe grub auch mit grub-install /dev/sda3 direkt in die Partition sda3 geschrieben und diese auch mit fdisk als aktiv markiert:

/dev/sda1 1 6375 51200000 7 HPFS/NTFS
/dev/sda2 38653 38913 2096482+ 82 Linux Swap / Solaris
/dev/sda3 * 22988 38652 125829112+ 83 Linux
/dev/sda4 6375 22987 133442053+ 83 Linux
 
Code:
root (hd4,2)
root=/dev/sda3
verstehe ich nicht.Laut Grubnotation willst Du von /dev/sde3 booten.Angegeben hast Du root=/dev/sda3.

Oder habe ich Deine ganze Konfiguration noch nicht verstanden?
 
Hallo krishan,

wieso /dev/sde3? Laut meiner devices.lst müßte /dev/sde in diesem Fall doch
Code:
(hd8) /dev/sdd
sein, oder habe ich da was komplett nicht verstanden?

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/hdc
(hd3) /dev/hdd
(hd4) /dev/sda
(hd5) /dev/sdb
(hd6) /dev/sdc
(hd7) /dev/sdd

Da diese Installation von meinem Fileserver stammt (Gentoo aufzusetzen dauert doch einige Zeit) habe ich wohl auch die alte device.map übernommen, mit der IDE HDD hat es keine Probleme gegeben, da hd0=hd0 geblieben ist.
Ich habemittlerweile mit "grub-install --recheck" eine neue device.map angelegt:

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda

dementdprechend ist die Grub.conf:

title=Gentoo vmlinuz
root (hd1,2)
kernel /boot/vmlinuz root=/dev/sda3

Das Egebnis bleibt aber gleich :-(, d.h. ich kann GRUB ums ... nicht auf dieser Platte installieren. Booten mit einem Eintrag in der grub.conf auf der IDE Platte geht nun, hoffentlich hält dieses Samsung ... Gerät noch ein Bischen durch.
 
Hallo krishan,

wieso /dev/sde3? Laut meiner devices.lst müßte /dev/sde in diesem Fall doch
Code:
(hd8) /dev/sdd
sein, oder habe ich da was komplett nicht verstanden?

title=Gentoo vmlinuz
root (hd1,2)
kernel /boot/vmlinuz root=/dev/sda3

Das Egebnis bleibt aber gleich :-(, d.h. ich kann GRUB ums ... nicht auf dieser Platte installieren. Booten mit einem Eintrag in der grub.conf auf der IDE Platte geht nun, hoffentlich hält dieses Samsung ... Gerät noch ein Bischen durch.
Hallo,

Wenn du nur noch die SATA hast, ist diese die 1. Platte.
Zugreifen willst du dann auf die 3. Partition.

Demzufolge lautet IMHO dein Grub-Eintrag dann
root (hd0,2)

Gruß Lumpi
[EDIT]
Oder wenn man dem "simulieren" folgt:
primary master = hd(0,x)
primary slave = hd(1,x)
raid = hd(2,x)
s-ata hd(3,x)
sollte es auf
root hd(3,2)
liegen....das ist abhängig davon, wieviel "Kanäle" du hast...
Fehlt RAID, rückt SATA um eine Stelle auf
 
Zuletzt bearbeitet:
Wenn du nur noch die SATA hast, ist diese die 1. Platte.
Zugreifen willst du dann auf die 3. Partition.

Demzufolge lautet IMHO dein Grub-Eintrag dann
root (hd0,2)
Ja,das waren auch meine Gedankengänge.:))

Übrigens benutzt Gentoo die /boot/grub/grub.conf und nicht menu.lst.Die menu.lst ist nur ein Link auf grub.conf.
 

Ähnliche Themen

CentOS 6 - Kernel crashes mit 2.6.32-573.*

Raid-1 einrichten

load avarage permanent 10

Neue Partition unter openSUSE 12.2 erstellen

X not starting anymore since filesystem was full

Zurück
Oben