2022-07-22 08:48:52 +01:00
|
|
|
---
|
2022-09-06 13:26:44 +01:00
|
|
|
categories:
|
2022-07-22 08:48:52 +01:00
|
|
|
- Linux
|
2022-09-11 12:00:05 +01:00
|
|
|
- Operating Systems
|
2022-09-06 13:26:44 +01:00
|
|
|
tags:
|
2022-07-22 08:48:52 +01:00
|
|
|
- disks
|
|
|
|
---
|
|
|
|
|
|
|
|
# What are disks?
|
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
A disk is a mass storage [block_device](/Operating_Systems/Devices.md) which we
|
|
|
|
can write to and read from.
|
2022-07-22 08:48:52 +01:00
|
|
|
|
|
|
|
## SCSI
|
2022-09-06 13:26:44 +01:00
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
- Small Computer System Interface, responsible for handling disk access on most
|
|
|
|
Linux systems.
|
|
|
|
- It is a protocol that allows communicaton between printers, scanners and other
|
|
|
|
peripherals in addition to harddisks.
|
2022-09-06 13:26:44 +01:00
|
|
|
|
2022-07-22 08:48:52 +01:00
|
|
|
## Disk schematic
|
2022-09-06 13:26:44 +01:00
|
|
|
|
2022-07-22 08:48:52 +01:00
|
|
|
The following diagram represents the basic anatomy of a disk device.
|
|
|
|
|
2022-12-29 20:22:34 +00:00
|
|
|

|
2022-07-22 08:48:52 +01:00
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
- A disk is divided up into [partitions](/Operating_Systems/Disks/Partitions.md)
|
|
|
|
which are subsections of the overall disk. The kernel presents each partition
|
|
|
|
as a [block device](/Operating_Systems/Devices.md) as it would with an entire
|
|
|
|
disk.
|
|
|
|
- The disk dedicates a small part of its contents to a **partition table**: this
|
|
|
|
defines the different partitions that comprise the total disk space.
|
|
|
|
- The **filesystem** is a database of files and directories: this comprises the
|
|
|
|
bulk of the partition and is what you interact with in
|
|
|
|
[user space](/Operating_Systems/User_Space.md) when reading and writing data.
|