Getting a disk ready
Linux with fdisk
sudo fdisk /dev/X #Initiates fdisk on selected disk device
sudo fdisk -l /dev/X #Lists basic info about device
lsblk #To list disks info and mountpoints
#Inside fdisk
o #Define MBR partition table
g #Defines GPT partition table
m #Prints help menu
p #Print the actual partition table
n #Add a new partition
#Inside new partition creator
+500M #Sets space of 500MB
+50G #Sets space of 50GB
v #Verify partition table
d #Delete a partition
w #Write changes
Most popular types:
/etc/fstab
Windows with diskpart
Last updated