Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of adding and installing New hard disk in Linux operating system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to add and install a new hard disk in the Linux operating system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to add and install a new hard disk in the Linux operating system.

After installing Linux, after using it for a period of time, I feel that the hard disk is not enough, so I want to install a new hard disk. What should I do? First of all, the author would like to remind you that you need to pay attention to installing the second hard disk in Linux: if it is an IDE hard disk, pay attention to the setting of the master and slave disk; if it is a SCSI hard disk, pay attention to choosing an unused ID number. This example sets the second IDE new hard disk as a slave disk and connects it to the first master disk on a data line to see how to install and use the second hard disk under Linux.

I. Partition

A new hard drive, which is not yet partitioned, must be partitioned with the hard disk partition program fdisk (take the Red Flag Desktop version as an example) in Linux (figure 1).

II. Formatting

After establishing the partition of the hard disk, execute the command [root@work root] # mke2fs / dev/hdb1 to format the hard disk.

3. Mount to the directory

After the hard disk is formatted, you can use the mount command to mount the hard disk partition to a directory. Create the directory first. If the directory to be mounted is / disk2, execute the "mkdir disk2" command, and then execute the "mount / dev hdb1 / disk2" command to use the new hard disk.

Fourth, mount automatically at startup

According to the above operation, each time the machine starts, you must execute the mount command to mount it, which is troublesome, and you can make the machine mount the hard disk partition automatically at startup by modifying the / etc/fstab configuration file (figure 2).

Figure 2

Restart the computer after modifying the configuration file, and the partition will be automatically mounted. At this point, you can easily use your second hard drive!

At this point, I believe that everyone on the "Linux operating system to add a new hard disk installation method" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report