Important issues for installing a Linux-based release (Process Guide) and a linux release

Source: Internet
Author: User

Important issues for installing a Linux-based release (Process Guide) and a linux release

Install important issues based on the Linux distribution. (Process guidance ))

 

1. Description:

The items recorded below are important for installing a Linux-based release. Other installation procedures are similar to software installation or windows installation. The only difference is that it depends on whether the image or text is installed.

 

2. Obtain the hardware information and related driver information of the computer:

Although the release version is more simplified, compared with a silly platform, the driver support and adaptation need to use the help documentation of WIKI, in addition, the driver is not installed in one breath. Backing up relevant information helps you complete the installation efficiently.

 

3. Check the installation environment and method:

Almost all releases support local and online installation. Go to the official WIKI of the selected release to find the help document and select the appropriate installation method; check the Boot Mode Supported by the installed target machine, and perform a file value test on the downloaded image to ensure that the downloaded file is not damaged.

 

4. Determine the Boot Tool Based on comprehensive factors:

By the end of the article, the general form is to use the U disk media for system boot installation. However, for the release, the production tools used by different releases are also different. The tool selection can be determined based on the following factors. First, check whether there are recommended production tools in the official documents. Second, check the type of UEFI-BIOS-UEFI + BIOS Boot Mode Supported by the target computer to install the system, the partition table supported by the computer is of the [GPT · MBR] type. Third, whether the boot disk is created on the Win platform or on the Linux platform. Here, the 'smile-loving koalas 'provides a few niche tools for your reference.

Rufus

Universal USB Installer

Syslinux

LinuxLive USB Creator

The 'smile-loving koalas 'statement shows that the tool is not good or bad. It is only suitable for saying that, if you have to be mentally handicapped, you only need to get more jokes in your life. Why didn't we recommend UitraISO or dd here, because apsaravideo player is almost flushed on the screen and is highly praised by many people.Yes. Although dd has many tutorials, the results will not be satisfactory if you do not understand the principles.

 

5. Efficient partitioning:

Standards can help you avoid more errors. If you just close this page for entertainment/small series, it is recommended that you do not have much benefit even after reading it. In Linux, partitions follow the 3 + 1 principle. There are at most four primary partitions, and only one logical partition exists in the primary partition.

Common file systems:

Ext4 journaling file system (Ext3 · Ext2)

Btrfs journaling file system

JFS journaling file system

XFS journalilng file system

FAT16 file system (FAT32)

Swap area -- 2 GB enough

Physical volume for encryption

Physical volume for LVM

Physical volume for RAID

Virtual File Allocation Table -- Virtual File Allocation Table, which is often used on solid state memory cards for File exchange between systems

 

For the selection of file systems, we recommend that you select "Btrfs | XFS" for the root partition. The former supports advanced data verification and Incremental backup, and transparent compression that can improve performance and save space at the same time. The latter can be formatted and mounted very quickly when processing large files. For variable data var partitions, select "JFS | XFS". The former is efficient and occupies low resources. If you want to scale a disk to any primary partition, you can use a logical partition to create a system under the logical partition.

  

Assume that a logical volume is created under a logical partition by running the following command:

Physical volume (physical volume -- pv)

Volume group (volume group -- vg)

Logical volume (logical volume -- lv)

The minimum unit that a physical zone (physical extent -- pe) disk can assign to a logical volume.

A. scan can be used to create a logical partition lvmdiskscan

B. Start to create the logical partition pvcreate DEVICE "eg --> pvcreate/dev/sdx"

C. Check or verify whether the logical partition is successfully created pvdisplay | pvs

D. Create a volume group manager. check whether a volume group exists in vgdisplay in PV before creation. | vgs

E. Create a volume group vgcreate <volume_group> <physical_volume> "eg --> vgcreate DEY/dev/sdx"

F. Create a logical volume lvcreate-L <size> <volume_group>-n <logical_volume> "eg --> lvcreate-L 1g dey-n root"

G. Verify the logical volume lvdisplay | lvs

If you need to change the capacity or do not need it for other reasons, you can reverse. Lv --> vg --> pv

 

6. File System Format:

Note: The format commands are frequently changed. For the latest usage method, please refer to the online documentation. Here are two rarely used format commands.

Common Format command, "mkfs filetype device"

Format File System FAT32 command, "mkfs. vfat-F32/dev/sdx"

Format File System SWAP command, "mkswap/dev/sdx"; although SWAP partition does not need to be mounted, the activation command must be: "swapon/dev/sdx"

 

7. Write Fstab:

Although each release version has different writing modes, it must be written because the file contains static file system information and defines how storage devices and partitions are integrated into the entire system.

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.