Partitions in Linux – If at first you were a Windows user and wanted to move to open source / Linux before you wanted to use the Linux operating system (OS), then you must know what type of partition the linux is in.
Linux is a Unix like operating system where the notion of Unix likes is Linux is an operating system that is not a derivative of a Unix operating system but has a way of working and directory systems resembling Unix. Linux was created by Linus Benedicts Torvald which is the result of his tweaking of the minix kernel.
Minix is a small Unix operating system developed by Andrew S. Tanenbaum, he is a professor who is involved in OS problem research from Vrije Universiteit, Netherlands. Minix is used for teaching and education purposes. Unix itself is an operating system that has long existed, even Unix existed before the advent of Microsoft’s operating system, Windows. Currently on other large computer servers and computers use Unix.
This Unix operating system was made specifically for certain machines, unlike Linux, whose existence is intended for x86 architecture systems that are widely circulating in the market. The fundamental difference between Linux and other operating systems is Open Source .
One form of unix that is copied by Linux is a directory system where this directory system is different from what is followed by a family of windows families like this below.
General Directory Structure in Linux
Shows the highest hierarchy of the linux directory system where this directory is under the directories / user, / home, / mnt and other directories as shown above
Contains programs that contain commands used by normal users such as the ls command ( displaying the contents of a directory ) cd ( to switch directories )
Contains programs that contain commands used by super users such as ifconfig ( displaying information about network cards / network devices installed on the
contains data from the user registered in the computer / machine in question.
contains program packages, documentation, configuration, applications, libraries and linux application sources.
contains applications that can be accessed by all users (almost the same as / usr / sbin /.
is the “ home “ of superuser / root / administrator.
stands for temporary is a directory provided when you need temporary space to do work, for example when you burn a cd, the image (iso file) is entered by default into this directory before it is burnt to cd.
in general it is a directory of configuration files for various kinds of services and installed programs in the system.
contains information on devices mounted on a computer.
This directory contains various data (vary). Changing data in an active system is very fast. Data like this exist in a short time. Because it is always changing, it is not possible to store it in a directory like “/ etc”. Therefore, data like this is stored in the var directory.
contains information relating to the device and service that is run when the computer boots (computer process from off / off to on / on). In general, the Mod APK Download Linux operating system contains the directories mentioned above, but in some distributions there are some specific directories like / srv added to the Suse family where the added directories have special functions which are sometimes not found in other distributions.
When installing, you need at least 2 partitions so that a computer can be installed on OS Linux, namely the root partition (denoted by / distinguish from / root) and the swap partition.
The root (/) partition is used to install a Linux system, almost the same as C: Windows for Microsoft Windows operating systems. Swap partitions are allocated as additional memory when RAM memory is insufficient when the system loads a program, for example: load X program requires 1500 MB of memory while installed RAM is 1000 MB / 1 GB then 500 MB of remaining memory needed is taken from the partition swap that has been made.
Which swap partition is needed for RAM memory? 1 GB is twice the RAM Memory installed on a computer, except for RAM memory above 2 GB, the swap allocation does not have to be 2 times the RAM can be installed by 1 GB or up to the taste of each user.
For Linux installations, at least 2 partitions are needed, namely the root partition and swap partition:
1. Root partition
Root partition (denoted by / differentiate with / root), The root (/) partition is used to install the Linux system, almost the same as the windows system that is usually placed on drive C.
2. Partition / swap
The SWAP partition is used as an additional memory when RAM is insufficient when the system runs a program. The size of a SWAP partition is usually 2x the size of RAM. So if the ram that we use is 1GB, then the size of the SWAP partition is 2GB.
3. Partition / home
The / home partition is needed to avoid losing data when your system crashes and needs to be re-installed. Conditions like the above are assumed to be used only for one OS (linux). You can use Linux system files or Windows system files for this partition. In addition to being used for data storage, the partition / home is also used by several programs to place configuration files. Adjust the size of the partition / home with hard disk capacity.
In detail, you can just make more than two partitions for GNU / Linux. For example, special partitions for / boot, / home, / usr, / bin, / var, / etc or other additional partitions. But, for beginners, just divide it into 3 partitions. Swap partition (1x computer RAM, adjust memory capacity), root (/) partition for other directories, and / home partition to store data.
4. Partition / boot
The boot partition is used to store boot loader files and all images from the kernel. The size of the boot partition usually has a minimum value of 100MB.
5. Partition / usr
The / usr partition is used to store all the binary files from linux installed, so it must be given a large enough size.
This partition is used to store components from the chroot, usually made on Linux, which will be used as a DNS server.
Cached partitions are used to store caches from a proxy server, such as Squid. If Linux is not used as a proxy server, it can be ignored.
The / var partition is used to store the log file system, which stores all changes that occur on the system when the system is running normally.
Partition / tmp This partition is used to store temporary files.
That’s the type of partition that is in Linux, hopefully this article can be useful for those of you who read it.