Linux system Data Disk mount tutorial

Source: Internet
Author: User

1. Remote SSH login on the CentOS server and do the following

Note: The mount operation clears the data, please make sure that the Mount disk has no data or is not using 1, list all disks
Command: Ll/dev/disk/by-path (Note: ll is the lowercase letter ll, not the number 11)

2. Format the hard drive/dev/sdb
Command: #fdisk/dev/sdb

Follow the box instructions.
3. Create a partition
Command: MKFS.EXT4/DEV/SDB1

4. Mount the data disk as/www
Command: #mkdir/www & Mount/dev/sdb1/www

5. The final step is to write the hard drive boot information and mount the data disk automatically after the next reboot.
Command: echo "/dev/sdb1/www ext4 defaults 0 0" >>/etc/fstab

OK, the disk is mounted.

Linux system Data Disk mount tutorial

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.