WdOS/linux hard disk attaching/mounting method

Source: Internet
Author: User
We should all know that in Linux, there is no such concept as C and D disks, and some have only directories. everything is based on directories. The root directory (/) is the most basic and the root directory can be loaded into a hard disk partition and any directory below, you can also load another hard... we should all know that in Linux, there is no such concept as C and D disks, 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.
In addition, the hard disk representation in Linux is generally
/Dev/sd (x)
/Dev/hd (x)
....
The above x represents a/B/c/d/e/..., the number of hard disks
Then there is a partition, such
/Dev/sda (x)
Here, x is a number, such as 1/2/3/4/5/..., which indicates the partition number.
For example, if I want to add a new hard disk and connect it to the system
You can use fidks-l to check the name.
(The partition is also used fdisk, specific can see the http://www.wdlinux.cn/bbs/thread-1089-1-2.html)

For example,/dev/sdb.

If the partition is split and formatted (if not, use the fisk partition)
For example
/Dev/sdb1 is the first partition.
Then I want to load this to the/home directory and how to operate it

Mount/dev/sdb1/home
The above line is finished.
To join the system to start automatic loading, you only need to add it to/etc/fstab, as shown below:
/Dev/sdb1/www ext3 defaults 1 2
This completes all the tasks.

In wdcp, the default software is installed in the/www Directory. sometimes the root directory is insufficient or installed in another partition, you can load the new partition to the/www directory.
As mentioned above, you can change/home to/www.
(Note: This is a new installation, that is, before installation. if wdcp is already installed, this is not the case. for details, refer to the wdcp tutorial)

Reprinted please note: wdlinux knowledge base
Connection: http://www.wdlinux.cn/bbs/thread-4068-1-1.html
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.