龙空技术网

Linux下的parted工具的使用 GPT分区安装系统

武汉王老吉 573

前言:

此时大家对“centos58安装gpt分区”大体比较关心,我们都想要剖析一些“centos58安装gpt分区”的相关资讯。那么小编同时在网摘上搜集了一些有关“centos58安装gpt分区””的相关资讯,希望看官们能喜欢,姐妹们快快来学习一下吧!

Linux下的parted工具的使用也很简单,具体操作如下:

root@me:/mnt# parted /dev/sda

Using /dev/sda

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

(parted) mklabel gpt #这样才能大分区

Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk

will be lost. Do you want to continue?

Yes/No? yes

(parted) print

Model: DELL PERC 6/i Adapter (scsi)

Disk /dev/sda: 500GB

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

Partition Table: gpt

Number Start End Size File system Name Flags

(parted)mkpart primary 0GB 500GB

(parted)mkpart primary 0% 100%

Warning: You requested a partition from 0.00B to 500GB.

The closest location we can manage is 17.4kB to 500GB.

Is this still acceptable to you?

Yes/No? yes

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

Ignore/Cancel? Ignore

(parted) print

Model: DELL PERC 6/i Adapter (scsi)

Disk /dev/sda: 500GB

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

Partition Table: gpt

Number Start End Size File system Name Flags

1 17.4kB 500GB 500GB primary

(parted)quit

Information: You may need to update /etc/fstab.

root@me:/#mkfs.ext4 /dev/sda1

#mkntfs -f 加f快速分区 或者vfs分区 这两种支持大分区

标签: #centos58安装gpt分区