sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Superdigi
15 Post subject: [gelöst] Grub Error 2  PostPosted: Apr 19, 2008 - 12:23 PM



Joined: Apr 19, 2008
Posts: 12

Status: Offline
Nach einem Motherboardaustausch wurde mir im Computerladen gesagt, ich müsse das Betriebssystem neu installieren. Nachdem ich sidux drüberinstalliert habe startet mein Rechner nicht mehr und Grub bringt Error 2. Laut Grub-Doku bedeutet das:

Quote:
2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.


Was soll ich jetzt tun?


Last edited by Superdigi on May 15, 2008 - 09:44 AM; edited 2 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
michaaa62
Post subject: RE: Grub Error 2  PostPosted: Apr 19, 2008 - 01:45 PM



Joined: Feb 24, 2007
Posts: 676
Location: Berlin, Germany
Status: Offline
Wie soll man das wissen???

Hi Superdigi,
willkommen bei sidux.
Poste mal die Ausgaben von der Live-CD
cfdisk /dev/sda ...
ls -l /dev/disk/by-uuid
und des installierten System (muss also gemountet werden)
cat /boot/grub/menu.lst

Dann kann man mal gucken, ob und wie Hilfe möglich ist.

cheers Micha

_________________
http://sidux.com/PNphpBB2-viewtopic-t-2403.html
 
 View user's profile Send private message  
Reply with quote Back to top
stuagux
Post subject: RE: Grub Error 2  PostPosted: Apr 19, 2008 - 03:32 PM



Joined: Jan 05, 2007
Posts: 7

Status: Offline
Superdigi's Problem hat eine ähnliche Meldung gebracht, wie bei meiner Maschine nach der Installation von "nyx".

Seit den CD-Ausgaben von "eros" hat es mit der Installation auch an meinen Maschinen nicht mehr ohne weiteres funktioniert. Zunächst ging es nicht bei der i386+amd64 DVD, jetzt bei überhaupt keiner der Ausgaben von "nyx" (weder DVD+ noch CD-lite).

Vielleicht hängt es mit Grub zusammen. Bei mir kommt die "Bad file or directory type Meldung" selbst nach einer scheinbar erfolgreichen Installation (mit Grun zur Partition installiert - wie gehabt). Ob es normal ist, daß keine andere sidux-Installation auf der Platte sein darf, weiß ich nicht. Jedenfalls kann ich mich an kein vergleichbares Hindernis erinnern. Nach der umständlichen Entfernung derselben, "erfolgreiche" Installation von "nyx" und "Reboot", dann die enttäuschende Meldung "Bad file..." nach der Installation.

Ich kann mir helfen durch eine CD Installation von amd64-eros und zahlreichen Updates, aber das ist keine echte Lösung. Als Nichtprogrammierer hoffe ich, daß einer der Schlauköpfe bei dieser sehr guten Organisation das Haar in der Suppe findet. Meine Erfahrung sagt mir, es ist wohl nur eine Frage der Zeit, bis auch dieses Geheimnis gelüftet wird. Wink

Weiß jemand mehr darüber? Vielen Dank.

stuagux
 
 View user's profile Send private message  
Reply with quote Back to top
michaaa62
Post subject: RE: Grub Error 2  PostPosted: Apr 19, 2008 - 04:25 PM



Joined: Feb 24, 2007
Posts: 676
Location: Berlin, Germany
Status: Offline
In den Release Notes ist ein Abschnitt über die Neuinstallation von grub bei neu angelegten Ext3-Partitionen, da grub nicht automatisch oder in einer veralteten Version nicht mit den neuen Features umgehen kann.
Vielleicht hilft die Neuinstallation von grub.

Grüße Micha

_________________
http://sidux.com/PNphpBB2-viewtopic-t-2403.html
 
 View user's profile Send private message  
Reply with quote Back to top
Steve`
Post subject: RE: Grub Error 2  PostPosted: Apr 19, 2008 - 06:22 PM



Joined: Jun 17, 2007
Posts: 521
Location: Buchholz i.d.N.
Status: Offline
Ich habe das Problem mit dem 64bit grub ebenfalls gehabt. Ich habe viel getestet und konnte es auch nicht umgehen.

Der einzige Workarround ist, einen funktionierenden Grub in den mbr zu installieren und alle nicht funktionierenden Partitionen über einen weiteren grub in der Partition anzusprechen.

_________________
- stell @ jabber.crashmail.de -
[blog.crashmail.de] [last.fm-Profil]
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Superdigi
Post subject:   PostPosted: Apr 19, 2008 - 07:29 PM



Joined: Apr 19, 2008
Posts: 12

Status: Offline
Eigentlich habe ich sidux in die gleiche Partition installiert wo auch die alte Siduxinstallation war, deswegen kann es eigentlich nicht sein, dass mehrere Linux-Installationen auf meinen Festplatten liegen. Was vielleicht ein Problem sein könnte: Ich habe drei Festplatten mit insgesamt zehn Partitionen. Nach dem Motherboardaustausch waren /dev/sda und /dev/sdc vertauscht.

Code:
grub-install --recheck --no-floppy /dev/sdc


bringt das Ergebnis

Code:
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.


Code:
cfdisk /dev/sda


bringt:

Code:
                              Disk Drive: /dev/sda
                       Size: 300067970560 bytes, 300.0 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 36481

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sda1                    Primary   Linux ext3                      102001.70
    sda5                    Logical   Linux ext3                      102001.70
    sda6                    Logical   Linux ext3                       96063.05


Code:
cfdisk /dev/sdc


bringt:

Code:
Disk Drive: /dev/sdc
                        Size: 60022480896 bytes, 60.0 GB
              Heads: 255   Sectors per Track: 63   Cylinders: 7297

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sdc1                    Primary   Linux ext3                        8636.55
    sdc5                    Logical   Linux swap / Solaris              1093.97
    sdc6                    Logical   Linux ReiserFS                   10191.13
    sdc7                    Logical   W95 FAT32                        19921.63
    sdc8                    Logical   W95 FAT32                        20168.39
                            Pri/Log   Free Space                           8.23


Code:
ls -l /dev/disk/by-uuid


bringt:

Code:
total 0
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 19c2a145-ce81-4d49-bc92-c90795a8a409 -> ../../sdc5
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 31d5b32e-87fb-4f04-9c18-6234222d838d -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 4C36-F4D2 -> ../../sdc8
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 6828-198B -> ../../sdc7
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 6dcf12f7-6303-4d9b-8736-f8ca21a38a91 -> ../../sda6
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 7b11a1ac-1a70-4068-a9c5-904a82b97cef -> ../../sdc1
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 A53E-F1B6 -> ../../sdb5
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 b8bf67fc-7139-4c02-9bf4-b65192f2c26b -> ../../sdc6
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 cc171098-e6f3-49eb-abc1-fbee04511c55 -> ../../sda1
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 CEB0FAD1B0FABED1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2008-04-19 16:35 DCEA-2794 -> ../../sdb6


In der /boot/grub/menu.lst steht:

Code:
title      Debian GNU/Linux, kernel 2.6.24-2.6.24.4.slh.5-sidux-686
root      (hd2,0)
kernel      /boot/vmlinuz-2.6.24-2.6.24.4.slh.5-sidux-686 root=UUID=7b11a1ac-1a70-4068-a9c5-904a82b97cef ro  quiet vga=791
initrd      /boot/initrd.img-2.6.24-2.6.24.4.slh.5-sidux-686

title      Debian GNU/Linux, kernel 2.6.24-2.6.24.4.slh.5-sidux-686 (single-user mode)
root      (hd2,0)
kernel      /boot/vmlinuz-2.6.24-2.6.24.4.slh.5-sidux-686 root=UUID=7b11a1ac-1a70-4068-a9c5-904a82b97cef ro  quiet vga=791 single
initrd      /boot/initrd.img-2.6.24-2.6.24.4.slh.5-sidux-686

title      Debian GNU/Linux, kernel memtest86+
root      (hd2,0)
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows 2K/XP/2003/Vista (sdb1)
rootnoverify (hd1,0)
makeactive
chainloader +1
 
 View user's profile Send private message  
Reply with quote Back to top
devil
Post subject:   PostPosted: Apr 19, 2008 - 07:32 PM
Team Member


Joined: Nov 24, 2006
Posts: 2866
Location: berlin
Status: Offline
die menu.lst verweist auf sdc1 als root partition.
ob das stimmt, musst du überprüfen.
wenn es doch sda1 ist, musst du das ändern.

greetz
devil

_________________
>>we are sidux - resistance is futile - you will be assimilated<<
 
 View user's profile Send private message  
Reply with quote Back to top
michaaa62
Post subject:   PostPosted: Apr 19, 2008 - 09:06 PM



Joined: Feb 24, 2007
Posts: 676
Location: Berlin, Germany
Status: Offline
Hm,
ich habe noch nie mehrere Festplatten verwalten müssen/dürfen, aber nach meiner Auffassung würde immer von der erste Platte am ersten Controller gestartet werden. Diese musst du anhand deines Hardwareaufbaus identifizieren. Der Partitionsaufbau muss dir dann als Anhaltspunkt für den Ort dienen, in den Grub installiert wird.
devil hat dir schon den Hinweis auf sdc1 als Rootpartition gegeben, was auch zur Ausgabe der UUIDs aus der ls-Befehlsausgabe passt. Aber ob es tatsächlich die richtige Partition auf der richtigen Festplatte ist musst du entscheiden.
Hilfreich ist es sich klare Partitionsnamen, sogenannte Labels auszudenken, diese zuzuweisen und zu benutzen. Dann ist immer klar, welches System oder welche Daten wo liegen.

Wenn ich das richtig sehe ist sdb eine reine Windowsfestplatte, kommt also gar nicht in Frage.
Sollte nun doch sda die Bootloderfestplatte sein muss du im grub-install Befehl auf die die root Partition verweisen, also z.B grub-install --no-floppy --recheck --root-directory=/dev/sdc1 /dev/sda.
Dieses Beispiel installiert grub(stage1) in den MBR der ersten Platte und liest die Bootoptionen aus dem Verzeichnis /boot/grub auf sdc1.
Es möge helfen!

Grüße Micha

_________________
http://sidux.com/PNphpBB2-viewtopic-t-2403.html
 
 View user's profile Send private message  
Reply with quote Back to top
Superdigi
Post subject:   PostPosted: Apr 21, 2008 - 12:33 PM



Joined: Apr 19, 2008
Posts: 12

Status: Offline
In der menu.lst steht nirgendwo was von sdc1. Der Fehler kommt übrigens schon bevor die Betriebssystem-Auswahl erscheint. Was mich wundert ist, dass der Fehler direkt nach dem Installieren auftrat und sidux eigentlich nie von Platte gestartet ist.

Code:
grub-install --no-floppy --recheck --root-directory=/dev/sdc1 /dev/sda


brachte nur:

Code:
mkdir: cannot create directory `/dev/sdc1/boot': Not a directory
 
 View user's profile Send private message  
Reply with quote Back to top
michaaa62
Post subject:   PostPosted: Apr 21, 2008 - 01:53 PM



Joined: Feb 24, 2007
Posts: 676
Location: Berlin, Germany
Status: Offline
Also, (hd2,0) ist die grub Bezeichung für /dev/sdc1 was ja in der Menüliste für alle sidux-Einträge steht. Hast du mal versucht diese Einträge auf sda1 umzuleiten, indem du (hd0,0) verwendest?

Grüße Micha

_________________
http://sidux.com/PNphpBB2-viewtopic-t-2403.html
 
 View user's profile Send private message  
Reply with quote Back to top
Superdigi
Post subject: na  PostPosted: Apr 21, 2008 - 02:04 PM



Joined: Apr 19, 2008
Posts: 12

Status: Offline
Genau das habe ich gemacht, hat aber auch nichts gebracht. Außerdem liegt das System ja auch auf /dev/sdc1 und nicht auf /dev/sda1.

Ich scheine übrigens mit dem Problem wohl nicht alleine dazusthen:

http://www.scroogle.org/cgi-bin/nbbw.cgi?q=grub%20%22error%202%22
 
 View user's profile Send private message  
Reply with quote Back to top
stuagux
Post subject: na  PostPosted: Apr 21, 2008 - 02:59 PM



Joined: Jan 05, 2007
Posts: 7

Status: Offline
Weitere Hintergründe und eine große Pause:

Meine Hardware Konfig:

sda1 (sda - SATA2) - Windows XP
sdb1 (sdb - SATA2) - Linux System (bisher Mandrake, dann Kanotix, zuletzt - seit einem Jahr - sidux)
sdc (sdc - SATA1) - Backup
Mboard: Asus P5B Deluxe WiFi-AP Ed.

Da nur eine von vielen Installationsversuchen in allen Varianten, die nicht das Löschen von dem noch funktioniernden Teil meines Rechners notwendig gemacht hätten, und zwar auf sdb 1, aber auch auf sda8 am Wochenende erfolgreich gelaufen ist, aber dann nicht zum Laufen zu bringen war, und angesichts der wachsenden Zahl von Betroffenen, habe ich nun Abstand von "nyx" 2008-1 genommen und bin "reumütig" zu einem alten Release zurückgekehrt, denn offensichtlich ist für meine Maschine nyx nix.

Superdigi und andere im selben Boot würden sich vielleicht für das Release 2007-4 "eros" interessieren. Die habe ich gerade wieder installiert und die Updates laufen seit ein paar Stunden schon. Es scheint aber nicht ohne weiteres auf dem Internet zu finden zu sein.

Obwohl das "nyx" Release mit Verspätung kam und man vielleicht auf das nächste Release für eine würdige Reparatur der InstallierungsCD warten muß, wäre es wirklich schön, wenn man auf ein außerplanmäßiges Release in Kürze hoffen dürfte, etwa ein 2008-1.5, oder zumindest ein für alle funktionierendes Release wieder auf dem Server zugänglich macht, denn "sidux ist eine umfassende Debian sid basierte Live-CD mit besonderem Augenmerk auf Festplatteninstallationen" und außerdem ein bisher sehr gutes System - ehrlich!

Grüße
stuagux
 
 View user's profile Send private message  
Reply with quote Back to top
michaaa62
Post subject: na  PostPosted: Apr 21, 2008 - 03:46 PM



Joined: Feb 24, 2007
Posts: 676
Location: Berlin, Germany
Status: Offline
Mit grub gesucht hast du auch schon, indem du die Tab-Taste für die Vervollständigung benutzt?
Das kann sowohl mit den Befehlen find und configfile sehr hilfreich sein.
Mir gehen dann auch die Ideen aus. Embarassed

Grüße Micha

_________________
http://sidux.com/PNphpBB2-viewtopic-t-2403.html
 
 View user's profile Send private message  
Reply with quote Back to top
Superdigi
Post subject: Neuer Fehler  PostPosted: Apr 22, 2008 - 12:38 PM



Joined: Apr 19, 2008
Posts: 12

Status: Offline
Jetzt habe ich die Reihenfolge meiner Festplatten im Bios geändert und sidux nochmal neu installiert. Der Installer zeigte wie einen Fehler an, dass ich nach /dev/sdc1 installieren will (siehe Bild) tat es aber trotzdem.

Auf einmal startet auch Grub, allerdings wird die Grafik nicht gefunden und nach der Auswahl im Nur-Text-Modus gibt es eine neue Fehlermeldung:

Code:
Error 15: File not found
 
 View user's profile Send private message  
Reply with quote Back to top
x-un-i
Post subject:   PostPosted: Apr 22, 2008 - 12:56 PM



Joined: Nov 25, 2006
Posts: 533

Superdigi wrote:

..........................

grub-install --no-floppy --recheck --root-directory=/dev/sdc1 /dev/sda

..........................
Code:
mkdir: cannot create directory `/dev/sdc1/boot': Not a directory


das ist ja wohl klar Zeile ist nicht Korrekt wie es im Manual zu lesen ist.

Ein besuch im IRC hilft manchmal auch.

_________________
Why do strong arms fatigue themselves with frivolous dumbbells?
To dig a vineyard is worthier exercise for men.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio