【CentOS 7.1】 mount 3T

來源:互聯網
上載者:User

標籤:centos gpt fisk 3t

傳統的MBR分區表只能支援2T的定址空間,所以如果用MBR作為分區表,那3T硬碟就只能用2T的空間


[[email protected] ~]# df -h

檔案系統                 容量  已用  可用 已用% 掛載點

/dev/mapper/centos-root   50G  5.1G   45G   11% /

devtmpfs                  16G     0   16G    0% /dev

tmpfs                     16G     0   16G    0% /dev/shm

tmpfs                     16G  9.1M   16G    1% /run

tmpfs                     16G     0   16G    0% /sys/fs/cgroup

/dev/sdc1                2.0T   33M  2.0T    1% /mnt/data2   ******

/dev/sdb1                2.0T   33M  2.0T    1% /mnt/data1   ******

/dev/mapper/centos-home  1.8T   36M  1.8T    1% /home

/dev/sda1                497M  168M  329M   34% /boot


////

//// parted

////

[[email protected] ~]# parted /dev/sdb

GNU Parted 3.1

使用 /dev/sdb

Welcome to GNU Parted! Type ‘help‘ to view a list of commands.

(parted)  


(parted) help                                                             

  align-check TYPE N                        check partition N for TYPE(min|opt)

        alignment

  help [COMMAND]                           print general help, or help on

        COMMAND

  mklabel,mktable LABEL-TYPE               create a new disklabel (partition

        table)

  mkpart PART-TYPE [FS-TYPE] START END     make a partition

  name NUMBER NAME                         name partition NUMBER as NAME

  print [devices|free|list,all|NUMBER]     display the partition table,

        available devices, free space, all found partitions, or a particular

        partition

  quit                                     exit program

  rescue START END                         rescue a lost partition near START

        and END

  rm NUMBER                                delete partition NUMBER

  select DEVICE                            choose the device to edit

  disk_set FLAG STATE                      change the FLAG on selected device

  disk_toggle [FLAG]                       toggle the state of FLAG on selected

        device

  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER

  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition

        NUMBER

  unit UNIT                                set the default unit to UNIT

  version                                  display the version number and

        copyright information of GNU Parted

(parted) 

(parted) mklabel gpt                                                      

警告: The existing disk label on /dev/sdb will be destroyed and all data on this

disk will be lost. Do you want to continue?

是/Yes/否/No? Yes                                                         

(parted)


(parted) mkpart primary 0 -1                                              

警告: The resulting partition is not properly aligned for best performance.

忽略/Ignore/放棄/Cancel? Ignore                                           

(parted) print                                                            

Model: ATA WDC WD3000FYYZ-0 (scsi)

Disk /dev/sdb: 3001GB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags: 


Number  Start   End     Size    File system  Name     標誌

 1      17.4kB  3001GB  3001GB               primary


(parted)                                                                  






【CentOS 7.1】 mount 3T

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.