AWS and Ubuntu Add new hard drive methods

Source: Internet
Author: User
Tags uuid

1. Now create a hard disk on the AWS website, note that the availability zone created must be in the same zone as the EC2 virtual machine, because an AZ is the equivalent of a data center, in order to ensure speed, it is impossible to put the hard disk and virtual machine in different data centers.

2. In the instance description, see if the block device has a new hard drive attached.

3. Now we go into the Ubuntu system/dev See SDA1,SDF,XVDA1,XVDF (note that the XVDF device you see here is not the same as the name of the device on the AWS website)

Df-h is to view mounted drive information

4. Next format our new HDD sudo mkfs-t EXT4/DEV/XVDF

5. Create a new mount point. sudo mkdir XVDF (note I was created and mounted under/MNT)

6. Mount. sudo mount/dev/xvdf/mnt/xvdf

Df-h to see if it's mounted

7. Permanent mount (auto mount after reboot) to edit the/etc/fstab file

Vim/etc/fstab Add a line inside

Uuid=1aa8107b-bf5f-4777-acea-e4e009cf3ac2/mnt/xvdb ext4 Defaults,discard 0 0

9. Check UUID command blkid-s UUID

AWS and Ubuntu Add new hard drive methods

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.