linux gpt分区挂载,GPT分区和挂载

本文介绍了如何在Linux中将GPT磁盘转换为MBR以及如何重新创建和挂载GPT分区。通过使用`parted`工具进行分区操作,并通过`mkpart`创建新的EXT4分区。接着,通过`mke2fs`格式化分区,并用`blkid`获取UUID以在`/etc/fstab`中设置开机挂载。
摘要由CSDN通过智能技术生成

将GPT转换MBR会格式化硬盘:

[root@node1 ~]# parted /dev/sda mklabel msdos

Warning: Partition(s) on /dev/sda are being used.

Ignore/Cancel? ignore

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? no

GPT转换MBR会格式化

so,需要从新分区

[root@node1 ~]# parted

GNU Parted 2.1

Using /dev/sda

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

(parted) mkpart 创建

Partition name? []? KVM2 名称叫KVM2

File system type? [ext2]? ext4 格式为ext4

Start? 501GB 起始位置501GB

End? 896GB 结束位置896GB

Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes

until after reboot.

(parted) p

Model: IBM ServeRA

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值