FreeBSD system Startup process

Source: Internet
Author: User

The system needs to be restarted after you complete the system installation and basic configuration tasks using the Setup program Sysinstall. After the system restarts from the hard drive, a good FreeBSD system is displayed in front of the user. The system will have a login prompt allowing the user to log into the FreeB SD operating system.

UNIX is a multi-user, multitasking operating system that supports and manages the use of systems by multiple users, divided into two categories: ordinary users and administrators. Ordinary users can only use the specific application functions provided by the system, and only administrators can change the configuration of the system and maintain the whole system. The owner of the FreeBSD system is not only the ordinary user of the system, but also the administrator of the whole system, responsible for the task of system maintenance.

UNIX under the system maintenance tasks have considerable scalability, according to the requirements of different systems, can be very simple, only the use of the system initially provided by the management strategy can be a very complex task, to access the customer more stringent, more comprehensive restrictions. In any case, the use and maintenance of FreeBSD is a challenging task.

Startup and shutdown of the system

Unlike several other operating systems on personal computers, FreeBSD is designed to be a system that can run permanently, and should not normally be started and shut down frequently. However, the FreeBSD boot process from the computer system self-test to the loading of the FreeBSD system kernel, which through several different stages, these stages of operation is related to system maintenance, so it is very important that the system administrator to understand. Similarly, because FreeBSD is a multi-user system, in the background running quite a lot of the system is very important to the process, the system shutdown will need to first shut down these processes, so the Freebs D shutdown process must also follow certain requirements to operate, otherwise it will cause damage to the system.

System startup process

The startup process for a common personal computer is fairly straightforward, starting with the system BIOS self-test, which is loaded into the primary boot area on the boot hard drive and then loaded into the operating system by the bootstrapper on the primary boot area. The standard master boot area will boot the operating system on the partition according to the boot partition's settings, and FreeBSD can also use this method. But the more common way to boot FreeBSD is to use the FreeBSD boot manager to manage and take charge of booting multiple operating systems including FreeBSD.

Multi-operating system boot program

The computer has a different boot process, depending on the system master boot of the first sector of the computer's boot hard disk. FreeBSD most often uses the FreeBSD Boot Manager, which allows users to choose between different operating systems that coexist in the system.

If you use the Boot Manager for multiple operating system booting, the system will first enter the Boot Manager guide interface after self test.

F1:freebsd

F2:dos

F5:disk 2

Default F1

The boot Manager uses the computer's function keys to start the operating system for each partition, using F1 to start the operating system on the first partition wd0s1, F2 start wd0s2,f3 wd0s3, and so on, F5 boot the master boot zone on another hard drive. This will also install the boot Manager on the second disk, which will boot the operating system for each partition on your hard disk. Only if the partition does exist, the Boot manager displays the appropriate startup hotkey and, judging by the type of partition, is the operating system. The boot Manager starts the FreeBSD system after the user chooses an option, or after a certain amount of delay.

Using Boot Manager for multiple operating system booting it should be noted that once the Dos/windo WS system is reinstalled on this computer, the primary boot area is rewritten and the Bootmanager needs to be reinstalled.

You can use the DOS program Fdisk.exe to recover the contents of the main boot area when you want to go back to the standard boot zone (no longer need to boot multiple operating systems) when you do not intend to boot the boot manager. You can also reinstall the standard master boot area by using the FreeBSD Sysinstall program.

A:> FDISK/MBR

However, the boot manager still uses the BIOS call to get the data on the partition, because the BIOS can only access partitions within the hard disk 1024 cylinder, so the FreeBSD boot partition must be within 1024 cylinders to start the system properly. The new BIOS uses LBA and so on to remap the hard disk data to avoid this problem. However, you need to be careful not to change the hard disk mapping in the BIOS can not be arbitrarily changed, must be partitioned with the hard disk when the settings are consistent, otherwise the BIOS will not correctly find the previously set partition.

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.