Getting a disk ready
Linux with fdisk
Indicate what partition table you are going to use MBR or GPT (recommended GPT)
Set partitions
Assign a filesystem
Most popular types:
FAT32: compatible with almost everything, optimized for removable storage though has a limitation of 4GB for a single file.
mkfs.fat
exFAT: ExtendedFAT, evolution of FAT32, optimized for removable storage, practically no limit on file or partition size and full compatible with modern OS's though it may not be compatible with old ones.
mkfs.exfat
NTFS: designed by Microsoft, used on Windows, but is compatible with Linux thanks to drivers and is also useful for removable storage as it has great compatibility, great optimization and no size limitations like FAT32.
EXT4: the most recent versión of Extended Filesystem, native on Linux systems, best performance.
SWAP: special format file/partition that acts like an extensión of RAM, giving as much space as we want from the storage disk so if the RAM gets full the system uses it for creating new processes and it doesn't crash or stops working. But as it is in the disk connected by SATA or NVME maybe, not the RAM DIMM Module, its way more slow, so its best to avoid reaching that limit.
Mount the partition
/etc/fstab
Configuration file that specifies what filesystems will be mounted and where at the boot of the system. Takes care of our root filesystem!
It's critical for system booting, so when editing take great care and make sure to have a backup copy! Malfunctioning fstab is no fun.
cp /etc/fstab /etc/fstab.bak
Windows with diskpart
Indicate what partition table you are going to use MBR or GPT (recommended GPT)
Set partitions
Assign a filesystem
See most popular ones above.
Mount the partition
Last updated