Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of parted disk Partition, formatting and mounting in linux

Shulou Source: shulou.com Published: 2022-06-01 04:49:39 09月28日 Update

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.

Tags: Files systems disks formats quantity support data allocation capacity logs space articles examples analysis content allocators more directories nodes storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi OPPO Reno Microsoft vpn Docker