Linux boot methods for both Linux and Windows systems

Source: Internet
Author: User
We usually use Linux grub or lilo to boot the partitions, or we can use Windows
Ntldr or boot. ini to implement boot.

1. Use Linux boot

Assume that we have an 80 GB hard disk, and allocate 20 GB to Linux and 60 GB to Windows. Although not balanced, this is enough.

First, install linux (the typical red hat 9.0 is used as an example). We can divide Linux into two parts, or three parts. Grub is used for guidance, because Lilo's guidance has been introduced.
The first part is the root partition. Add "/" to the mount point. Linux does not have the C:, D: drive letter concept, so each LINUX partition must be mounted to the directory tree for use. A special partition is the root directory/, which is required and is the root of the Linux directory tree. When adding a root partition, select ext3 as the file format. This is the default format and does not need to be changed. The size is 18 GB. The reason will be explained later. The second part is the swap partition between Linux and Windows. This partition uses the FAT partition method supported by both systems. The FAT partition method is defined as vfat in Linux, in Windows, it is defined as the fatwin95 partition method, that is, the fat16 partition, so we can use it for swap partition. In fact, the swap partition method can also be used for swap partition, but the space is too small, it is not convenient to use, so I chose the FAT partition method. Linux limits the size of the FAT partition to 0 ~ 2048 MB, that is, the maximum vfat size cannot exceed 2 GB, which is why I just divided the root partition into 18 GB, in this case, there is no waste of Hard Disk Partitions: you can install the system after partitioning. As for the system type, you can choose your own. I personally recommend "Customization ". After the Linux system is installed, you can install Windows. The remaining 60 GB can be divided into different values. After you have installed Windows, you may find that you have no boot guide and directly entered windows. This is a long-known problem in both systems, and you do not have to worry about it, do you still remember the fdisk command in windows? Of course, this is a command of the 98 age, and I don't know what to change. (What? No? Then you should not use Linux + windows) Right, that is, use it to activate the root partition of Linux, and then restart it to see the dual-system.
The method of dividing Linux into three parts is similar to dividing it into two parts ~ 5g space is used as an ext3 partition and mounted as "/Boot". The size of this space can be divided according to the recommended system, 2g ~ 5 GB is the recommended size for red hat. After partitioning, divide the root partition and swap partition according to the above steps. Then activate the/boot partition. The advantage of this partition is that boot is not affected when Linux is deleted, because/boot is an independent boot zone.

2. Use Windows boot

Next, let's talk about how to implement boot in windows. This is a lot of trouble. We still need to install linux first to create a swap zone. After installation, do not be busy with other tasks. Enter the following command at the command prompt
Dd BS = 512 COUNT = 1 If =/dev/hda * of = bootsect. RH
Here * represents the number of spaces you leave for Windows. When installing Linux, pay attention to it !!!!
This command is to save the Linux boot sector as a boottsect. RH file, and then save it to our swap partition,
After windows is installed, copy the file to the root directory of drive C and edit the boot. ini file. Remove the system and read-only attributes and add them to the file.
C:/bootsect. RH = "Linux"
Save and modify the system, hide and read-only attributes.

Iii. Summary

It seems to be the need for technological development. The knowledge we need to know is not limited to Windows platforms. Therefore, we suggest you gradually accept some Linux technologies to facilitate future development.

Iv. Disadvantages

These two partitioning methods seem to be restricted only to Windows 2 k ad_server, XP and 03server versions. I hope you can give your valuable comments.

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.