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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
| $ sudo fdisk /dev/sda
Command (m for help): 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): 1 First sector (2048-4194303, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-4194303, default 4194303): +1G
Created a new partition 1 of type 'Linux' and of size 1 GiB.
Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (2099200-4194303, default 2099200): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2099200-4194303, default 4194303): +200M
Created a new partition 2 of type 'Linux' and of size 200 MiB.
Command (m for help): n Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): p Partition number (3,4, default 3): 3 First sector (2508800-4194303, default 2508800): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2508800-4194303, default 4194303): +200M
Created a new partition 3 of type 'Linux' and of size 200 MiB.
Command (m for help): n Partition type p primary (3 primary, 0 extended, 1 free) e extended (container for logical partitions) Select (default e): e
Selected partition 4 First sector (2918400-4194303, default 2918400): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2918400-4194303, default 4194303): +200M
Created a new partition 4 of type 'Extended' and of size 200 MiB.
Command (m for help): n All primary partitions are in use. Adding logical partition 5 First sector (2920448-3327999, default 2920448): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2920448-3327999, default 3327999): +100M
Created a new partition 5 of type 'Linux' and of size 100 MiB.
Command (m for help): n All primary partitions are in use. Adding logical partition 6 First sector (3127296-3327999, default 3127296): Last sector, +/-sectors or +/-size{K,M,G,T,P} (3127296-3327999, default 3327999):
Created a new partition 6 of type 'Linux' and of size 98 MiB.
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
$ sudo fdisk /dev/sda -l Disk /dev/sda: 2 GiB, 2147483648 bytes, 4194304 sectors Disk model: VMware Virtual S 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: dos Disk identifier: 0x1bd200c3
Device Boot Start End Sectors Size Id Type /dev/sda1 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 2508799 409600 200M 83 Linux /dev/sda3 2508800 2918399 409600 200M 83 Linux /dev/sda4 2918400 3327999 409600 200M 5 Extended /dev/sda5 2920448 3125247 204800 100M 83 Linux /dev/sda6 3127296 3327999 200704 98M 83 Linux
|