Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to mount a 3T hard disk or a disk greater than 2T by Ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how Ubuntu mount 3T hard disk or greater than 2T disk, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

1. Display the hard disk and its partition. Enter the following command in the terminal window

Fdisk-lu

You can see the 3T disk to be hung on

Since the maximum fdisk partition can only be 2 T, parted is used here.

Execute the command parted / dev/sdc

Because MBR partition tables do not support partitions larger than 2.2TB (2.2 × 1012 bytes), some BIOS systems replace MBR partition tables with GPT partition tables in order to support large hard disks.

Execute fdisk-l and you can see the sdc1 partition

Format Partition

Ext4 means to format a partition to an ext4 file system type

Mkfs.ext4 / dev/sdc1

Mount partition

Specify that the hard disk partition file system type is ext4 and mount the / dev/sdc1 partition to the directory / media/sdc1

Mkdir / media/sdc1

Cat/etc/fstab

/ dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0/dev/sdb1 / media/sdb1 ext4 rw 0 0/dev/sdc1 / media/sdc1 ext4 rw 0 0

Restart the server to execute df-h

The above is all the contents of the article "how to mount a 3T hard disk or a disk larger than 2T in Ubuntu". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report