gdisk转fdisk
分区测试的时候发现之前用gdisk分区之后,就无法用fdisk进行分区了,哪怕格式化了也不行,通过fdisk 查看硬盘,发现硬盘都变成了gpt分区,无法通过fdisk进行分区操作,所以要通过parted 删除其gpt分区
[root@docker-server-1 ~]# fdisk -l
disk /dev/sdb: 999.7 gb, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
sector size (logical/physical): 512 bytes / 512 bytes
i/o size (minimum/optimal): 512 bytes / 512 bytes
disk identifier: 0x000dac36
device boot start end blocks id system
disk /dev/sda: 999.7 gb, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
sector size (logical/physical): 512 bytes / 512 bytes
i/o size (minimum/optimal): 512 bytes / 512 bytes
disk identifier: 0x00048d6c
device boot start end blocks id system
/dev/sda1 * 1 1306 10485760 83 linux
/dev/sda2 1306 3346 16384000 82 linux swap / solaris
/dev/sda3 3346 121535 949353472 83 linux
1.选择sdc进行删除gpt分区操作
[root@docker-server-1 ~]# parted /dev/sdc
gnu parted 2.1
using /dev/sdc
welcome to gnu parted! type 'help' to view a list of commands.
(parted)
2.通过mklabel建立msdos分区
(parted) mklabel
new disk label type? msdos
warning: the existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. do you want to continue?
yes/no? yes
warning: /dev/sdc contains gpt signatures, indicating that it has a gpt table. however, it does not have a valid fake msdos partition table, as it should. perhaps it was corrupted -- possibly by a program that doesn't understand
gpt partition tables. or perhaps you deleted the gpt table, and are now using an msdos partition table. is this a gpt partition table?
yes/no? yes
3.再次通过fdisk 查看sdc,就不会提示gpt分区了
上一篇: CentOS安装MySQL8.x
推荐阅读
-
C#中实现输入汉字获取其拼音(汉字转拼音)的2种方法
-
2021兰州财经大学长青学院转设最新消息:与兰资环合并?能否转成公办大学?
-
2021年江西独立学院转设名单:哪些江西独立学院转为公办大学?
-
甘肃独立学院转公办的大学:西北师范大学知行学院和兰州财经大学长青学院转设最新消息
-
2021年甘肃独立学院转设最新消息:西北师大知行学院转设和兰石化兼并?
-
喵影工厂视频怎么横屏转竖屏?
-
C#利用System.Uri转URL为绝对地址的方法
-
湖南工业大学科技学院合并转设方案:湖南工大科院转设公办吗?
-
青岛农业大学海都学院搬迁青岛-青岛农业大学海都学院改名?(附山东独立学院转设名单)
-
关于Java跨域Json字符转类对象的方法示例