How to Mount Cloud disks and cloud Disks

Source: Internet
Author: User

How to Mount Cloud disks and cloud Disks
 
 
1. Disable the server and add a new hard disk.
2. Start the server and log on as the root user.
3. View hard disk Information
# Fdisk-l

4. Create a New Hard Disk Partition
Fdisk can use the m command to view the internal command of the fdisk command;
A: The command specifies the start partition;
D: Command to delete an existing partition;
L: The command displays the list of partition ID numbers;
M: view the fdisk Command help;
N: Create a New partition;
P: Command to display the partition list;
T: Command to modify the ID number of the partition type;
W: The command is used to modify and save the partition table.


Switch root permissions
Sudo su-
 
Fdisk/dev/sdb
 
Input
N p 1 1 Press ENTER wq
 
5. format the partition.
Mkfs. ext4/dev/vdb1
 
6. Create the/data1 directory:
Mkdir/data1
7. Mount the partition:
Mount/dev/sdb1/data1

8. Configure Automatic mounting upon startup

Vi/etc/fstab

Add in the last line
/Dev/vdb1/data1 ext4 defaults 0 0

9. restart the system

Reboot
 

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.