1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| [root@RockyLinux8 ~]# fdisk /dev/vdb
Welcome to fdisk (util-linux 2.32.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
GPT PMBR size mismatch (246846 != 2097151) will be corrected by write. The backup GPT table is corrupt, but the primary appears OK, so that will be used. The backup GPT table is not on the end of the device. This problem will be corrected by write.
Command (m for help): p
Disk /dev/vdb: 1 GiB, 1073741824 bytes, 2097152 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 2785922E-FF64-67DB-D7C1-D777E6133600
Device Start End Sectors Size Type /dev/vdb1 512 33279 32768 16M EFI System /dev/vdb2 33792 246783 212992 104M Microsoft basic data /dev/vdb128 34 511 478 239K BIOS boot
Partition table entries are not in disk order.
Command (m for help): d Partition number (1,2,128, default 128): 2
Partition 2 has been deleted.
Command (m for help): n Partition number (2-127, default 2): First sector (33280-2097118, default 34816): 33792 Last sector, +sectors or +size{K,M,G,T,P} (33792-2097118, default 2097118):
Created a new partition 2 of type 'Linux filesystem' and of size 1007.5 MiB. Partition #2 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: N
Command (m for help): t Partition number (1,2,128, default 128): 2 Partition type (type L to list all types): 11
Changed type of partition 'Linux filesystem' to 'Microsoft basic data'.
Command (m for help): w
The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
|