In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to add a new disk larger than 2TB to Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Have you ever tried using fdisk to partition hard drives larger than 2TB, and wondered why you were warned of the need to use GPT? Yes, what you saw was right. We cannot use fdisk to partition hard drives larger than 2TB.
In this case, we can use the parted command. The main difference is that fdisk uses the DOS partition table format and parted uses the GPT format.
Tip: you can use gdisk instead of parted.
In this article, we will show you how to add new disks larger than 2TB to an existing Linux server, such as RHEL/CentOS or Debian/Ubuntu.
I used fdisk and parted for this configuration.
First use the fdisk command to list the current partition details, as shown in the figure.
For the purposes of this article, I have added a disk of 20GB, which can also be a disk larger than 2TB. After you have added the disk, use the same fdisk command to verify the partition table.
Tip: if you add a physical disk, you may find that the partition has been created. In this case, you can delete it using fdisk before using parted.
Important: you need to be careful when deleting partitions. This erases the data on the disk.
Out of curiosity, let's look at the new partition using fdisk.
Now format and mount the partition and add the same information to / etc/fstab, which controls mounting the file system at system startup.
That's it! In this article, we showed you how to use the parted command.
Thank you for reading! This is the end of the article on "how to add a new disk larger than 2TB in Linux". 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, you can share it out 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.