From 0a210057130cfad6455347d44b01677221649e57 Mon Sep 17 00:00:00 2001 From: bobbie Date: Fri, 15 May 2026 11:10:09 +0100 Subject: [PATCH] vault backup: 2026-05-15 11:10:09 --- _Inbox/Linux CLI Config and Commands.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/_Inbox/Linux CLI Config and Commands.md b/_Inbox/Linux CLI Config and Commands.md index 49904c0..8b1491a 100644 --- a/_Inbox/Linux CLI Config and Commands.md +++ b/_Inbox/Linux CLI Config and Commands.md @@ -37,3 +37,24 @@ or apply sudo netplan apply ``` +## drive partitions + +create gpt partition table (for new drives without any partitions) +``` +sudo parted /dev/sdx mklabel gpt +``` + +create new partition +``` +sudo parted -a optimal /dev/sdx mkpart primary ext4 0% 100% +``` + +format the partition +``` +sudo mkfs.ext4 /dev/sdxn +``` + +mount a drive +``` +sudo mount /dev/sdxn /mnt/storage +``` \ No newline at end of file