User Tools

Site Tools


wiki:show_hard_disk_size

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:show_hard_disk_size [2023/09/06 10:56] walkeradminwiki:show_hard_disk_size [2023/09/06 11:17] (current) – [Example] walkeradmin
Line 11: Line 11:
     fdisk -l | grep '^Disk'     fdisk -l | grep '^Disk'
 \\  \\ 
 +==== Example ====
 +<file>
 +fdisk -l | grep '^Disk'
 +
 +Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
 +Disk model: Samsung SSD 850 
 +Disklabel type: dos
 +Disk identifier: 0x1f26beb5
 +Disk /dev/mapper/almalinux-root: 70 GiB, 75161927680 bytes, 146800640 sectors
 +Disk /dev/mapper/almalinux-swap: 7.79 GiB, 8367636480 bytes, 16343040 sectors
 +Disk /dev/mapper/almalinux-home: 386.96 GiB, 415500337152 bytes, 811524096 sectors
 +</file>
 \\  \\ 
 +The first line in the output shows the hard disk size:
 +\\ 
 +\\ 
 +Disk /dev/sda: <color #ed1c24>465.76 GiB</color>, 500107862016 bytes, 976773168 sectors
 +\\ 
 +\\ 
 +The remaining three lines are the partitions within that disk:
 +\\ 
 +\\ 
 +Disk /dev/mapper/almalinux-root: <color #ed1c24>70 GiB</color>, 75161927680 bytes, 146800640 sectors
 +Disk /dev/mapper/almalinux-swap: 7.79 GiB, 8367636480 bytes, 16343040 sectors
 +Disk /dev/mapper/almalinux-home: <color #ed1c24>386.96 GiB</color>, 415500337152 bytes, 811524096 sectors.
 +\\ 
 +\\ 
 +The three partitions are <color #ed1c24>70GB + 7.79Gb + 70GB = 464.75GB</color> which is the disk size (all bar 1MB)
 +\\ 
 +\\ 
 +
 +
  
wiki/show_hard_disk_size.1693994164.txt.gz · Last modified: 2023/09/06 10:56 by walkeradmin