In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains the "linux greater than 2T disk how to use GPT partition", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux greater than 2T disk how to use GPT partition" bar!
In linux, we can first convert large-capacity disks to gpt format. Because the disk in gpt format is equivalent to the original mbr disk with only the first 16 bytes of 4 partition table, and the other is similar to the extended partition, the real partition table is after 512 bytes, so there is no limit of four primary partitions for the gpt disk table.
To manipulate the gpt disk partition table, we will use the powerful parted command.
Example: commonly used parted command
# parted / dev/sdb
Gnu parted 1.8.1
Using / dev/sdb
Welcome to gnu parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Format mbr disks as gpt
(parted) mkpart primary 0 100
Divide a primary partition with a starting position of 0 and a size of 100m
(parted) mkpart primary 100 200
Divide a primary partition with a starting position of 100m and a size of 100m
(parted) mkpart primary 0-1
Divide all spaces into one zone
(parted) print
Print the current partition
(parted) quit
Some commands that may also be used
(parted) mklable msdos
If it's the other way around. Convert a gpt disk to a mbr disk
After dividing the partition in this way, you also need to use mkfs.ext3 to format
# partprobe
# mkfs.ext3-f / dev/sdb1
Let's do this in practice:
Take redhat 5 as an example:
Parted / dev/sdb mklabel gpt . Convert to gpt.
Parted / dev/sdb mkpart primary 0 1000000 creates a 1t partition.
Mkfs-t ext3 / dev/sdb1
Mount / dev/sdb1 / mnt/b
In this way, partition b of the large disk is hung under the mnt directory of the linux system.
Power on and mount on your own
Vi / etc/fstab
/ dev/sdb1 / mnt/b auto defaults 0 0
Thank you for your reading, the above is the "linux greater than 2T disk how to use GPT partition" content, after the study of this article, I believe you on the disk linux greater than 2T how to use GPT partition this problem has a deeper understanding, the specific use of the need for practice to verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.