Supportnet Computer
Planet of Tech

Supportnet / Forum / Linux

wie Bootloader ändern?





Frage

Hallo, ich habe mir vor kurzem eine zusätzliche Partition mit RedHat9 eingerichtet.Wenn ich jetzt den PC anschalte kommt nach dem BIOS dr Bildschirm in dem ich wählen kann ob ich Linux oder XP starten will.Wenn ich jetzt keine auswahl treffe wird automatisch Linux gestartet.Was muß ich ändern,daß wenn ich keine Auswahl treffe XP gestartet wird?Wie der Bootloader heißt weis ich leider nicht. Andi(Linuxanfänger)

Antwort 1 von semi

Ist es Lilo oder Grub? Prüfe es mal.

Antwort 2 von anwi1

es ist grub.

Antwort 3 von semi

  • Öffne die Datei /boot/grub/grub.conf
    mit einem Editor Deiner Wahl
    z.B.
    nano -w /boot/grub/grub.conf
  • und ändere den Eintrag
    default 0
    (Die Zählung beginnt mit 0)
  • Speichern
  • Grub starten
    grub
  • Root einstellen (Primary Master)
    root(hd0,0)
  • In MBR schreiben (Primary Master MBR)
    setup (hd0)
  • und raus mit quit

    Gruß,
    Michael


  • Antwort 4 von anwi1

    danke,daß probiere ich gleich aus.

    Andi

    Antwort 5 von semi

    Lese auch mal das hier

    Antwort 6 von anwi1

    in was soll ich den default 0 ändern?

    Antwort 7 von semi

    Ich nehme an, dass bei Dir in grub.conf zwei Betriebssysteme stehen.
    (So wie in dem Beispiel von der Gentoo Seite.)
    
    default 0
    timeout 30
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    
    title=Mein Gentoo Linux
    root (hd0,0)
    kernel (hd0,0)/boot/bzImage root=/dev/hda3
    
    # Beispiel für ein weiteres Betriebssytem
    title=Windows XP
    root (hd0,5)
    chainloader (hd0,5)+1
    
    Im obigen Beispiel müsste man default 1 setzen, damit XP geladen wird. (0=Linux, 1=XP)

    Gruß,
    Michael



    Antwort 8 von anwi1

    also,hier mal die grub.conf:
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You do not have a /boot partition. This means that
    # all kernel and initrd paths are relative to /, eg.
    # root (hd0,5)
    # kernel /boot/vmlinuz-version ro root=/dev/hda6
    # initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=1
    timeout=10
    splashimage=(hd0,5)/boot/grub/splash.xpm.gz
    title Red Hat Linux (2.4.20-19.9)
    root (hd0,5)
    kernel /boot/vmlinuz-2.4.20-19.9 ro root=LABEL=/ hdd=ide-scsi
    initrd /boot/initrd-2.4.20-19.9.img
    title Red Hat Linux (2.4.20-8)
    root (hd0,5)
    kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
    initrd /boot/initrd-2.4.20-8.img
    title DOS
    rootnoverify (hd0,0)
    chainloader +1
    Ich habe jetzt default auf 1 geändert,jetzt startet aber wieder Linux,weil wenn ich das jetzt richtig verstanden habe zwei mal linux drauf ist und dann erst xp?Dann müßte ich also default 2 eingeben.Wie bekomme ich das zweite Linux weg?

    Antwort 9 von semi

    Das hier sollte laufen.
    
    default=1
    timeout=10
    splashimage=(hd0,5)/boot/grub/splash.xpm.gz
    
    title=Red Hat Linux (2.4.20-19.9)
    root (hd0,5)
    kernel /boot/vmlinuz-2.4.20-19.9 ro root=LABEL=/ hdd=ide-scsi
    initrd /boot/initrd-2.4.20-19.9.img
    
    title=XP
    rootnoverify (hd0,0)
    chainloader +1


    Antwort 10 von semi

    Zitat:
    Note that you do not have to rerun grub after making changes to this file
    grub brauchst Du danach nicht erneut auszuführen. Nur die Konfigurationsdatei ändern, speichern und neubooten.

    Antwort 11 von anwi1

    soll ich das jetzt als grub.conf nehmen?

    Antwort 12 von anwi1

    also es hat funktioniert,vielen Dank für Deine geduldige Hilfe.

    Andi

    Ich möchte kostenlos eine Frage an die Mitglieder stellen:


    Ähnliche Themen:


    Suche in allen vorhandenen Beiträgen: