RE: MultiBoot

トップ ページ

このメッセージに返信
著者: Ferigo, Sylvain
日付:  
To: 'guilde@imag.fr'
題目: RE: MultiBoot


> -----Original Message-----
> From:    Jerome Malandrino [SMTP:Jerome.Malandrino@???]
> Sent:    Tuesday, October 20, 1998 11:15 AM
> To:    guilde@???
> Subject:    MultiBoot

>
> Je poste ce message dans le cas o> ù certains seraient interressés. Dans ce
> cas je pourrai faire un petit guide et le poster.
>

Il existe deja, on en a deja parle ici... le guide, c'est le Mini HOWTO fourni avec
RH notament. tres bien explique. mais comme je l'avais dit, il ne faut pas trop
changer de noyau, sinon la manip se repete un peu trop souvent, et comme elle
se fait en plusieurs etapes...

Cf attachement...

Sylvain

<<Linux+NT-Loader.html>>

---------------------------------------------------------------------------------
Sylvain Ferigo [Sylvain.Ferigo@???]

Phone: [+33 4] 04 76 61 51 87

Xerox Research Center Europe
6, Chemin de Maupertuis
38240 Meylan, France





NT OS Loader + Linux mini-HOWTO



NT OS Loader + Linux mini-HOWTO
Bernd Reichert, &lt;reichert@???&gt;
v1.11, 2 September 1997
&nbsp;
1. Abstract
&nbsp;
This document describes the use of the Windows NT boot loader to start
Linux. This procedures have been tested with Windows NT 4.0 WS and
Linux 2.0.
&nbsp;
2. How does the NT OS Loader work
&nbsp;
The NT OS loader likes to have the boot sector from the other
operating systems available as a file. It reads this file and starts
the operating system selected, i.e. either Windows NT in different
Modes or any other OS.
&nbsp;
3. Tips on how to install Windows NT and Linux on the same System
&nbsp;
3.1. Windows NT installation
&nbsp;
Try to install Windows NT first. If you want to use NTFS for your
Windows NT-partition, keep in mind, that the todays production version
of Linux cannot access NTFS partitions. An alpha driver that can read
NTFS-Partitions is available at http://www.informatik.hu-
berlin.de/~loewis/ntfs. You may create a separate FAT-Partition for
data exchange or you have to use DOS-formatted floppies.
&nbsp;
3.2. Partitioning
&nbsp;
Another Mini-howto recommends not to use NTs "Disk Administartor" to
create the Linux swap- and root-partitions. It is sufficient to see
the free space there. I also recommend to use linux's fdisk later.
&nbsp;
3.3. Linux installation
&nbsp;
Now boot linux from diskettes, create the swap and root-partition.
Fdisk assumes the ntfs-partition to be a HPFS-partition. This is
normal. Boot again from diskettes and install Linux as you like.
&nbsp;
Just in case the installation procedure suggests that you could mount
the HPFS partition which it has found: Ignore it.
&nbsp;
3.4. Lilo
&nbsp;
When you come to the Lilo-Section, specify your Linux-root-partition
as your boot device because the Master Boot Record (MBR) of your
harddisk is owned by Windows NT. This means that the root-entry and
the boot-entry in your /etc/lilo.conf have the same value. If you
have a IDE-harddisk and your Linux-partition is is the second
partition, your boot-entry in /etc/lilo.conf looks like:
&nbsp;
boot=/dev/hda2
&nbsp;
If you have two disks and your Linux resides on the first partition of
your second disk, your boot-entry in /etc/lilo.conf looks like:
&nbsp;
boot=/dev/hdb1
&nbsp;
Run lilo with a kernel that matches your system. Check the kernel by
booting from diskette first if you are not sure.
&nbsp;
If you cannot boot Windows NT now, you have a problem. I hope you
have created a repair-disk recently.
&nbsp;
4. Bootpart
&nbsp;
There is a NT-programm called bootpart written by G. Vollant that can
do the jobs from the next two points for you. Bootpart is available at
http://ourworld.compuserve.com/homepages/gvollant/bootpart.htm.
&nbsp;
If you want to know how things are working together, use the
procedures described in point 5 and 6.
&nbsp;
5. The Linux part of the work
&nbsp;
You have to boot from diskettes until the NT-part is fixed.
&nbsp;
Now you have to peel the bootsector from your Linux-root-Partition.
With /dev/hda2 as your linux-partition, the dd-command is:
&nbsp;
# dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
&nbsp;
There is something wrong if your bootsect.lnx has more than 512 bytes.
&nbsp;
Now copy the file bootsect.lnx to a DOS-formated floppy if this is
your way to transfer files to the NTFS-Windows-partition.
&nbsp;
You can copy it with
&nbsp;
# mcopy /bootsect.lnx a:
&nbsp;
or with
&nbsp;
# mount -t msdos /dev/fd0 /mnt
# copy /bootsect.lnx /mnt
# umount /mnt
&nbsp;
6. The Windows NT part of the work
&nbsp;
Copy the file from the diskette to C:\bootsect.lnx. I don't tell you
how to do that.
&nbsp;
What lilo.conf is for linux is c:\boot.ini for Windows NT. Remove
the, system- and the read-only-attribute before you can modify it
with:
&nbsp;
C:\attrib -s -r c:\boot.ini
&nbsp;
Now change the file boot.ini with an editor, notepad for example, as
follows:
&nbsp;
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
C:\BOOTSECT.LNX="Linux"
&nbsp;
Only the last line has been added in this example. Restore the
attributes after you have saved boot.ini with:
&nbsp;
C:\attrib +s +r c:\boot.ini
&nbsp;
After a shutdown of your Windows NT and a restart your should see the
following:
&nbsp;
OS Loader V4.00
&nbsp;
Please select the operating system to start:
&nbsp;
Windows NT Workstation Version 4.0
Windows NT Workstation Version 4.0 [VGA mode]
Linux
&nbsp;
Select Linux and see
&nbsp;
LILO loading zImage ....
&nbsp;
7. Play it again Sam
&nbsp;
A new copy of bootsect.lnx must be transfererd to C:\BOOTSECT.LNX evry
time the bootsector of your linux-partition has been modified. This
happens for example when you install a new kernel with lilo. As you
can see such a system in not ideal for testing experimental kernels.
&nbsp;
8. Troubleshooting
&nbsp;
If things do not work as expected, check bootability with a floppy
disk. With /dev/hdb1 as your Linux-partition, your /etc/lilo.conf has
the following entries:
&nbsp;
root=/dev/hdb1
boot=/dev/fd0
&nbsp;
Run lilo with a diskette inserted. Now try to boot from the diskette.
If your Linux on /dev/hdb1 can't be started, the NT OS loader will
also fail to start it. If you see a lot of 01 01 01 01, your root-
disk is not accessible. Check whether all your disks are known by the
bios.
&nbsp;
If the floppy boots your Linux partition, you can peel of your boot-
sector for the NT OS loader with:
&nbsp;
# dd if=/dev/fd0 of=/bootsect.lnx bs=512 count=1
&nbsp;
You can keep this diskette as your rescue-diskette just in case your
Windows NT installation breaks.
&nbsp;
9. References
&nbsp;
· The Linux+WindowsNT mini-HOWTO
&nbsp;
· The FAQ for FreeBSD 2.X
&nbsp;
10. Acknowledgements
&nbsp;
· Thanks to Xiaoming Yi &lt;z3c20@???&gt; for the tip that the
procedures work also with other disks than the first one.
&nbsp;
· Thanks to Frank Dennler &lt;Frank.Dennler@???&gt; for the diskette-
trick.
&nbsp;
11. Feedback
&nbsp;
Any comments are welcome.
&nbsp;
&nbsp;