The Guide shows you How to Getting-Started Partitioning a Disk/Drive by fdisk Linux Command Line Tools.
All Steps are Clearly Delineated Reducing at Minimum the Eventuals Choices and Customizations to Make Clearer & Easier the Process.
So if you Have Some Doubt or Need Some More Insight you Should Consult the Official Online Documentation…
Just Relax & Take the Time of Carefully Reading and Executing the Instructions Contained Here and All should Work Like a Summer Breeze :)
For the Sake of Clarity I Take Into Account Only the General Case of Making Two Partitions on Disk:
-
One Swap Partition
-
One Root Partition
.
After Adding some Extra /home or /boot Partitions will be As Simple as Making the Root One!
-
Open a Terminal Window
(Press “Enter” to Execute Commands) -
Login as SuperUser
su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
In Ubuntu-Like or on a macOS Instead.
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
Start fdisk
fdisk /dev/sda
-
Make a New-Partition Table
o
-
Create the Swap Partition
n
Accept Defaults But Latest Sector.
Set Latest Sector Swap Size.
+1G
-
Create the Root Partition
n
Simply Confirm All Defaults.
-
Setup the Partition Type to Swap
Enter:
t
Partition Number:
1
Set Hex Code:
82
-
Write Changes
This Will Discard All Existing Data on Disk!.
w
-
How to Format Created Partitions on Linux Command Line:
Formatting on Linux Command-Line