Linux System Mount Data disk

Source: Internet
Author: User

1. View Data disk

Before partitioning and formatting the data disk, using the "df-h" command, you cannot see the data disk, you can use the "fdisk-l" command to view.

2. Partitioning the data disk

Execute "FDISK/DEV/XVDB" according to the prompt input "n", "P" "1", two times the carriage return, "Wq", the partition begins. Finished soon.

3. View the new partition

Fdisk-l

4. Formatting partitions

Mkfs.ext3/dev/xvdb1

5. Adding partition information

Echo '/dev/xvdb1/disk1 ext3 defaults 0 0 ' >>/etc/fstab

6. Mount a new partition

Mount the new partition using MOUNT-A, and then use the Df-h command to see the following message indicating that the mount was successful.

Manipulate the/disk1 folder, which represents the direct operation Partition/DEV/XVDB

Warning

1-mount:you must specify the filesystem type

You need to execute the format partition command MKFS.EXT3/DEV/XVDB1

2-mount to which folder

/mkdir Disk1

$mount/dev/xvdv1/disk1

Reference

Http://blog.chinaunix.net/uid-23929712-id-2650378.html

http://my.oschina.net/leejun2005/blog/290073

Linux System Mount Data disk

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.