Afraid of the dreaded “p” word?

You’re not alone.

Image bydmyhung

What Are Partitions?

hdd part (dmyhung) cropped

Partitions are divisions in the formatting of the hard disk.

Think breaking a disk into two configuration parts.

Partitions are really handy because they act as a sandbox.

partition scheme (methoddan)

One could have Windows installed, riddled with viruses and trojans.

The other could be running a very obsolete, security-hole addled Linux installation.

Never shall the two interfere, unless either you make them or the hard drive itself physically dies.

Screenshot-Install

Only have one hard drive?

Any given hard disk can only have a maximum of four primary partitions.

But what if we want more than four?

installation manual

That’s where the extended partition comes into play.

It serves as a hollow container for any number of smaller, logical partitions.

If extended partitions are so great, why not just use them?

new partition

That’s because you might’t directly boot from anywhere inside an extended partition.

In addition, the way partitions are numbered by the system depends on these types.

First, the machine will number based on all primary partitions, and then by logical ones.

Create partition

This can cause changing drive letters if you switch between OSs or add or delete partitions later.

If not, it’ll usually ignore them, or offer you the ability to reformat.

Linux – and anything resembling Unix, really - doesn’t quite work that way.

swap

The way Linux works is that it puts everything onto a tree.

The directory that a partition gets mounted to is called a “mount point.”

In Windows, this is not so easily done; new partitions generally show up as separate drives.

home

In addition, Linux can work with many more types of file systems natively than Windows.

Remember how there could only be four primary partitions?

What Scheme Should I Use?

finished!

Finally, whatever else you have should go to your /home partition.

This is where your personal stuff is stored.

Isn’t that convenient?

To top it off, most of your program- and UI-related configs are saved as well!

Click forward and you’ll see the partition table.

This will give you some free space to work with.

Click “OK” and you’re set to create another partition.

Click “OK,” and let’s create another partition.

I’ve selected all of the rest of the space in the middle to be my /home partition.

The compatible file system I’ve chosen is again ext4.

Now here is the gray area: should it be primary or logical?

When you’re all finished, you might resume installation.

Linux Commands

Files

tarpvcattacchmodgrepdiffsedarmanpushdpopdfscktestdiskseqfdpandoccd$PATHawkjoinjqfolduniqjournalctltailstatlsfstabecholesschgrpchownrevlookstringstyperenamezipunzipmountumountinstallfdiskmkfsrmrmdirrsyncdfgpgvinanomkdirdulnpatchconvertrcloneshredsrmscpgzipchattrcutfindumaskwctr

Processes

aliasscreentopnicereniceprogressstracesystemdtmuxchshhistoryatbatchfreewhichdmesgchfnusermodpschrootxargsttypinkylsofvmstattimeoutwallyeskillsleepsudosutimegroupaddusermodgroupslshwshutdownreboothaltpoweroffpasswdlscpucrontabdatebgfgpidofnohuppmap

Networking

netstatpingtracerouteipsswhoisfail2banbmondigfingernmapftpcurlwgetwhowhoamiwiptablesssh-keygenufwarpingfirewalld