PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Grub Installation geht nicht...



stuemmes
19.03.08, 11:35
Hi,

ich bin neu hier im Forum und hoffe das mir hier jemand helfen kann...

Zum Problem: Grub lässt sich nicht installieren, weder auf der Platte (ohne dabei Windows Bootloader zu 'töten') noch auf einem USB-Stick :confused:

Kurzzusammenfassung der Fehlversuche:
1. Grub in MBR installieren
2. Grub auf USB Stick installieren
3. Grub in eigene Boot-Partition installieren
4. Grub in root Partition installieren
Bei 3. und 4. habe ich jeweils den Bootsektor ausgelesen und versucht diesen in die Boot.ini von XP einzutragen (Eintrag wird angezeigt, boot geht jedoch nicht)
...

Installierte Systeme (so der Plan, bis auf Linux läuft alles via W2k8 bootloader),
Linux starte ich z.Z. mittels der Install-CD:
- XP 32bit (/dev/sda1)
- Vista 64 bit (/dev/sda2)
- Server 2k8 64 bit (/dev/sdb4)
- Opensuse 10.3 64 bit (dev/sdb3)

Inhalt der device.map (/dev/sdd ist der USB Stick):


(hd3) /dev/sdd
(hd0) /dev/sda
(hd1) /dev/sdc
(hd2) /dev/sdb


Ausgabe von 'fdisk -l':


Platte /dev/sda: 150.0 GByte, 150039945216 Byte
255 heads, 63 sectors/track, 18241 cylinders
Units = Zylinder of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5de743c2

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 8924 71681998+ 7 HPFS/NTFS
/dev/sda2 8925 18242 74840064 7 HPFS/NTFS

Platte /dev/sdb: 150.0 GByte, 150039945216 Byte
255 heads, 63 sectors/track, 18241 cylinders
Units = Zylinder of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4090531a

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 1 17 131072 83 Linux
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sdb2 17 527 4096000 82 Linux Swap / Solaris
Partition 2 endet nicht an einer Zylindergrenze.
/dev/sdb3 527 8813 66560000 83 Linux
/dev/sdb4 8813 18242 75734016 7 HPFS/NTFS

Platte /dev/sdc: 1759.1 GByte, 1759199100928 Byte
255 heads, 63 sectors/track, 213877 cylinders
Units = Zylinder of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d41b2

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdc1 1 213877 1717966971 f W95 Erw. (LBA)
/dev/sdc5 1 15666 125837082 c W95 FAT32 (LBA)
/dev/sdc6 15667 32376 134223043+ 83 Linux
/dev/sdc7 32377 213877 1457906751 7 HPFS/NTFS


Inhalt der menu.lst:


# Modified by YaST2. Last modification on Di Mär 18 11:21:30 UTC 2008
default 0
timeout 8
gfxmenu (hd2,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
root (hd2,2)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_WDC_WD1500ADFD-_WD-WMAP42079299-part3 vga=0x345 resume=/dev/sdb2 splash=silent showopts
initrd /boot/initrd-2.6.22.5-31-default

###Don't change this comment - YaST2 identifier: Original name: Linux other 1 (/dev/sdb1)###
title Linux other 1 (/dev/sdb1)
rootnoverify (hd2,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
rootnoverify (hd2,2)
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
rootnoverify (hd2,2)
chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 3
rootnoverify (hd2,2)
chainloader (hd2,3)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
root (hd2,2)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_WDC_WD1500ADFD-_WD-WMAP42079299-part3 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /boot/initrd-2.6.22.5-31-default


Was mache bei dieser Config falsch?

***************

Alternativ wäre auch das Booten von Linux via USB-Stick eine Möglichkeit (bin bisher jedoch mit allem gescheitert)...:(

Grub bleibt immer mit dem Text
GRUB stehen...
(Dies soll angeblich an einer 'ungültigen' device.map liegen, kann hier jedoch keinen Fehler erkennen s.u.)

Meine Versuche den USB-Stick zu 'überreden' (2GB):
- habe an FS sowohl Ext2/Ext3 als auch VFat/Fat32 versucht
- habe 3 Sticks probiert, einer ist bootfähig, dieser wurde dann fortan verwendet
- Partition auf dem Stick habe ich mittels cfdisk bootbar gemacht
- Alle Dateien auf dem Stick befinden sich im Unterverzeichnis ab /boot
- kopieren von den '*stage*' - Dateien, Kernel, Initrd gemacht
- Versuche den Grub in /dev/sdd bzw. /dev/sdd1 sind ebenfalls gescheitert
(Meldungen waren ok, booten ging aber trotzdem nicht)
- device.map auf dem Stick habe wie folgt geändert

(hd0) /dev/sda
(Der USB Stick wird ja durch den Boot Vorgang auf /dev/sda gemappt, und nicht wie sonst auf dev/sdd wenn ich von CD boote)

Anbei der Inhalt des Verzeichnisses '/boot (USB-Stick)'


drwxr-xr-x 3 root root 4096 18. Mär 18:26 .
drwxr-xr-x 4 root root 4096 18. Mär 18:26 ..
-rw------- 1 root root 512 18. Mär 12:21 backup_mbr
-rw-r--r-- 1 root root 73069 24. Sep 21:09 config-2.6.22.5-31-default
drwxr-xr-x 2 root root 4096 18. Mär 23:53 grub
lrwxrwxrwx 1 root root 26 18. Mär 18:26 initrd -> initrd-2.6.22.5-31-default
-rw-r--r-- 1 root root 4492810 19. Mär 01:16 initrd-2.6.22.5-31-default
-rw-r--r-- 1 root root 394752 18. Mär 12:32 message
-rw-r--r-- 1 root root 98861 24. Sep 21:11 symsets-2.6.22.5-31-default.tar.gz
-rw-r--r-- 1 root root 398249 24. Sep 21:11 symtypes-2.6.22.5-31-default.gz
-rw-r--r-- 1 root root 114206 24. Sep 21:11 symvers-2.6.22.5-31-default.gz
-rw-r--r-- 1 root root 1074026 24. Sep 21:02 System.map-2.6.22.5-31-default
-rwxr-xr-x 1 root root 1960389 24. Sep 21:09 vmlinux-2.6.22.5-31-default.gz
lrwxrwxrwx 1 root root 27 18. Mär 18:26 vmlinuz -> vmlinuz-2.6.22.5-31-default
-rw-r--r-- 1 root root 1594088 24. Sep 21:02 vmlinuz-2.6.22.5-31-default


und 'grub':


drwxr-xr-x 2 root root 4096 18. Mär 23:53 .
drwxr-xr-x 3 root root 4096 18. Mär 18:26 ..
-rw------- 1 root root 10 18. Mär 12:21 default
-rw------- 1 root root 128 18. Mär 23:53 device.map
-rw------- 1 root root 127 18. Mär 23:53 device.map~
-rw------- 1 root root 60 18. Mär 12:21 device.map.old
-rw-r--r-- 1 root root 7576 21. Sep 23:49 e2fs_stage1_5
-rw-r--r-- 1 root root 7424 21. Sep 23:49 fat_stage1_5
-rw-r--r-- 1 root root 6664 21. Sep 23:49 ffs_stage1_5
-rw-r--r-- 1 root root 6656 21. Sep 23:49 iso9660_stage1_5
-rw-r--r-- 1 root root 8128 21. Sep 23:49 jfs_stage1_5
-rw------- 1 root root 695 18. Mär 18:50 menu.lst
-rw------- 1 root root 681 18. Mär 18:50 menu.lst~
-rw------- 1 root root 1397 18. Mär 12:29 menu.lst.old
-rw-r--r-- 1 root root 6844 21. Sep 23:49 minix_stage1_5
-rw-r--r-- 1 root root 9160 21. Sep 23:49 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 21. Sep 23:49 stage1
-rw-r--r-- 1 root root 103138 18. Mär 18:25 stage2
-rw-r--r-- 1 root root 7004 21. Sep 23:49 ufs2_stage1_5
-rw-r--r-- 1 root root 6228 21. Sep 23:49 vstafs_stage1_5
-rw-r--r-- 1 root root 8796 21. Sep 23:49 xfs_stage1_5


Inhalt der 'device.map':


(hd0) /dev/sda

#(hd3) /dev/sdd
#(hd0) /dev/sda
#(hd1) /dev/sdc
#(hd2) /dev/sdb

#(hd0) /dev/ide/host0/bus0/target0/lun0/disc


Inhalt der 'menu.lst':


# Modified by YaST2. Last modification on Tue Mar 18 12:32:05 CET 2008
default 0
timeout 8
gfxmenu (hd0,0)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz-2.6.22.5-31-default root=/dev/sdb3 vga=0x345 resume=/dev/sdb2 splash=silent showopts
initrd (hd0,0)/boot/initrd-2.6.22.5-31-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
root (hd2,2)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/sdb3 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /boot/initrd-2.6.22.5-31-default


***************


Ich hoffe dieser 'Hilfeschrei' wirkt nicht erschlagend...und mir kann jemand helfen.

(Habe nicht alles an Versuchen gepostet was ich in den letzten 5 Tagen so probiert
habe. Z.B. die Sauerei mit dem W2k8 Bootloader-Editor naja M$ halt...)

Wäre dankbar wenn mir eine Lösung posten könnte für:
- Boot von Platte oder
- Booten via USB-Stick oder
- Booten via XP-Boot.ini

Gruß
stuemmes

towo2099
19.03.08, 12:16
1. Die Partitionierung von sdb ist Schrott!
2. Du hast zwar viel gepostet, nur nicht, wie du versucht hast, grub zu installieren und welcher Fehler auftritt!

stuemmes
19.03.08, 12:31
Hi,

danke für die schnelle Antwort. Aber woher kann man 'sehen' das /dev/sdb 'fertig hat'?
(An der Meldung wie z.B. 'Partition 1 endet nicht an einer Zylindergrenze.')

Also bei der Installation in die Root Partition (/dev/sdb3) habe ich zunächst den Yast verwendet.
Weiterhin habe ich noch den 'direkten Weg' benutzt:


grub-install /dev/sdb3


GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 (hd2,2) (hd2,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd2,2) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> setup --stage2=/boot/grub/stage2 (hd3,0) (hd2,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd3,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd3,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit


Für die Installation auf dem USB-Stick habe ich grub-install wie folgt aufgerufen:


mount /dev/sdd1 /stick
grub-install --recheck --root-directory=/stick /dev/sdd1


GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 (hd2,2) (hd2,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd2,2) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> setup --stage2=/boot/grub/stage2 (hd3,0) (hd2,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd3,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd2,2)"... failed (this is not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd3,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit



Danke & Gruß
stuemmes

stuemmes
19.03.08, 12:58
Hi,

kleiner Nachtrag: leider kommt beim Booten keine Fehlermeldung...

Boote ich vom USB-Stick bleibt Grub mit der Meldung


GRUB

ober links in der Ecke stehen/hängen.

Boote ich hingegen mittels der Boot.ini von XP (Bootsektor von /dev/sdb3)
bleibt der Bildschirm dunkel/schwarz und es passiert nichts mehr...

Gruß
stuemmes

towo2099
19.03.08, 13:14
Wenn du schon die grub-shel benutzt, da fehlt aber noch:


root (hd2,2)
setup (hdX)
quit