In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the example analysis of parted disk partitioning, formatting and mounting in linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Parted disk partition formatting, mounting
Disk partitioning and formatting
The parted command formats high-capacity disks:
# View partition: parted-dev/sdb1# 1: select the disk to be partitioned parted / dev/sdb#2: format partition mklabel gpt#3: partition mkpart primary 0% 100% partition 4: exit Qzone 5: format disk mkfs.xfs / dev/sdb1# or mkfs.ext4 / dev/sdb1
The difference between file system EXT3,EXT4 and XFS:
1. EXT3
(1) it can only support 32TB file system and 2TB file at most, and can only hold 2TB file system and 16GB file.
(2) Ext3 only supports 32000 subdirectories.
(3) Ext3 file system uses 32-bit space to record the number of blocks and I-nodes.
(4) when data is written to the Ext3 file system, Ext3's block allocator can only allocate one 4KB block at a time.
2. EXT4
EXT4 is the journaled file system under the Linux system and the successor to the EXT3 file system.
(1) the file system capacity of Ext4 reaches 1EB, while the file capacity reaches 16TB.
(2) theoretically support an unlimited number of subdirectories
(3) Ext4 file system uses 64-bit space to record the number of blocks and I-nodes.
(4) the multi-block allocator of Ext4 supports the allocation of multiple data blocks in one call.
3. XFS
(1) quickly recover the contents of disk files in a very short time according to the recorded logs.
(2) using the optimization algorithm, log recording has little impact on the overall file operation.
(3) it is a full 64-bit file system that supports millions of terabytes of storage space.
(4) data can be stored at a performance close to that of the bare device Icano.
Mount disk # create directory mkdir / data# mount mount / dev/sdb1 / data# unmount: umount / data# check system disk mount df-h this article on "sample analysis of parted disk partitioning, formatting and mounting in linux" ends here. I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good Please share it for more people to see.
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.