Informational Website publish

Blog

News about our company, tutorials about IT and much more you will find in this page.

How To List Disk Partitions Command

Janeiro 30th, 2018

lsblk Command

  • lsblk
  NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT 
   sda 8:0 1 558G 0 disk 
├─sda1 8:1 1 307M 0 part /boot 
├─sda2 8:2 1 250G 0 part /webroot 
├─sda3 8:3 1 6G 0 part [SWAP] 
├─sda4 8:4 1 1K 0 part 
└─sda5 8:5 1 301.7G 0 part / 
  sr0 11:0 1 1024M 0 rom

fdisk command

  • fdisk -l
Disk /dev/sda: 251.1 GB, 251059544064 bytes
255 heads, 63 sectors/track, 30522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008fcd3
Device Boot Start End Blocks Id System
/dev/sda1 * 1 14 104448 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 14 13068 104857600 83 Linux
/dev/sda3 13068 13198 1048576 82 Linux swap / Solaris
/dev/sda4 13198 30523 139163648 5 Extended
/dev/sda5 13198 30523 139162624 83 Linux

lssci command

  • lsscsi
[0:0:0:0] disk ATA TOSHIBA MK5061GS MF00 /dev/sda
[1:0:0:0] cd/dvd MATSHITA BD-RE UJ232A 1.10 /dev/sr0
[2:0:0:0] disk ATA ST9500420ASG 0004 /dev/sdb