PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Hilfe Hilfe Linux ist crashed



Seiten : [1] 2

Enterprise
29.04.05, 22:14
Hallo Forum,

Gestern Abend habe ich meine E-Mails abgefragt ,dann ist meine Suse 9.1
abgestürzt.Habe den PC neu gestartet keine normales hochfahren mehr.
Dann habe ich meine Suse9.1 rein gelegt und versucht zu reparieren.
Hat problem mit hda8 und 9 ob er es reparieren soll habe ich ja gesagt.
Dann war noch ein Problem mit der GRUB Datei die kann er nicht wieder herstellen.
Was kann ich jetzt noch tun ?
Was heißt rescue System kann ich damit noch etwas retten?
Im Grub ist der Verweiß noch auf die Windows Partition kann auch gestartet werden.

stefan-tiger
29.04.05, 22:18
1.) Boote Knoppix oder was anderes
2.) chroot deine Installation
3.) schreibe Grub neu

Enterprise
29.04.05, 22:20
Danke für die schnelle Antwort.
Den Punkt eins kann ich ausführen.
Aber wie soll ich Punkt 2 und 3 ausführen.

Enterprise
29.04.05, 23:31
Wenn ich den Befehl grub-install --recheck /mnt/hda9
Dann kommt immer die Datei sei nur zum lesen da und nicht zum schreiben.

Was kann ich tun?

MiGo
30.04.05, 00:13
versuch mal "mount /mnt/hda9 -o remount,rw" als root.

Enterprise
30.04.05, 17:50
Das geht nicht.

Es kommt immer Kann das Verzeichnis boot/grub nicht anlegen. Das Dateisystem ist nur lesbar.

Was kann ich noch probieren.

DaGrrr
30.04.05, 18:16
versuch mal "mount /mnt/hda9 -o remount,rw" als root.

Steht doch da.

Wie MiGo geschrieben hast sollst du die Partition "rw" mounten und das kannst du mit diesem Befehl machen.

Grüße
DaGrrr

Enterprise
03.05.05, 20:48
Nach dem ich den Befehl eingegeben habe.
Gebe ich grub-install /mnt/hda9 --recheck /mnt/hda9
Dann kommt immer noch Kann nur lesen.

Was kann ich jetzt noch tun ?

pfleidi85
03.05.05, 21:52
Hmmm also ich mounte meine platten wenn ich was retten muss manuell, da hat man auch write rechte. Einfach in die Root Konsole bei Knoppix gehen und "mount /dev/hda9 /mnt/hda9"
Wenn du ne extra boot partition hast, dann musst die auch mounten. Also mal angenommen hda8 wäre deine Boot Partition und hda9 deine root partition dann müsstest noch "mount /dev/hda8 /mnt/hda9/boot" machen. Danach "chroot /mnt/hda9" und dann "grub-install /mnt/hda9 --recheck /mnt/hda9" Müsste eigentlich funktionieren. Hier ist ne gute Anleitung dazu: http://www.linuxforen.de/forums/showthread.php?t=159713&highlight=grub

hp_tux
03.05.05, 21:52
Hallo,


Was kann ich jetzt noch tun ?
hmm, was kommt denn als Ausgabe bei

mount | grep hda9

Gruß

hp_tux

Enterprise
05.05.05, 19:24
Nach dem ich mount | grep hda9 eingegeben habe erscheint
dev/hda9 on /mnt/hda9 type reiserfs /rw,nosuid,nodev)

Wenn ich eingebe chroot /mnt/hda9 erscheint
bash: /dev/null : Keine Berechtigung

Wie kann ich weiter machen ?

hp_tux
05.05.05, 19:33
Hallo,


bash: /dev/null : Keine Berechtigung

ls -l /dev/null

Gruß

hp_tux

Enterprise
05.05.05, 19:45
Nach diesem Code ls -l /dev/null erscheint:

crw-rw-rw- 1 root root 1, 3 1998-05-05 22:32 /dev/null

Gruß

m0L
05.05.05, 20:20
Das geht nicht.

Es kommt immer Kann das Verzeichnis boot/grub nicht anlegen. Das Dateisystem ist nur lesbar.

Was kann ich noch probieren.

Hast du vorher auch gechrootet?

~ejr

Enterprise
05.05.05, 20:25
Hallo hier noch mal wie ich es eingebe vieleicht ist hier etwas falsch.

knoppix@ttyp0[knoppix]$ su
root@ttyp0[knoppix]# mount /mnt/hda9 -o remount,rw
root@ttyp0[knoppix]# fdisk -l

Platte /dev/hda: 41.1 GByte, 41174138880 Byte
16 Köpfe, 63 Sektoren/Spuren, 79780 Zylinder
Einheiten = Zylinder von 1008 * 512 = 516096 Bytes

Gerät Boot Start End Blocks Id System
/dev/hda1 * 1 20321 10241406 c W95 FAT32 (LBA)
/dev/hda2 20321 79768 29961225 f W95 Ext'd (LBA)
/dev/hda5 20321 40641 10241406 83 Linux
/dev/hda6 40641 48195 3807373+ 83 Linux
/dev/hda7 60962 79768 9478318+ 83 Linux
/dev/hda8 48196 49215 514048+ 82 Linux Swap
/dev/hda9 49216 60961 5919921 83 Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge
root@ttyp0[knoppix]# chroot /mnt/hda9
bash: /dev/null: Keine Berechtigung
Knoppix:/#

Gruß

cotelli
05.05.05, 20:37
Nach dem ich mount | grep hda9 eingegeben habe erscheint
dev/hda9 on /mnt/hda9 type reiserfs /rw,nosuid,nodev)

Wenn ich eingebe chroot /mnt/hda9 erscheint
bash: /dev/null : Keine Berechtigung

Wie kann ich weiter machen ?

hi

versuche mal bitte:
umount /dev/hda9
dann
mount /dev/hda9 /mnt
chroot /mnt /bin/bash

gruß cotelli

hp_tux
05.05.05, 20:38
Hallo,

so, nachdem ich nun lange genug Google gelöchert habe, habe ich wohl doch noch die Lösung gefunden:

dev/hda9 on /mnt/hda9 type reiserfs /rw,nosuid,nodev)
Siehe dazu diesen Thread (http://www.knoppix.net/forum/viewtopic.php?p=57999).

Gruß

hp_tux

Enterprise
05.05.05, 20:56
Jetzt kann ich chroot eingeben.
Ich weiß nicht ob dann der Prompt richtig ist.
Habe beide Ausführungen getestet.
Ich glaube grub-install ging nicht richtig.
Ausführung nach coteli :

root@ttyp0[knoppix]# umount /mnt/hda9
root@ttyp0[knoppix]# mount /dev/hda9 /mnt
root@ttyp0[knoppix]# chroot /mnt /bin/bash
Knoppix:/# grub-install /mnt/hda9 --recheck /mnt/hda9
More than one install_devices?
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

Report bugs to <bug-grub@gnu.org>.
Knoppix:/#


Ausführung nach hp_tux :

root@ttyp0[knoppix]# mount -rw /dev/hda9 /mnt/hda9
root@ttyp0[knoppix]# chroot /mnt/hda9
Knoppix:/# grub-install /mnt/hda9 --recheck /mnt/hda9
More than one install_devices?
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

Report bugs to <bug-grub@gnu.org>.
Knoppix:/#

hp_tux
05.05.05, 21:09
Hallo,


Knoppix:/# grub-install /mnt/hda9 --recheck /mnt/hda9
More than one install_devices?
Usage: grub-install [OPTION] install_device
hmm, da stimmt wohl die Syntax nicht so ganz.

Versuch mal

grub-install --recheck /mnt/hda9
oder auch mal einfach nur

grub-install /mnt/hda9

Gruß

hp_tux

Enterprise
05.05.05, 21:15
Habe beide Codes probiert hier :

root@ttyp0[knoppix]# mount /dev/hda9 /mnt
root@ttyp0[knoppix]# chroot /mnt /bin/bash

Knoppix:/# grub-install --recheck /mnt/hda9
/usr/lib/stage1: Not found.

oder

Knoppix:/# grub-install /mnt/hda9
/usr/lib/stage1: Not found.
Knoppix:/#

cotelli
05.05.05, 21:16
oder auch mal einfach nur

grub-install /mnt/hda9

Gruß

hp_tux

hi

sollte man nicht

grub-install /dev/hda
ausführen um ihn in den mbr zu schreiben? habe hier leider lilo sorry.

gruß cotelli

grub-install (http://www.planet-laas.de/Linux/Kapitel2.html)

Enterprise
05.05.05, 21:20
Mit grub-install /dev/hda9

Ist das passiert.

Knoppix:/# grub-install /dev/hda9
/usr/lib/stage1: Not found.
Knoppix:/#

cotelli
05.05.05, 21:28
Mit grub-install /dev/hda9

Ist das passiert.

Knoppix:/# grub-install /dev/hda9
/usr/lib/stage1: Not found.
Knoppix:/#

nicht /dev/hda9 sondern /dev/hda

gruß cotelli

Enterprise
05.05.05, 21:30
Sorry auch mit:

Knoppix:/# grub-install /dev/hda
/usr/lib/stage1: Not found.
Knoppix:/#

cotelli
05.05.05, 21:39
hi
zeig mal bitte deine /boot/grub/menu.lst
gruß cotelli

Detrius
05.05.05, 21:42
Wie schaut denn überhaupt Deine /boot/grub/menu.lst aus?

EDIT: Der cotelli hatte wohl den gleichen Gedanken. :)

Enterprise
05.05.05, 21:46
Ich glaub da ist nicht viel drin !!!

root@ttyp0[grub]# more menu.lst
# Modified by YaST2. Last modification on Thu May 5 15:12:02 2005

root@ttyp0[grub]#

Detrius
05.05.05, 22:03
Also entweder benutzt Suse eine andere (da will ich mal lieber nichts ausschließen..) oder Du solltest da mal sinnvolle Werte rein schreiben. So ohne Inhalt wird das nichts den Bootloader neu zu installieren. ;)

cotelli
05.05.05, 22:04
Ich glaub da ist nicht viel drin !!!

root@ttyp0[grub]# more menu.lst
# Modified by YaST2. Last modification on Thu May 5 15:12:02 2005

root@ttyp0[grub]#

das ist nicht allzuviel :)
wie gesagt habe lilo, aber ein versuch ist es wert.



default=0
timeout=5
title suse 9.1
kernel (hd0,8)/boot/deinkernel root=/dev/hda9


deinen kernel nach /boot kopieren und lies dich hier (http://www.planet-laas.de/Linux/Kapitel2.html) und hier (http://redhat.camtp.uni-mb.si/redhat/linux/9/en/doc/RH-DOCS/rhl-rg-de-9/s1-grub-configfile.html)
noch mal rein.
gruß cotelli

Enterprise
05.05.05, 22:16
Habe noch eine andere menu.lst gefunden.
Kann ich damit etws anfangen.

root@ttyp0[grub]# more menu.lst
# Modified by YaST2. Last modification on Fri Apr 29 00:31:55 2005


color white/blue black/light-gray
default 0
timeout 8
gfxmenu (null)/

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux
kernel (null)/ root= vga=0x31a splash=silent desktop resume=/dev/hda8 showopts
initrd (null)/

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

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Diskette
root (fd0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (null)/ root= showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic m
axcpus=0 3
initrd (null)/

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Speichertest
kernel (null)/
root@ttyp0[grub]#