How to attach a linux Hard Disk

Source: Internet
Author: User

We should all know how to attach a linux hard disk. in Linux, there is no such concept as C or D, and some have only directories. Everything is based on directories. The root directory (/) is the most basic directory. There can be many directories below. The root directory can be loaded into a hard disk partition. Any directory below can also be loaded into another hard disk partition, this is also a convenient tool for Linux directory structure/hard disk management. Linux's hard disk representation is usually/dev/sd (x)/dev/hd (x ).... the above x represents a/B/c/d/e /..., this indicates the number of hard disks and then partitions, for example,/dev/sda (x). Here, x is a number, for example, 1/2/3/4/5 /..., here is the partition number. For example, if I want to add a new hard disk, I can use fidks-l to view it after I connect it to the system, check which name is used, for example,/dev/sdb. If the partition is ready and formatted now (if not, use the fisk partition) for example,/dev/sdb1 is the first partition and I want to load it into the/home directory, how to operate mount/dev/sdb1/home and execute the above line to be added to the system to start automatic loading, as long as it is added to/etc/fstab, the following/dev/sdb1/www ext3 defaults 1 2 is complete. In wdcp, the default software is installed in the/www directory, sometimes, if the root directory is not enough or is installed on another partition, you can load the new partition to the/www directory. As mentioned above, you can change/home to/www.

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.