How to install Linux from your hard drive

xiaoxiao2021-04-02  222

If you download the Linux ISO image file directly from the Internet, you can use the downloaded ISO file to install without engraving into an CD? Of course!

Installing Redhat Linux from your hard drive usually requires three files 1Shrike-i386-disc1.iso; 2Shrike-i386-disc2.iso; 3 Shrike-i386-disc3.iso. This represents three discs needed during installation. Since it is an image file, the system cannot read directly, so you need to restore the files in ISO first.

Here is recommended to use daemon Tool ([URL] http://www.linuxeden.com/download/winapps/daemon333.exe [/ url]) This Windows "Solution" to your hard disk. For example, SHRIKE-I386-Disc1.iso can decompress the CD1 directory of the C: disk, SHRIKE-I386-Disc2.iso is decompressed to the CD2 directory of the C: disk, SHRIKE-I386-Disc3.iso can decompress to C: The CD3 directory of the disc is available.

Next, restart the system into the MS-DOS mode. Enter the C / CD1 directory we just decompressed, there is a dosutils directory, perform a DOS batch file in which Autoboot.bat is executed, and the system will restart again. Enter Linux installation interface. At this time, the installer will prompt you to install with the disc installation or from the hard disk, select the directory where the installation file is located after you are installed from the hard disk.

It should be noted that the ISO file we just decompressed is operating in Windows. If you enter the C: / CD1 directly, the Linux installer is unrecognizable, we need to correspond to the C: / CD1 to the Linux installer can be identified. Format, so you should enter / dev / hda1 / cd1 here.

Second, officially start installation

You will feel that it is just like installing Windows.

Through the above description, we can easily enter the formal installation process, both from the disc installation or from the hard disk. Let's take a look at several important places during the installation process.

1. Select the system default language

RedHat supports the language of almost all countries in the world, as long as the hook is hooked in front of Simplified Chinese, and the system default language is selected as Simplified Chinese (Figure 2), then the interface of the entire operating system after the installation process ends, after the system is started It is Simplified Chinese, and users don't have to do any additional Chinese and setup.

2. Partition operation

Next, it is the work of the disk partition. This may be the only step in the entire installation process, and the REDHAT Linux 9.0 provides two partition-automatic partitioning and using the Disk DRUID program.

(1) Automatic partition: If it is a new computer, there is no operating system above, it is recommended to use the Auto Partition feature, which will automatically assign disk space and SWAP space according to the size of the disk and memory.

This is a "danger" function because it automatically deletes the data on the original hard disk and formats into Linux partition file system (EXT3, Reiserfs, etc.), so unless there is no other operating system or no need to retain You can use the Auto Partition feature.

(2) Manual partition: If there are other operating systems on the hard disk or need to retain data on other partitions, the DISK DRUID program is recommended to use the manual partition. Disk Druid is a GUI partition program that allows for easy deletion, adding, and modifying attributes, etc., which are more friendly than the interface FDISK programs used in previous versions, more intuitive. Let's take a look at how to partition your hard drive using the Disk Druid program. Because Linux operating systems need to have their own file system partition, and Linux partitions and Microsoft's partitions are different, they cannot be shared, so they need to open a (or several) partitions separately for Linux. Linux can generally use an EXT3 partition, which is also a file system that Redhat Linux 9.0 default.

There are two ways to establish a file partition for Linux, one is to create a Linux partition with idle disk space, and the other is to edit an existing partition to make it a Linux partition. If there is no idle disk space, you need to delete an existing partition, take a space to create a Linux partition.

There is a clear new, delete, editing, reset, etc. in the Disk Druid program. Users can intuitively operate the disk. When using Disk Druid, there are four important parameters to set carefully: they are mount points, file system types, drives, partition size.

Mount: It specifies which directory corresponding to the Linux file system, Linux allows the partitions on different physical disks to be mapped to different directories, so that different service programs can be placed on different physical disks, when One of the physical disks does not affect the data on other physical disks when the damage is damaged.

File System Type: It specifies the file system type of the partition, option with EXT2, EXT3, Reiserfs, JFS, SWAP, etc. After the Linux data partition is created, it is necessary to create a swap partition. It is actually virtual memory simulated by hard disk. When the system memory usage is relatively high, the kernel will automatically use the SWAP partition to simulate memory.

Size: The size of the score area (in MB), the size of the Linux data partition can be filled in according to the actual situation of the user, and the SWAP size can be set to twice the physical memory according to the experience, but when physical memory is greater than 1GB, SWAP The partition can be set to 2GB.

Allowed drives: If there are multiple physical disks on your computer, you can select a physical disk that you need to perform partition operations in this menu option.

After the disk partition, a relatively complicated step in the installation process has passed, and the next installation will be a Ma Pingchuan. Let's continue to choose the system components you want to install.

3. Select the installation component

RedHat Linux 9.0 and previous versions are very similar to the selection of installation components, and users can choose one of the four installation methods, and you can define what you need yourself.

After the system component is installed, the installer automatically selects the package from the CD medium to the computer's hard drive, and does not need manual intervention in the middle, and the component will be shorter instructions for each system component.

When you select a package, if you want to further configure the system, you can select a set of packages. It is recommended to customize, select the KDE desktop environment, so you have two real-color icons that can be compared with WindowsXP.

How, the installation process is simple? Of course, this is not the last step, because after all system components are installed, the installer will "considerate" remind you to make a launch disk for unpredictable.

So far, the Linux system has been successfully installed.

Third, change the boot mode it is more fun than Windows.

As a default, Redhat Linux 9.0 automatically starts X-WINDOW to enter the graphical operation interface at startup. And many Linux hardcore players have been accustomed to work in the Console character interface, or some players are too slow to start, like visual and fast Console operations.

1. Enter the character interface

In order to enter the Console interface when Linux is started, we can edit the / etc / inittab file. Find ID: 5: initDefault: This line is changed to ID: 3: InitDefault: After restarting the system. We see, change 5 to 3, you can entered the X-WINDOW graphic operation interface or the conversion of the Console character interface when starting, because the Linux operating system has six different run levels (Run Level) Under different run levels, the system has different states, which are:

0: Stop (remember not to set the initdefault to 0, because this will cause Linux unable to start) 1: Single user mode, just like Win9x's security mode. 2: Multiple users, but there is no NFS. 3: Complete multi-user mode, standard run level. 4: Generally no, use it to do something in some special cases. 5: X11, enter the X-Window system. 6: Restart (Remember Do not set the initdefault to 6, because this will keep Linux constantly restart).

Among them, the run level is the standard console character interface mode we have to enter.

2. Free conversion character interface and x-window graphical interface

After understanding the transfer of the automatic access to the X-Window graphics operation interface and the Console character operation interface, maybe you will think, these two operation interfaces have their own benefits, I can "greed", with these two What is the operation interface? This requirement is of course satisfying in the omnipotent Linux operating system.

Press "Alt Ctrl function keys Fnn = 1 ~ 6" in the X-Window graphics operation interface to enter the Console Character Operating Interface. This means you can have X-windows to add 6 Console character interfaces, which is an exciting thing!

How to return to the X-WINDOW in the console character operation interface? It is very simple, press "Alt Ctrl F7". At this time, Linux opens 7 screens by default, numbered TTY1 ~ TTY7. After the X-WINDOW is started, the TTY7 screen is occupied, and TTY1 ~ TTY6 is still the character interface screen. That is, the character interface can be implemented with the fast switching of the X WINDOW interface with the "Alt Ctrl Fn" key key.

LINUX's old users know that X-Window is a very convenient graphical interface that allows users to operate with the simplest mouse, but there are many shortcomings: such as starting and running speed, not enough stability, compatible Sex, easy to crash, etc. But once the X-WINDOW system has problems, it does not cause the collapse of the entire Linux system to cause data loss or system damage, because when X-WINDOW lost response or crash due to its own or application, we can withdraw from X-Window enters Console to troubleshoot, just press the "Alt Ctrl Backspace" button, which means that as long as the system does not lose the response to the keyboard, X-Window has any questions, can be easily exited.

转载请注明原文地址:https://www.9cbs.com/read-131446.html

New Post(0)