[Edit]
+
0
-
0
Linux - list disks and partitions
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 29sudo parted -l # Example output: # # Model: ATA ST4000NE001-2MA1 (scsi) # Disk /dev/sda: 4001GB # Sector size (logical/physical): 512B/4096B # Partition Table: gpt # Disk Flags: # # Number Start End Size File system Name Flags # 1 17,4kB 16,8MB 16,8MB Microsoft reserved partition msftres # 2 16,8MB 4001GB 4001GB ntfs Basic data partition msftdata # # # Model: Samsung SSD 970 EVO 1TB (nvme) # Disk /dev/nvme0n1: 1000GB # Sector size (logical/physical): 512B/512B # Partition Table: gpt # Disk Flags: # # Number Start End Size File system Name Flags # 1 1049kB 106MB 105MB fat32 EFI system partition boot, esp # 2 106MB 123MB 16,8MB Microsoft reserved partition msftres # 3 123MB 716GB 716GB Basic data partition msftdata # 4 716GB 717GB 590MB ntfs hidden, diag # 5 717GB 717GB 500MB ext4 # 6 717GB 1000GB 282GB ext4