Linux 15.009 Themen, 106.826 Beiträge

Wo ist der Ubuntu bootloader geblieben?

Alex534 / 16 Antworten / Flachansicht Nickles

Hallo Leute,

folgendes Problem. Habe Vista drauf. Habe auf eine extra Festplatte Ubuntu installiert. Beim Starten des Rechners kommt aber kein Bootloader wo ich auswählen kann ob ich Vista oder Ubuntu haben will. Es wird weiterhin automatisch Vista gestartet. Wie kann ich das ändern, dass ich Bootloadermenü zu sehen bekomme?
Gruß
Alex

bei Antwort benachrichtigen
KarstenW Alex534 „Wo ist der Ubuntu bootloader geblieben?“
Optionen

Das Einfachste ist immer es so zu machen wie es im Handbuch von grub steht:

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:

Die grub shell wird mit dem befehl grub gestartet:

grub.

Danach ist man in der Eingabeaufforderung von grub.

grub> root (hd0,0)

--> mit root ist NICHT die /Partition von Linux gemeint, sondern diejenige Partition wo sich die grub Dateien im Verzeichnis /boot befinden. Das kann die / Partition sein, wenn sich /boot in dieser Partiton befindet (und nicht auf eine eigene /boot Partition ausgelagert wurde).

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

grub> find /boot/grub/stage1

---> Wenn du nicht weißt wo sich die grub Dateien befinden, dann kannst du erstmal diesen Befehl in der grub Shell eingeben, und anschließend den root (..) Befehl eingeben.

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)

--> Installation von grub in den MBR der ersten Festplatte, wenn grub Windows und Linux starten soll.

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)

--> Man kann auch grub in die / Partition von Linux installieren und grub von einem anderen Bootmanager , zum Beispiel vom Acronis Bootmanager starten lassen. Bei Debian wird man bei der Installation immer vorher gefragt wohin der grub installiert werden soll (damit ein Bootmanager im MBR nicht automatisch überschrieben wird)

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.

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

Du kannst dazu irgendeine Live-CD (Knoppix oder Ubuntu) nutzen .

Hier ist noch ein schöner Artkel zu grub und Vista:

http://www.tecchannel.de/pc_mobile/linux/429774/linux_know_how_der_bootmanager_grub/index4.html

Man muß wissen das grub bei 0 (NULL) anfängt zu zählen. Beispielsweise ist /dev/hda1 bei grub (hd0,0).

Du kannst grub auch in die / Partition von Linux installieren und grub von einem anderen Bootmanager aus starten.

PS: Entschludige das half english , halb Deutsch ;-)




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