Annotated edit history of
WindowsLoaderLinuxBootHowto version 2 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
AristotlePagaltzis |
1 |
!! Preparation |
|
|
2 |
|
|
|
3 |
Intall your flavour of NT-based [Windows] first. Make sure you use [FAT32] for your C: [Partition]. Follow up with your LinuxDistribution but don't install your BootLoader into the [MBR]. Instead, install it to the BootSector of your [Linux] root [Partition]. (This is usually offered as an option during installation.) If you cannot boot into your [Linux] system using your installation CD, make sure to create a BootDisk when asked whether you want one. |
|
|
4 |
|
|
|
5 |
!! Save the [Linux] BootSector |
|
|
6 |
|
|
|
7 |
Now boot your [Linux] system. Become root and pull a copy of the BootSector to a file: |
|
|
8 |
|
|
|
9 |
<verbatim> |
|
|
10 |
dd if=/dev/hda1 of=bootsect.lnx bs=512 count=1 |
|
|
11 |
</verbatim> |
|
|
12 |
|
|
|
13 |
__Beware! You will not be prompted for confirmation, so make sure to type this command carefully! A typo may cost you your partition table!__ |
|
|
14 |
|
|
|
15 |
Make sure to use the appropriate [Partition] if <tt>/dev/hda1</tt> is not your [Linux] root partition. F.ex it might be <tt>/dev/sda1</tt> if you installed on a [USB] keydrive. Invoke mount(8) without parameters and look for the partition mounted on <tt>/</tt> if you don't know the name of your root partition. |
|
|
16 |
|
|
|
17 |
!! Make the BootSector available to [Windows] |
|
|
18 |
|
|
|
19 |
The <tt>bootsect.lnx</tt> file you just created must be made available to [Windows]. To this end, mount the [FAT32] partition mentioned above. Usually this has already been set up to happen automatically by the installer, which commonly uses a mount point such as <tt>/mnt/windows/C</tt>. |
|
|
20 |
|
|
|
21 |
<verbatim> |
|
|
22 |
cp bootsect.lnx /mnt/windows/C |
|
|
23 |
</verbatim> |
|
|
24 |
|
|
|
25 |
!! Configuring [Windows] to use the BootSector |
|
|
26 |
|
|
|
27 |
In [Windows], edit the hidden file <tt>C:\boot.ini</tt> and add the following line: |
|
|
28 |
|
|
|
29 |
<verbatim> |
|
|
30 |
C:\bootsect.lnx="Linux" |
|
|
31 |
</verbatim> |
|
|
32 |
|
|
|
33 |
You should now have a "Linux" entry in the [Windows] BootLoader. Selecting this should get you into your [Linux] system. |
2 |
AristotlePagaltzis |
34 |
|
|
|
35 |
---- |
|
|
36 |
CategoryHowto |