In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, check whether the hard disk device has a data disk.
# execute fdisk-l # first: the following is the execution result Disk / dev/vda: 21.5GB, 21474836480 bytes255 heads, 63 sectors/track 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000736d7 Device Boot Start End Blocks Id System/dev/vda1 * 1 2611 20970496 83 Linux# check Tencent CVM data disk # We can see that the data disk with 20GB is not mounted Watch the path ahead / dev/vda1
Second, data hard disk partition (optional)
# execute fdisk / dev/vda1#, enter n, p, 1, enter, enter, wq#. The VDA here is the name of the data hard disk we have seen above. If you are not this, you need to replace it according to your real disk name. If it is the same as me, copy it directly.
Third, ext3 format partition
# formatted as ext3 file system mkfs.ext3 / dev/vda1
Fourth, mount the new partition
# A-create a new directory mkdir / home# B-mount the partition mount / dev/vda1 / home
Fifth, write fstab settings to boot and mount automatically
Echo'/ dev/vda1 / home ext3 defaults 0'> > / etc/fstab
Sixth, check whether the mount is successful (df-h)
# execution df-h# below is the execution result Filesystem Size Used Avail Use% Mounted on/dev/vda1 20g 1.2g 18G 7% / / dev/vda1 20G 1.2g 18G 7% / home
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.