In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 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 a hard disk + partition + format under the Linux system. The explanation in the article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn how to add a hard disk + partition + format under the Linux system.
Before we add a hard disk, we should first understand the naming method of hard disk and partition in linux system. The device for IDE under Linux is named after hd, the first ide device is hda, and the second is hdb. And so on, we generally have two IDE ports on the motherboard, and a total of four IDE devices can be installed. The two devices on the primary IDE correspond to hda and hdb, and the two devices on the second IDE port correspond to hdc and hdd. Generally speaking, our hard disk is installed on the primary interface of the primary IDE, so the hda optical drive is generally installed on the primary interface of the second IDE, so it is hdc (because hdb is used to name the slave interface on the master IDE) the SCSI interface device is named by sd, the first device is sda, and the second is sdb. And so on, the partition is named with a device name plus a number. For example, hda1 represents the first partition on the hard disk device hda. Each hard disk can have up to four primary partitions, which function as the primary partition of a 1-4 named hard disk. Logical partitioning starts at 5, and you can add a number for each additional partition. For example, our general system has a primary partition to boot the system, which corresponds to what we often call Zone C, which is named hda1 under linux. After that, we divide it into three logical partitions corresponding to D, E and F, which are named hda5, hda6 and hda7 under linux to partition the hard disk.
There are two partition software fdisk and cfdisk under slackware and two partition software fdisk and cfdisk under slackware
For example, we already have a hard disk, now add another hard disk to the system, then we know according to the naming convention that the newly added hard disk should be hdb. We use the following command to partition the hard disk fdisk / dev/hdb you can also use cfdisk to partition, the command is cfdisk / dev/hdb to format the hard disk
Format to ext3 format to ext3 format
Mkfs.ext3 / dev/hdb1 formatted into reiserfs format mkfs.reiserfs / dev/hdb1 lets the hard disk start automatic mount
For example, mount / dev/hdb1 partition to / mnt/hd directory, for example, mount / dev/hdb1 partition to / mnt/hd directory
Edit the / etc/fstab file with vi and add the following / dev/dhb1 / mnt/hd reiserfs defaults 1 1
Thank you for your reading, the above is the content of "how to add hard disk + partition + format" under the Linux system. After the study of this article, I believe you have a deeper understanding of how to add hard disk + partition + format under the Linux system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.