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.
Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x4557981f.
Command (m forhelp): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-3907029167, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029167, default 3907029167):
Created a new partition 1 of type'Linux' and of size 1.8 TiB.
Command (m forhelp): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
接著我們再用一次 fdisk -l /dev/sda 看一下分割資訊
1 2 3 4 5 6 7 8 9 10 11
> sudo fdisk -l /dev/sda Disk /dev/sda: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors Disk model: TOSHIBA DT02ABA2 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x4557981f
Device Boot Start End Sectors Size Id Type /dev/sda1 2048 3907029167 3907027120 1.8T 83 Linux
# /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation /dev/disk/by-id/dm-uuid-LVM-are0EThQSeIaHUqInASIcJ738TIRHn81ZKWme0k38SHcWlAc1i7mtjEgQTWQS6XP / ext4 defaults 0 1 # /boot was on /dev/nvme0n1p2 during curtin installation /dev/disk/by-uuid/a099d71a-efc5-4432-9ab9-b271eadf5067 /boot ext4 defaults 0 1 # /boot/efi was on /dev/nvme0n1p1 during curtin installation /dev/disk/by-uuid/66F8-3AE3 /boot/efi vfat defaults 0 1 /swap.img none swap sw 0 0 /dev/disk/by-uuid/43162d9b-368a-49be-8f45-73df1529185a /data ext4 defaults 0 0