Difference between revisions of "WindowsBootLoader"

From Dietrich Blog (Strato)
Jump to: navigation, search
(Replaced content with "Has been moved to: http://blog.kr8.de/wiki-windowsbootloader/")
 
Line 1: Line 1:
{{TOCright}}
+
Has been moved to: http://blog.kr8.de/wiki-windowsbootloader/
== Partitonen einer Festplatte ==
 
* Der MBR (Master Boot Record) einer [[Festplatten|Festplatte]] unterstützt bis zu vier '''Primary''' Partitions.
 
* Eine der Primary Partitions ist '''active'''; d.h. used for booting.
 
** Wechseln zwischen den active Partitions macht ein sog. '''BootManager''' (z.B. wenn man mehrere Betriebssysteme auf einem Rechner hat)
 
* Eine der Primary Partitons kann '''extended''' sein; d.h. sie wird unterteilt in '''logical partitions'''
 
* [[Windows2000]] und [[WindowsXP]] enthalten einen einfachen Boot-Manager, das sog. '''Boot-Loader''' (NTLDR mit boot.ini)
 
* Siehe: [[Partitionierung]] von [[Festplatten]]
 
* Siehe: [[LinuxBootLoader]]
 
 
 
== The NT Loader ("NTLDR") ==
 
Der NTLDR wird vom Boot-Sector geladen und zeigt den Inhalt der Datei '''boot.ini''' als Windows2000-Start-Menü.
 
 
 
Gebootet werden muss von einer Primary Partition.
 
 
 
=== Ich habe folgende Einträge auf [[ComputerBraunbaer]] ===
 
<pre>
 
[boot loader]
 
timeout=30
 
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
 
[operating systems]
 
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional IDEC" /fastdetect /NoExecute=OptIn
 
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Windows XP Professional SATAC" /fastdetect
 
C:\bootsek.lin="Kanotix VDR"
 
</pre>
 
 
 
=== Booten einer Linux-Partition mit dem Windows-Bootloader  ===
 
Erstellen einer MBR-Image-Datei für den Windows-Bootloader:
 
* Das Linux-System starten (Partition hda3 auf [[ComputerBraunbaer]])
 
* USB-Stick mounten: mount /media/sdb1
 
* Bootsektor auf USB-Stick schreiben: sudo dd if=/dev/hda3 of=/media/sdb1/bootsek.lin bs=512 count=1
 
* Die Datei bootsek.lin kopieren vom USB-Stick auf die Windows-Festplatte C:\ ...
 
* In der Datei boot.ini auf Laufwerk C: die Zeile eintragen: C:\bootsek.lin="Kanotix VDR" (siehe oben)
 
 
 
=== Schreiben eines Windows-MBA ===
 
Wenn man sich einem Windows-MBR mal kaputt gemacht hat oder so einen MBR auf ein besonderes Gerät schreiben will (z.B. USB-Stick), muss man sich den Laufwerksbuchstaben genau merken und dann die Recorvery-Console benutzen:
 
* Windows Recovery-Console starten (WindowsXP-CD starten, Recovery Mode)
 
* Eingeben: fixboot G: (doppelt prüfen, ob das das richtige Laufwerk ist!!!)
 
 
 
=== WindowsXP vom USB-Stick booten ===
 
Folgende Schritte sind in Quelle: http://nu2german.de/bartusb.shtml (siehe auch: WinPE) beschrieben:
 
# Das USB-Storage-Tool SP27213.exe von der HP-Seite (ftp://ftp.compaq.com/pub/softpaq/sp27001-27500/) downloaden und installieren.
 
# Eine DOS-Boot-Diskette bereitlegen (oder von http://www.bootdisk.com besorgen). Also DOS nicht Windows (z.B. Win98SE=DOS).
 
# Das HP USB-Tool starten (File-System=FAT16, Format Option=Create a DOS startup-disk using DOS-System files located at A:\)
 
# MBA schreiben: XP-CD starten, Recovery Mode, fixboot G: (USB Stick)
 
# XP-Boot-Dateien kopieren von C: aud USB-Stick: boot.ini, ntldr, ntdetect.com
 
Damit startet der Windows-Boot-Manager vom USB-Stick.
 
<br> Die restichen Beschreibungen auf der Bart-Seite sollte man ignorieren, da mit der [[WinPE|BartPE]] Version 3110a nicht so funktionieren.
 
 
 
=== USB-Platte ===
 
Eine USB-Platte erscheint wie eine SCSI-Platte. Für den WindowsBootLoader muss sie dann als multi(0)disk(0)rdisk(1)partition(1) angegeben werden (?).
 
<br> Hat auf ComputerT41 nur zu einem hängenden dunklen Bildschirm beim Boot geführt. Bei ComputerBraunbaer wurde dann automatisch zweimal gebootet und die IDE-0 war wieder dran.
 
 
 
=== Basic example of the boot.ini file ===
 
<pre>
 
[boot loader]
 
timeout=5
 
default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
 
[operating systems]
 
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect
 
</pre>
 
 
 
The section "operating system" is used to list and specify the location of each of the operating systems installed on the computer. Below is a listing of each of the options.
 
{| class=wikitable
 
|-
 
| '''Option''' || '''Description'''
 
|-
 
| multi(x) || This option is used with IDE and ESDI drives and is also used with SCSI drives for computers using Windows NT. The number used in the above example is "0", this number is the adapters number and should always be "0" for computers that rely on the BIOS to load system files.<br /> * In a computer using only IDE this option will work with up to four hard disk drives.<br /> * In a computer using only SCSI this option will work with the first two drives on the primary SCSI controller.<br /> * Finally, if a computer is using IDE and SCSI this option will work with the IDE drives on the first controller.
 
|-
 
| scsi(x) || If the computer has a SCSI controller and is not using BIOS to load the system files the boot.ini may have "scsi(x)" instead of "multi(x)".
 
|-
 
| disk(x) || The disk on the controller. If "multi(x)" is used used this value will always be "0". However, if "scsi(x)" is defined this value will be SCSI address.
 
|-
 
| rdisk(x) || Which disk on the controller is being used. In the above example we are using an rdisk of "1", which indicates the second disk on the primary controller is being used. This value may be between "0" and "3" and is always set to "0" when "scsi(x)" is being used.
 
|-
 
| partions(x) || Which partition the operating system is on. In the above example the operating system is on the first partition of the drive.
 
|-
 
| \WINDOWS="..." || Finally, the last portion of this line defines the directory of where windows is located and what the boot menu should display as the operating system. In the above example the boot menu would display "Microsoft Windows XP Home Edition" as a selection.
 
|}
 
 
 
<i>Quelle: http://www.computerhope.com/issues/ch000492.htm </i>
 
 
 
 
 
-- Main.DietrichKracht - 26 Aug 2005
 

Latest revision as of 11:55, 2 June 2020

Has been moved to: http://blog.kr8.de/wiki-windowsbootloader/