Applicable Systems: Redhat and CentOSLinux VM instance data disks are not partitioned or formatted. you can perform partitioning and formatting according to the following steps. The following operations will divide the data disk into a partition for use. 1. view the data disk before partitioning or formatting the data disk...
Applicable Systems: Redhat, CentOS Linux VM instance data disks are not partitioned or formatted. you can perform partitioning and formatting according to the following steps. The following operations will divide the data disk into a partition for use. 1. run the "df-h" command to view the data disk before partitioning or formatting the data disk. you can run the "fdisk-l" command to view the data disk. For example: 2. run the "fdisk/dev/xvdb" command to partition the data disk. enter "n" as prompted ", "p" "1", press enter twice, and "wq", the partition starts and will be completed soon.
3. check the new partition www.2cto.com and run the "fdisk-l" command. you can see that the new partition xvdb1 has been created.
4. format the new partition and use the "mkfs. ext3/dev/xvdb1" command to format the new partition. the formatting time varies with the hard disk size.
5. run the echo '/dev/xvdb1/mnt ext3 defaults 0 0'>/etc/fstab command to add the partition information and write the new partition information. Run the "cat/etc/fstab" command to check whether the write is successful.
6. mount a new partition by running the "mount-a" command, and then run the "df-h" command to view the new partition. if the following information is displayed, the mount is successful, you can start using the new partition.
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