Linux Storage Systems

LinkedIn Learning : Kevin Dankwardt

Code and Output Samples

Listing 1

This is the sort of output you will typically see when running a command such as sudo fdisk -l.

		Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes

		Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 512 bytes
		I/O size (minimum/optimal): 512 bytes / 512 bytes
		Disklabel type: dos
		Disk identifier: 0x007fc764

		Device         Boot  Start      End  Sectors  Size Id Type
		/dev/mmcblk0p1        8192   532479   524288  256M  c W95 FAT32 (LBA)
		/dev/mmcblk0p2      532480 62333951 61801472 29.5G 83 Linux

		Disk /dev/sda: 4.6 TiB, 5000981077504 bytes, 9767541167 sectors
		Disk model: Portable
		Units: sectors of 1 * 512 = 512 bytes
		Sector size (logical/physical): 512 bytes / 4096 bytes
		I/O size (minimum/optimal): 4096 bytes / 4096 bytes
		Disklabel type: gpt
		Disk identifier: C38D37C5-915A-464A-9404-217E98AA74B6

		Device      Start        End    Sectors  Size Type
		/dev/sda1      34     262177     262144  128M Microsoft reserved
		/dev/sda2  264192 9767540735 9767276544  4.6T Microsoft basic data

		Partition 1 does not start on physical sector boundary.