๐ฝDisk Configurations
Disk configuration commands cheatsheet
List block devices
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop6 squashfs 4.0 0 100% /snap/core18/2622
loop7 squashfs 4.0 0 100% /snap/ngrok/91
sda
โโsda1 ext4 1.0 usb-ext-hdd1 963ea240-25b3-4efe-aeac-fd89ce4a3c6a
โโsda2 ext4 1.0 usb-ext-hdd2 019f78be-f93d-4468-b5e6-518f9ee02428
mmcblk0
โโmmcblk0p1 vfat FAT32 system-boot D7E2-9D99 104.6M 58% /boot/firmware
โโmmcblk0p2 ext4 1.0 writable b09bb4c8-de4d-4ce6-a93f-30c4c9241a58 213.8G 5% /Create partition
$ sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
...
- Enter 'n' to create partition
- Enter 'p' to make primary parition
- Enter '1' to make the partition number 1 (e.g. /dev/sda1)
- Enter 'w' to write the changesCreate file system
Set label to partition
label to partitionMount partition
Delete partition
fstab config
Last updated