我正在使用 ubuntu 20.04,我想创建正好 500 MB 的新分区磁盘。但是,fdisk 将其调整为 512MiB 有什么方法可以创建正好 500MB 的磁盘大小?
ric@Eric:~/Downloads$ sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
All primary partitions are in use.
Adding logical partition 7
First sector (2359260-10288994, default 2359260): 2359260
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2359260-10288994, default 10288994): +500M
Created a new partition 7 of type 'Linux' and of size 512 MiB.
Command (m for help): p
Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Portable SSD T5
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xd13fa933
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 1952501760 1953523711 1021952 499M ef EFI (FAT-12/16/32)
/dev/sda2 1950453760 1952501759 2048000 1000M 83 Linux
/dev/sda3 1704693760 1950453759 245760000 117.2G 83 Linux
/dev/sda4 65536 10288994 10223459 4.9G 5 Extended
/dev/sda5 131071 1179629 1048559 512M 83 Linux
/dev/sda6 1245165 2293724 1048560 512M 83 Linux
/dev/sda7 2359260 3407819 1048560 512M 83 Linux
Partition table entries are not in disk order.
Command (m for help):