Linux 14.990 Themen, 106.474 Beiträge

grub

dan5 / 4 Antworten / Flachansicht Nickles

hallo,
ich bin dabei, mir Linux brauchbar herzurichten. Ich habe erst mal Kubuntu auf einer zweiten HD installiert (als Slave), auf der HD1 habe ich diverse Windows-Partitionen.
Zunächst lief es so: bei Start kam zuerst GRUB, dort konnte ich zB. Win auswählen, dann kam die Win-Auswahl zwischen 2000, XP usw.
Ich weiß nicht, was ich gemacht habe, aber jetzt spinnt Grub, zeigt mir nur eine ganze Seite voll blinkender "GRUB" und hängt.
Um überhaupt noch rein zu kommen, habe ich einen anderen Bootmanager aktiviert (paragon), mit dem ich wenigsten in die erste Win-Partition rein komme. Alles andere ist nicht zugänglich.
Ich müsste ja wohl den Grub irgendwie reparieren oder neu aufsetzen.
Kann jemand dazu etwas sagen. Ich bin mit Linux halt noch Neuling.
dan

bei Antwort benachrichtigen
KarstenW dan5 „grub“
Optionen

Windowssysteme haben die blöde Angewohntheit den MBR einfach so zu überschreiben. Wenn grub dein Windows booten soll, dann brauchst du nur grub noch mal neu in den MBR installieren. Dazu kann man eine Live CD wie Knoppix nutzen.
Oder du hast in der Datei /boot/grub/menu.lst ein paar Sachen falsch eingestellt. Diese Datei ist für die Menüs beim Rechnerstart wichtig.

Poste mal die Datei /boot/grub/menu.lst und am besten noch die Ausgabe von "fdisk -l" (kleines L) wegen der Partitionsangaben.

Ich nutze Debian und bei Debian wird die Datei /boot/grub/menu.lst automatisch erstellt, wenn man den Befehl "update-grub" eingibt.
Du mußt wahrscheinlich "su update-grub" bei Ubuntu eintippen.

Du mußt dich halt mit grub etwas genauer beschäftigen:

http://www.gnu.org/software/grub/manual/

Wenn Windows wiedermal den MBR überschreibt, dann kannst du mit einer Live CD den grub in den MBR neu installieren:

http://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-natively

....

3.2 Installing GRUB natively

Caution: Installing GRUB's stage1 in this manner will erase the normal boot-sector used by an OS.

GRUB can currently boot GNU Mach, Linux, FreeBSD, NetBSD, and OpenBSD directly, so using it on a boot sector (the first sector of a partition) should be okay. But generally, it would be a good idea to back up the first sector of the partition on which you are installing GRUB's stage1. This isn't as important if you are installing GRUB on the first sector of a hard disk, since it's easy to reinitialize it (e.g. by running `FDISK /MBR' from DOS).

If you decide to install GRUB in the native environment, which is definitely desirable, you'll need to create a GRUB boot disk, and reboot your computer with it. Otherwise, see Installing GRUB using grub-install.

Once started, GRUB will show the command-line interface (see Command-line interface). First, set the GRUB's root device4 to the partition containing the boot directory, like this:

grub> root (hd0,0)

If you are not sure which partition actually holds this directory, use the command find (see find), like this:

grub> find /boot/grub/stage1

This will search for the file name /boot/grub/stage1 and show the devices which contain the file.

Once you've set the root device correctly, run the command setup (see setup):

grub> setup (hd0)

This command will install the GRUB boot loader on the Master Boot Record (MBR) of the first drive. If you want to put GRUB into the boot sector of a partition instead of putting it in the MBR, specify the partition into which you want to install GRUB:

grub> setup (hd0,0)

If you install GRUB into a partition or a drive other than the first one, you must chain-load GRUB from another boot loader. Refer to the manual for the boot loader to know how to chain-load GRUB.

After using the setup command, you will boot into GRUB without the GRUB floppy. See the chapter Booting to find out how to boot your operating systems from GRUB.

.....



Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen