User Tools

Site Tools


ubuntu:disk:get_disk_info

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
ubuntu:disk:get_disk_info [2019/11/26 18:28] peterubuntu:disk:get_disk_info [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 9: Line 9:
 </code> </code>
  
-returns+returns:
  
-<code>+<code bash>
  
 /dev/sda: /dev/sda:
Line 32: Line 32:
 ---- ----
  
-For SCSI disk, a different command is to be used:+===== For SCSI disks =====
  
 <code bash> <code bash>
Line 38: Line 38:
 </code> </code>
  
 +----
  
-To check the hardisk capacity and partitions contained in the hardisk, fdisk can be used:+===== To check the hardisk capacity and partitions contained in the hardisk =====
  
 <code bash> <code bash>
Line 45: Line 46:
 </code> </code>
  
-returns +returns:
  
-<code>+<code bash>
 Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
Line 62: Line 63:
 ---- ----
  
-For LVM disks+===== For LVM disks =====
  
 <code bash> <code bash>
Line 68: Line 69:
 </code> </code>
  
-returns+returns:
  
-<code>+<code bash>
   ACTIVE            '/dev/ubuntu-vg/root' [<1.82 TiB] inherit   ACTIVE            '/dev/ubuntu-vg/root' [<1.82 TiB] inherit
   ACTIVE            '/dev/ubuntu-vg/swap_1' [976.00 MiB] inherit   ACTIVE            '/dev/ubuntu-vg/swap_1' [976.00 MiB] inherit
 </code> </code>
 +
 +----
  
ubuntu/disk/get_disk_info.1574792893.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki