Linux + NTOSLoadermini-HOWTO translated version

Source: Internet
Author: User
Tags ide hard drive
Article title: Linux + NTOSLoadermini-HOWTO translated version. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Summary
2. how does nt OS Loader work?
3. how to install Windows NT and Linux on the same system
3.1. install Windows NT
3.2. split disk
3.3. install Linux
3.4. Lilo
4. Bootpart
5. Linux work
6. work in Windows NT
7. do it again
8. troubleshooting
9. others
9.1. References
9.2. thanks
9.3. feedback
9.4.: start FreeBSD with NT Loader
  
1. Summary
This document describes how to use Windows NT boot loader to start Linux. this process has been tested on Windows NT 4.0 Workstation and Linux 2.0.
  
2. how does nt OS Loader work?
Nt OS loader needs to be accessed from the startup magnetic zone of other operating systems into a file. it reads the file and starts the selected job system, that is, or Windows NT operating in different modes or any other job system.
  
3. how to install Windows NT and Linux on the same system
3.1. install Windows NT
First try to install Windows NT. if you want to use NTFS as the file system of your Windows NT partition, remember that Currently Linux cannot use NTFS partition. an Alpha driver that can read NTFS partitions can be found in the http://www.informatik.hu-berlin.de /~ Loewis/ntfs can be found. you can create another FAT partition for data exchange, or you can use a software disk formatted by DOS.
  
3.2. split disk
Another mini-howto recommends that you do not use NT's "disk system administrator" to create Linux replications and Root Directory partitions. it leaves some space. I also recommend using Linux's fdisk.
  
3.3. install Linux
Now, start Linux from the disk and create a replacement and root directory partition. fdisk considers the NTFS partition as an HPFS partition, which is normal. start Linux again from the disk and install Linux as you like.
  
During the installation process, we recommend that you ignore the HPFS partition.
  
3.4. Lilo
When you install Lilo, specify your Linux root directory partition as your boot device because the master boot record (MBR) of your disk is now owned by Windows NT. this indicates that in your/etc/lilo. the root project and boot project of conf have the same value. if you have an IDE hard drive and your Linux partition is on the second partition, you/etc/lilo. the conf boot project looks like:
  
Boot =/dev/hda2
  
If you have two disks and your Linux disk is located in the first partition of the second disk, your/etc/lilo. conf boot project will look like:
  
Boot =/dev/hdb1
  
Run lilo in line with the core of your system. if you are not sure, start from the disk to check the core.
  
If you cannot start Windows NT now, you are in trouble. I hope you have created the latest repaired disk.
  
4. Bootpart
There is an NT program named bootpasr written by G. Vollant that can do the following for you. Bootpart can be obtained here:
Http://ourworld.compuserve.com/homepages/gvollant/bootpart.htm.
  
If you want to know how things work, use the steps described in Sections 5 and 6.
  
5. Linux work
You must start Linux from the disk until the NT part is changed.
  
Now you must extract the boot magnetic field from your Linux root directory partition. if/dev/hda2 is your Linux partition, the dd command is:
  
# Dd if =/dev/hda2 of =/bootsect. lnx bs = 512 count = 1
  
If your bootsect. lnx contains more than 512 TBS, something is wrong.
  
Now, copy the file bootsect. lnx to a DOS formatted disk, if this is the method for uploading the file to the NTFS partition.
  
You can copy
  
# Mcopy/bootsect. lnx:
  
Or use
  
# Mount-t msdos/dev/fd0/mnt
# Copy/bootsect. lnx/mnt
# Umount/mnt
  
6. work in Windows NT
Copy the file from the disk to C: ootsect. lnx. I won't tell you how to do it .)
  
Like lilo. conf in Linux, c: oot. ini in Windows NT. use this command to remove its system and read-only attributes before you compile it:
  
C: attrib-s-r c: oot. ini
  
Now use an editor to change the boot. ini file, such as notepad, as shown in the following code:
  
[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"
  
In this example, only the last line is added. after you store boot. ini, use this command to reply to its attributes:
  
C: attrib + s + r c: oot. ini
  
After you turn off your Windows NT and restart it, you will see something like this:
  
OS Loader V4.00
  
Select the operating system you want to start:
  
Windows NT Workstation versions 4.0
Windows NT Workstation Version 4.0 [VGA mode]
Linux
  
Use the reverse key and reverse key to whitelist the options you want,
After selection, press Enter to confirm
  
Select Linux and you will see
  
LILO loading zImage ....
  
7. do it again
Each time the boot magnetic field of your Linux partition is modified, a new copy of bootsect is generated. lnx must be transferred to C: BOOTSECT. LNX. one example is when you re-use lilo to install a new core. therefore, you can see that such a system is not suitable for testing the core of the experiment.
  
8. troubleshooting
If things do not work as expected, use a magnetic disk to check for the trigger. if/dev/hdb1 is your Linux partition, your/etc/lilo. conf has the following projects:
  
Root =/dev/hdb1
Boot =/dev/fd0
  
Insert a disk and execute lilo. now try to start from the disk. if Linux on/dev/hdb1 cannot be started, nt OS loader cannot start it. if you see a lot of 01 01 01, your root disk cannot be used. check whether all your disks are detected by BIOS.
  
If this disk can start your Linux partition, you can use the following command to retrieve your boot partition for nt OS loader:
  
# Dd if =/dev/fd0 of =/bootsect. lnx bs = 512 count = 1
  
You can keep this disk as your first aid disk when a problem occurs during your Windows NT installation.
  
9. others
9.1. References
  
The Linux + WindowsNT mini-HOWTO
The FAQ for FreeBSD 2.X
  
9.2. thanks
  
Thanks to Xiaoming Yi for prompting that these processes are also running on other disks except the first disk.
Thanks to Frank Dennler for providing disk skills.
  
9.3. feedback
All comments are welcome.
  
9.4.: start FreeBSD with NT Loader
In addition to Windows NT 4.0 and Linux, FreeBSD 2.2 is installed on the translator's computer. in this case, try to use the above method to start FreeBSD. install FreeBSD in/dev/sda2, that is, FreeBSD's/dev/sd0s2. according to the above practice, I first save the boot sector of/dev/sda2 into a file:
  
# Dd if =/dev/sda2 of =/bootsect. bsd bs = 512 count = 1
  
And copy it to C:. then add it to boot. ini.
  
C: BOOTSECT. BSD = "FreeBSD"
  
Unexpectedly, this method failed and cannot start FreeBSD!
  
On the one hand, I feel disappointed. on the other hand, I am not dead. I suddenly thought that lilo could also start FreeBSD. finally, I did the following experiment again. after entering Linux, I will/etc/lilo. change conf:
  
Boot =/dev/fd0
Install =/boot. B
Vga = normal
  
Other =/dev/sda2
Label = FreeBSD
Table =/dev/sda
Loader =/dev/os2_d. B
  
Put a formatted tile, and then run lilo-v. then, the starting magnetic area of the tile is changed to a file:
  
# Dd if =/dev/fd0 of =/bootsect. bsd bs = 512 count = 1
  
Put it in C: Lower. remove the disk and reboot. select FreeBSD in the NT Loader menu, and then you will see:
  
LILO loading FreeBSD
> FreeBSD BOOT @ 0x10000: 639/65536 k of memory
Usage: [[0:] [fd] (0, a)]/kernel] [-abccdhclr]
Use 1: sd (0, a)/kernel to boot sd0 if it is BIOS drive 1
Use? For file list or press Enter for defaults
Boot:
  
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.