From 401645766c41ba56d22c14570fe0245e4323ab97 Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Sat, 11 Jun 2022 22:30:04 +0100 Subject: [PATCH] Last Sync: 2022-06-11 22:30:04 --- Operating_Systems/Disks.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Operating_Systems/Disks.md b/Operating_Systems/Disks.md index 8a4e9b1..41aec4b 100644 --- a/Operating_Systems/Disks.md +++ b/Operating_Systems/Disks.md @@ -16,9 +16,12 @@ A disk is a mass storage [device](./Devices.md) which we can write to and read f ## Disk schematic The following diagram represents the basic anatomy of a disk device. +![](/img/harddisk.png) + + * A disk is divided up into *partitions* which are subsections of the overall disk. The kernel presents each partition as a [block device](./Devices.md#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 of course what you interact with in [user space](./User_Space.md) when reading and writing data. +* 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](./User_Space.md) when reading and writing data. ## Partitioning disks @@ -56,8 +59,15 @@ Device Start End Sectors Size Type /dev/nvme0n1p2 1001472 59594751 58593280 27.9G Linux filesystem /dev/nvme0n1p3 59594752 1000214527 940619776 448.5G Linux filesystem ``` +The two tools disclose the following information: -So my main harddrive is `/dev/nvme0n1` and it has the standard three partitions: +So my main harddrive is `/dev/nvme0n1` (equivalent to and it has the standard three partitions: * Boot partition (`/dev/nvme0n1p1`) * Root dir (`/dev/nvme0n1p2`) -* Home dir (`/dev/nvme0n1p3`) \ No newline at end of file +* Home dir (`/dev/nvme0n1p3`) + + +## ! To cover + +What is gpt/uefi/efi +ext-4 and dos etc