How to mount a hard disk or partition in linux

Source: Internet
Author: User
In linux, how to mount a hard disk or partition has been frequently asked about how to mount a hard disk or partition in recent days. the steps for mounting a hard disk are described as follows: www.2cto. com1 check 1.1format check hard disk partition division. 1.2df-h check the mount point and partition through the above two steps... in linux, how to mount a hard disk or partition has been frequently asked about how to mount a hard disk or partition in recent days. the steps for mounting a hard disk are described as follows: www.2cto.com 1 check hard disk partition by 1.1 format. 1.2 df-h check the mount points and partitions. use the preceding two steps to check the partitions or hard disks that decide to be mounted and then confirm the next two operations: 2.1 format (not required). generally, we recommend that you format the hard disk or partition to be mounted. (In general, for example, data already exists in a partition and you want to retain the data) take format c1t5d0s6 as an example. www.2cto.com # format> 5 indicates that the disk is currently processed as disk 5th> p> 0 indicates that the disk is currently processed as c1t5d0s0> 0 indicates that the number from cylinder is 0.> 60 gb indicates 60 gb space> lable indicates label> y indicates that the label is confirmed, save.> Q> q: Exit www.2cto.com 2.2 and perform file system newfs/dev/dsk/c1t5d0s0 2.3 on the new partition. create the mount directory mkdir/opt/views 2.4 and mount/dev/dsk/c1t5d0s0. /opt/views 2.5 modify vfstab, add new mount point information vi/etc/vfstab add the following lines with reference to the original line:/dev/dsk/c1t5d0s0/dev/rdsk/c1t5d0s5/opt/views ufs 2 yes-note: each column is a tab interval.
 
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.