linux:storage
This is an old revision of the document!
Table of Contents
Linux Storage
This page contains my personal notes on Linux filesystems, partitioning, backups, performance tuning, and related concepts. Warning: these notes are specific to my own non-critical systems and may not be applicable in general use cases.
Partitioning for Ubuntu 19.04 workstations
I'm currently the following configuration on my Dell Precision 5520 notebook computer:
- 256GB NVMe drive
- 512MiB /boot partition as a raw ext4 partition
- 512MiB EFI partition as a raw FAT partition
- the rest of the disk is configured as an LVM PV consuming 92% of the drive
- this currently contains one volume group with two logical volumes, 16GiB for swap (to allow hibernate) and the remaining space is used for /
Initializing partitions using gparted
GNU parted manual: https://www.gnu.org/software/parted/manual/parted.html#Using-Parted-1
parted /dev/nvme0n1 print # check to see what's already on the disk before you do anything else mklabel gpt unit MiB # use binary format units when partitioning mkpart efi fat32 1MiB 513MiB # align the first block mkpart boot ext4 513MiB 1025MiB mkpart pv0 ext4 1025MiB 92% # finish the LVM pv at 92% capacity
If this worked you will see something like this when you print the partition table
(parted) print Model: PC401 NVMe SK hynix 256GB (nvme) Disk /dev/nvme0n1: 244198MiB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1.00MiB 513MiB 512MiB fat32 efi 2 513MiB 1025MiB 512MiB ext4 boot 3 1025MiB 224662MiB 223637MiB ext4 pv0
linux/storage.1556646418.txt.gz · Last modified: 2019-04-30 13:46 by gabriel