Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Created August 28, 2024 08:49
Show Gist options
  • Save Max95Cohen/2c236fe99bf0e4ba981c584be3544319 to your computer and use it in GitHub Desktop.
Save Max95Cohen/2c236fe99bf0e4ba981c584be3544319 to your computer and use it in GitHub Desktop.
Create partition
# create new partition
sudo fdisk /dev/sda
# in fdisk console
n - add a new partition
p - print the partition table
w - write table to disk and exit
q - quit without save changes
# make file system
sudo mkfs.ext4 /dev/sda1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment