• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]windows in grub nicht angezeigt

OP
J

jackey

Newbie
danke für eure 2 befehle... leider bekomme ich bei beiden einen fehler -.-

bei dem von adime kommt folgendes raus:

Code:
linux:~ # usr/sbin/grun-install.unsupported /dev/sda
-bash: usr/sbin/grun-install.unsupported: No such file or directory

und bei dem von pingu! kommt das:

Code:
linux:~ # grub-install --recheck --root-directory=/boot /dev/sda


    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 --force-lba (hd0,0) (hd0,0)

Error 17: Cannot mount selected partition
grub> quit

adime, wie meinst du das mit mal über yast probieren? wenn ich in yast bei software installieren nach grub suche, wird das ding (also grub) als bereits installiert aufgelistet
 

admine

Ultimate Guru
jackey schrieb:
danke für eure 2 befehle... leider bekomme ich bei beiden einen fehler -.-
bei dem von adime kommt folgendes raus:

Code:
linux:~ # usr/sbin/grun-install.unsupported /dev/sda
-bash: usr/sbin/grun-install.unsupported: No such file or directory
Hm ... ok, dann gibts das Script in der 11.1 nicht mehr.

jackey schrieb:
adime, wie meinst du das mit mal über yast probieren? wenn ich in yast bei software installieren nach grub suche, wird das ding (also grub) als bereits installiert aufgelistet
YaST -> System -> Konfiguration des Bootloaders
Da kannst du dir alle Konfigs ansehen, ob sie ok sind und auch den Bootloader neu installieren lassen.
Achte dabei unter "Bootloader-Installation" genau darauf, wohin du ihn installieren lässt.
 
OP
J

jackey

Newbie
mhh, wenn ich in yast den bootloader installieren lassen will, kommt wieder der error hier:

Code:
    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 --force-lba (hd0,0) (hd0,0)

Error 17: Cannot mount selected partition
grub> quit

ich glaube das beste wird sein, wenn ich suse nochmal installiere :/ oder?
 
OP
J

jackey

Newbie
so, habe den pc neu gestartet, und dann kam zwar das grub ding, aber in textausführung.

also da stand oben irgendwas in eckigen klammern (habs nicht abgeschrieben -.-) und dann konnte ich tab drücken und einige befehle die ich eingeben konnte kamen . ich konnte dann irgendwas eingeben, aber ich wusste hald nicht was. -.-
 

pingu!

Member
Hi,
Das ist die commanline von grub. Von hier aus kann Linux und Windws auch gestartet werden:

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

Code:
grub> root (hd0,0)
grub> kernel /boot/vmlinuz root=/dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK230T2A0YB7B-part1
grub> initrd /boot/initrd

EDIT:
folgendes muss noch eingegeben werden:
Code:
grub> boot

So solltest Du SuSe starten können. Aber wird vielleicht auch nicht erfolgreich sein.

Poste doch bitte mal:
Code:
ls -l /boot/grub/
rgds pingu!
 
OP
J

jackey

Newbie
also, ich habe hier mal das, was ich als root eingegeben habe, was du wolltest:

Code:
linux:~ # ls -l /boot/grub/
total 228
-rw------- 1 root root    126 Dec 29 13:49 device.map
-rw------- 1 root root    126 Dec 29 13:32 device.map.old
-rw-r--r-- 1 root root   8660 Dec  3 12:13 e2fs_stage1_5
-rw-r--r-- 1 root root   7844 Dec  3 12:13 fat_stage1_5
-rw-r--r-- 1 root root   7120 Dec  3 12:13 ffs_stage1_5
-rw-r--r-- 1 root root   7116 Dec  3 12:13 iso9660_stage1_5
-rw-r--r-- 1 root root   8700 Dec  3 12:13 jfs_stage1_5
-rw------- 1 root root    865 Dec 29 13:49 menu.lst
-rw------- 1 root root    868 Dec 29 13:32 menu.lst.old
-rw------- 1 root root    848 Dec 27 21:31 menu.lst~
-rw-r--r-- 1 root root   7336 Dec  3 12:13 minix_stage1_5
-rw-r--r-- 1 root root   9744 Dec  3 12:13 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 Dec  3 12:13 stage1
-rw-r--r-- 1 root root 103734 Dec 27 20:14 stage2
-rw-r--r-- 1 root root   7380 Dec  3 12:13 ufs2_stage1_5
-rw-r--r-- 1 root root   6720 Dec  3 12:13 vstafs_stage1_5
-rw-r--r-- 1 root root   9544 Dec  3 12:13 xfs_stage1_5

Das was du als erstes als code geschrieben hast, das soll ich also mal da eingeben, also in diese commanline von grub?

im moment starte ich suse, indem ich die dvd einlege und von der boote, dann geh ich auf installation und dann auf abbrechen ^^ da wo ich dann system reboot oder so machen kann, wähl ich eben, dass die suse partition gestartet werden soll :D

Dieses grub commanline, ist das schon das was wir/ich haben wollen , nur in textausführung und wir es nurnoch grafisch brauchen, oder ist das was anderes?
 

pingu!

Member
Hi,
Danke für das file.
Die beiden stages (e2fs_stage1_5, stage2 und das file device.map sind vorhanden.
Dieses grub commanline, ist das schon das was wir/ich haben wollen , nur in textausführung und wir es nurnoch grafisch brauchen, oder ist das was anderes?
Wenn Du das grafische boot menu meinst:
Hier wird durch selektieren von einem OS (Linux. BSD oder Linux) der boot prozess gestartet, je nachdem wie dies im file /boot/grub/menu.lst definiert wurde.
in der commandline (bash-like) von grub wird dies mit commands gemacht. Dies sind die commands die im file /boot/grub/menu.lst sichtbar sind:
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX
root (hd0,0)
kernel /boot/vmlinuz root=/dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK230T2A0YB7B-part1 splash=silent showopts
initrd /boot/initrd
das sieht dann in der grub-commandline ähnlich aus, muss aber eingetippt werden:
Code:
grub> root (hd0,0)
grub> kernel /boot/vmlinuz root=/dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK230T2A0YB7B-part1 splash=silent showopts
grub> initrd /boot/initrd
grub> boot
rgds pingu!
 
OP
J

jackey

Newbie
also heißt das, dass ich jetzt theoretisch wieder windows und suse booten könnte, mit diesem ding? Das ist aber dann keine dauerlösung, oder? Hast du evtl noch nen tip, wie ich den bootmanager wieder grafisch bekomme und das system einfach mit den pfeiltasten auswählen könnte? ^^
 

pingu!

Member
ja, das ist zZ nur mal um zu testen, ob Du Suse / Windows booten kannst.
Für Windows: (falls Windows auf der 2 Harddisk ist)
Code:
grub> root (hd1,0)
grub> map (hd0) (hd1)
grub> map (hd1) (hd0)
grub> chainloader +1
grub> boot

Wenn das geht (Windows und SuSe) poste doch bitte nochmals
Code:
less /boot/grub/menu.lst

EDIT:
Windows:
Code:
grub> root (hd0,1)
grub> chainloader +1
grub> boot
 
OP
J

jackey

Newbie
jo, mach ich sofort :) ich poste gleich obs geht oder nicht :)

danke schonmal, für die schnelle und gute hilfe :)
 

pingu!

Member
Hi,
noch eine Sache.
lösche mal das file im /boot/grub/menu.lst~
Aber nicht das menu.lst sondern menu.lst~ !!
Code:
rm -fr /boot/grub/menu.lst~
poste dann nochmals das:
Code:
cat /boot/grub/device.map
 
OP
J

jackey

Newbie
hey, also ich habe jetzt versucht suse zu booten, aber wenn ich
Code:
root(hd1,0) eingebe, dann sagt er mir dass es ein unbekanntes dateisystem ist.

dass das jetzt so lang gedauert hat, tut mir leid :S ich musste erstmal den code mitm handy fotografieren :D ein zettel war nicht in meiner reichweite *g* (bin körperlich bissl eingeschränkt ;))

so, die menu.lst~ habe ich gelöscht, das andere poste ich gleich, muss nur schnell zu root wechseln
 
OP
J

jackey

Newbie
hier: das ist die device.map
Code:
(hd0)	/dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK230T2A0YB7B
(hd1)	/dev/disk/by-id/ata-HDS722525VLSA80_VN6JTECFFK6N5A
 

pingu!

Member
ok,
Das file device.map sieht korrekt aus.
Ist die bootreihenfolge im BIOS korrekt gesetzt (zuerst hd0, dann hd1)?
Kannst du im grub noch folgendes versuchen?
Code:
grub> find /boot/grub/stage1
Wenn folgende message kommt: Error 15: File not found
dann:
Code:
grub> find /grub/stage1
und dann:
Code:
grub> device (hd0) /dev/hda
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
anschliessend den pc rebooten. und dann nochmals versuchen ob Linux nun startet.
 
OP
J

jackey

Newbie
hey,

wenn ich
Code:
grub> find /grub/stage1
eingebe, dann sagt er auch , file not found :S soll ich dann einfach weiter tippen , oder klappt das nicht?

wäre es schlauer einfach windows und suse nochmal zu installieren oder gibt es in deinen augen noch einen rettungsweg ^^
 

pingu!

Member
probier mal: (mach das aber im SuSE mit einem Terminal/Konsole.... so musst du nicht immer booten !!!)

grub> find /TABULATORTASTE
sieht bei mir so aus:
  • grub> find /
    Possible files are: lost+found vmlinuz-2.6.18-4-686 config-2.6.18-4-686 grub c
    onfig-2.6.18-6-686 System.map-2.6.18-4-686 initrd.img-2.6.18-4-686 initrd.img-2
    .6.18-4-686.bak System.map-2.6.18-6-686 vmlinuz-2.6.18-6-686 initrd.img-2.6.18-
    6-686 initrd.img-2.6.18-6-686.bak
Wenn du auch etwas ähniliches bekommst dann
grub> find /grub/TABULATORTASTE
  • grub> find /grub/
    Possible files are: device.map stage1 stage2 e2fs_stage1_5 fat_stage1_5 jfs_st
    age1_5 minix_stage1_5 reiserfs_stage1_5 xfs_stage1_5 default menu.lst menu.lst~

Wenn du das nicht bekommst, findet grub die stage1 - stage1.5 und stage 2 nicht. diese müssen aber vorhanden sein, wenn ich den output von ls -l /boot/grub/ anschaue.

Wenn du noch keine wichtigen daten auf dem Linux und Windos hast wäre es vielleicht eine gute idee die beiden neu aufzusetzen....

Aber: zuerst Windows neu installieren und dann erst Suse (am besten die platte vor der Windows installation platt machen)
rgds pingu!
 
OP
J

jackey

Newbie
mhh, wenn ich da eingebe "find/" und dann die tab taste drücke, dann schreibt er mir einfach "find/" nochmal hin.
 

pingu!

Member
jackey schrieb:
mhh, wenn ich da eingebe "find/" und dann die tab taste drücke, dann schreibt er mir einfach "find/" nochmal hin.

  • 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> find /
zwischen find und / muss ein blank sein
 
OP
J

jackey

Newbie
so, habe das mit find / nochmal probiert.

wenn ich das eingebe, sagt er mir "Could not mount partition" <- oder so ähnlich

EDIT: Ich formatier jetzt mal :)
 
Oben