(3) Displaying partitions
The following describes the procedure for displaying partitions.
Two methods are available. The following describes the procedure for each method.
(a) Display method 1
1. Start the gdisk command with /dev/sda specified for the argument.
$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help):
2. Enter p to run the command that displays partitions.
Command (? for help):p
Disk /dev/sda: 15728640 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6A423A3C-EFD1-448C-AA4F-70DB2D2D757B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15728606
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number
Start (sector)
1
Note
The underlined part is partition information.
3. Enter q to terminate processing.
Command (? for help):q
(b) Display method 2
1. Start the gdisk command with -l option and with /dev/sda specified for the argument.
The gdisk command prompt does not appear, the partitions are displayed, and the command terminates.
$ sudo gdisk /dev/sda -l
Disk /dev/sda: 15728640 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6A423A3C-EFD1-448C-AA4F-70DB2D2D757B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 15728606
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number
Start (sector)
1
Note
The underlined part is partition information.
(4) Deleting partitions
To delete partitions:
1. Start the gdisk command with /dev/sda specified for the argument.
$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
End (sector)
2048
15728606
End (sector)
2048
15728606
5. Configuring Software Environment
Size
Code
Name
7.5 GiB
8300
Linux filesystem
Size
Code
Name
7.5 GiB
8300
Linux filesystem
59