How to Install Debian 9 (Stretch) with Manual Partitioning

Debian operating system installation is generally the same, any version. And tutorials / installation guide Debian has been widely spread on the internet. You can easily get it in an instant through google search engine. Then what is so special this tutorial that I write this?

Hehehe … nothing special. Notes (not tutotial loh yah) I am just explaining how to manually install with partitions. Because most Debian installation tutorials are with auto partitioning. Well, on this note will be practiced how to install Debian 9 (Stretch) with automatic partitioning.

Okay, no need to be long. The example of this case:

You are required to install a server with the following conditions:
1. Create a 10GB partition and associate it to / (root partition)
2. Make sure the swap partition size is 2xRAM
3. Create a partition for / home with the maximum size
4. Also create a partition for / var with a size of 30% of the partition for / home

All right, let’s be executed. When creating this note, I use VirtualBox to install Debian 9. Because if using a real server I can not take a screenshot :-P.

Turn on VirtualBox, create and run the Debian VM so it looks like Figure 01 above. There are several options there, I will use the text mode installation, then I take the second option, Install. Press the up or down direction keys to change the selection, then press [Enter]

Search and select the language to use in the Installation process, choose Bahasa Indonesia to follow my notes.

Select [Yes] to continue with the selected language. The explanation on the picture is pretty clear, I think.

Again, choose Indonesia.

For this one, leave the default (English American), do not change, directly press [Enter]. Unless you’re sure the keyboard layout you’re using is not it.

Well, in this network configuration I chose not to set the network. My NAT is disabled, so will not be able to IP from DHCP server. Select the bottom, then press [Enter].

Set hostname, hostname is the computer name. It’s free, as you please. In this case I use debian-server as its hostname. Press [Enter] to continue.

Ah, actually already quite clear explanation on the picture. Starting on this Debian 9 (Stretch), super root user account may not be given a password, instead a user account will be created and authorized to root with the “sudo” command. But incidentally, I chose to enter a password here :-P. Press [Enter] to continue.

Enter the password again.

Type in your full name, or type samsul maarif if you want to use my name :-). Press [Enter] to continue.

The account name will usually automatically use the first name. Just press [Enter] to continue.

Type the password for the user’s account. This password is mandatory. This is used to log in to the system.

Select the time zone corresponding to where you live. Then press [Enter] to continue.

Well, here it is. The essence of this note. Because the installation will be done with manual partitioning. Select Manual, then press [Enter] to continue.

If on your hard drive there are many partitions, make sure the data on the hard disk partition is already DIBACKUP alias SHIPPED, delete all existing partitions. How to remove it? Navigate to the hard drive whose partition will be deleted, press [Enter], then select yes to delete it.
If you are not quite sure, please select the <back> button and uninstall.

After the partition is empty like the image 15, proceed to the next process. Select on EMPTY ROOM, then press [Enter] to continue.

Select Create new partition, then press [Enter] to continue.

Well again, because the requested 10 GB for /, then make first partition.

Select Primary, then press [Enter] to continue.

Select Start, then press [Enter] to continue.

If successful will appear as Figure 20. Make sure the hook point is /, the file system I currently use is the Ext4 journal file system. Select Done to compile the partition, then press [Enter] to continue.

Next, point to EMPTY ROOM, then press [Enter] to continue creating the partition again.

Select Create new partition, then press [Enter] to continue.

What is asked on the question is the 2xRAM swap partition, while the RAM I use on VirtualBox is 1 GB. So I created a new partition 2 GB size, press [Enter] to continue

Select Logical, press [Enter] to continue.

The explanation in the picture is clear enough, right? Select Start, press [Enter] to continue.

Well, since this partition will be used as swap, point to Use as :, press [Enter].

Drag down, and select swap space, press [Enter] again.

Drag again down, select Done compile the partition, press [Enter] again.

Just 2 partitions are created, then point again to ROOM EMPTY, press [Enter] to create a new partition.

Just like before, select Create new partition, press [Enter] again.

Because the requested is to create the / home and / var partitions. First create partition for / var for easier, enter 30% number, press [Enter] to continue.

This will create a new partition of 30% of the rest of the hard drive.

Select logical again, press [Enter] to continue.

Select Start, press [Enter] to continue again.

Point at the point of the hook where it appears / home, press [Enter], the latch point option will appear.

Select / var to change / home. Partitions for / home are made later. Press [Enter] to continue.

Once sure enough looks like the picture above, the Hook point section is directed to / var. Select Done to compile the partition, press [Enter] on the keyboard to continue.

Navigate back to ROOM, [Enter] again on the keyboard to continue.

Press [Enter] on the keyboard to continue.

Well, the size of this partition should not be changed, because whatever the rest will be used entirely as partition for / home. Except, if will make partition again other than for which already mentioned here. Directly press [Enter] on the keyboard to continue the next stage.

Select the Logical partition type, press [Enter] to continue again.

After looking like 41 above, this hook point leads to / home. Select Done compile the partition, [Enter] on the keyboard to continue.

In this step, the results of the created partition are created. As in the picture, there is a file system, size, hook point, etc.

Note:
– Logical partition always starts with number # 5, because maximum primary partition is 4 partition.
– f there means that the partition will be formatted.

Up to this point, before <Yes> is selected, your hard drive remains intact. Have not done anything yet. So, if you cancel the installation process at this stage, your hard drive is still intact.

On the question Write the changes that occur on the hard disk ?, select <Yes>, press [Enter] to confirm the change. Wait a while, your hard drive is being formatted, created some partitions as requested.

When the display appears as in figure 44 above, select <No>.

As is known, Debian is divided into several DVDs, DVD 1 is an installer and contains some packages, DVD 2 & 3 contains only packages. Packages in this case may be referred to as repositories. The repository is an application pack storehouse. When installing an application on Debian through a management package, the application package is retrieved from the repository.

Selecting <Yes> will require you to enter DVDs 2 & 3, will certainly extend the installation process.

Select <No> too, press [Enter] to confirm.

Repositories, either online or via DVD can be set after the installation process.

As written on the picture, the survey results will be used to determine which packages should be included on the first Debian CD. Select <Yes>, if you intend to participate, select <No> if you do not participate. Press [Enter] to confirm.Because it will install Debian as a server, only some packages will be installed. Use the [Space] (space) key on the keyboard to enable and disable the package options to install.

Just select SSH Server and the only standard System tool on this practice. Press [Enter] to continue. Wait some time until the installation is complete, until the next display appears.

Well, pretty clear explanation on the picture, is not it? Select <Yes>, then press [Enter].

Select the device (hard disk) to install the boot loader. In this case the only hard disk is / dev / sda. If there are other hard disks, make sure to select the correct one, which is the hard disk associated with / earlier. Select / dev / sda in this case, then press [Enter].

Up to this point the installation has been completed. Select <Continue> to end the installation and the computer will be restarted. For the next will go into the newly installed system.

Make sure CD / DVD installation media is removed. So when the computer re-ignited not go back to the installation process.

Display GRUB Boot loader when logged in to the newly installed Debian system.

This is a login view, like an entrance to a newly created home. Enter a username and password to log in to the system.

NOTE! The password in Linux will not be visible, so just type the password, then press [Enter]

If the username and password you type are correct, you will login to the system. Marked with username @ namahost: ~ $, in this case my username is samsul and hostname is debian-server.

Oops, you forgot the password you typed during installation? Yes, please re-install your system. Make sure not forget again, itung-itung learn to understand the installation process. Or learn how to reset a password to log into a Linux system, especially Debian.

Drag down, and select swap space, press [Enter] again.

Drag again down, select Done compile the partition, press [Enter] again.

Just 2 partitions are created, then point again to ROOM EMPTY, press [Enter] to create a new partition.

Just like before, select Create new partition, press [Enter] again.

Because the requested is to create the / home and / var partitions. First create partition for / var for easier, enter 30% number, press [Enter] to continue.

This will create a new partition of 30% of the rest of the hard drive.

Select logical again, press [Enter] to continue.

Select Start, press [Enter] to continue again.

Point at the point of the hook where it appears / home, press [Enter], the latch point option will appear.

Select / var to change / home. Partitions for / home are made later. Press [Enter] to continue.

Once sure enough looks like the picture above, the Hook point section is directed to / var. Select Done to compile the partition, press [Enter] on the keyboard to continue.

Navigate back to ROOM, [Enter] again on the keyboard to continue.

Press [Enter] on the keyboard to continue.

Well, the size of this partition should not be changed, because whatever the rest will be used entirely as partition for / home. Except, if will make partition again other than for which already mentioned here. Directly press [Enter] on the keyboard to continue the next stage.

Select the Logical partition type, press [Enter] to continue again.

After looking like 41 above, this hook point leads to / home. Select Done compile the partition, [Enter] on the keyboard to continue.

In this step, the results of the created partition are created. As in the picture, there is a file system, size, hook point, etc.

Note:
– Logical partition always starts with number # 5, because maximum primary partition is 4 partition.
– f there means that the partition will be formatted.

Up to this point, before <Yes> is selected, your hard drive remains intact. Have not done anything yet. So, if you cancel the installation process at this stage, your hard drive is still intact.

On the question Write the changes that occur on the hard disk ?, select <Yes>, press [Enter] to confirm the change. Wait a while, your hard drive is being formatted, created some partitions as requested.

When the display appears as in figure 44 above, select <No>.

As is known, Debian is divided into several DVDs, DVD 1 is an installer and contains some packages, DVD 2 & 3 contains only packages. Packages in this case may be referred to as repositories. The repository is an application pack storehouse. When installing an application on Debian through a management package, the application package is retrieved from the repository.

Selecting <Yes> will require you to enter DVDs 2 & 3, will certainly extend the installation process.

Select <No> too, press [Enter] to confirm.

Repositories, either online or via DVD can be set after the installation process.

As written on the picture, the survey results will be used to determine which packages should be included on the first Debian CD. Select <Yes>, if you intend to participate, select <No> if you do not participate. Press [Enter] to confirm.Because it will install Debian as a server, only some packages will be installed. Use the [Space] (space) key on the keyboard to enable and disable the package options to install.

Just select SSH Server and the only standard System tool on this practice. Press [Enter] to continue. Wait some time until the installation is complete, until the next display appears.

Well, pretty clear explanation on the picture, is not it? Select <Yes>, then press [Enter].

Select the device (hard disk) to install the boot loader. In this case the only hard disk is / dev / sda. If there are other hard disks, make sure to select the correct one, which is the hard disk associated with / earlier. Select / dev / sda in this case, then press [Enter].

Up to this point the installation has been completed. Select <Continue> to end the installation and the computer will be restarted. For the next will go into the newly installed system.

Make sure CD / DVD installation media is removed. So when the computer re-ignited not go back to the installation process.

Display GRUB Boot loader when logged in to the newly installed Debian system.

This is a login view, like an entrance to a newly created home. Enter a username and password to log in to the system.

NOTE! The password in Linux will not be visible, so just type the password, then press [Enter]

If the username and password you type are correct, you will login to the system. Marked with username @ namahost: ~ $, in this case my username is samsul and hostname is debian-server.

Oops, you forgot the password you typed during installation? Yes, please re-install your system. Make sure not forget again, itung-itung learn to understand the installation process. Or learn how to reset a password to log into a Linux system, especially Debian.

Drag down, and select swap space, press [Enter] again.

Drag again down, select Done compile the partition, press [Enter] again.

Just 2 partitions are created, then point again to ROOM EMPTY, press [Enter] to create a new partition.

Just like before, select Create new partition, press [Enter] again.

Because the requested is to create the / home and / var partitions. First create partition for / var for easier, enter 30% number, press [Enter] to continue.

This will create a new partition of 30% of the rest of the hard drive.

Select logical again, press [Enter] to continue.

Select Start, press [Enter] to continue again.

Point at the point of the hook where it appears / home, press [Enter], the latch point option will appear.

Select / var to change / home. Partitions for / home are made later. Press [Enter] to continue.

Once sure enough looks like the picture above, the Hook point section is directed to / var. Select Done to compile the partition, press [Enter] on the keyboard to continue.

Navigate back to ROOM, [Enter] again on the keyboard to continue.

Press [Enter] on the keyboard to continue.

Well, the size of this partition should not be changed, because whatever the rest will be used entirely as partition for / home. Except, if will make partition again other than for which already mentioned here. Directly press [Enter] on the keyboard to continue the next stage.

Select the Logical partition type, press [Enter] to continue again.

After looking like 41 above, this hook point leads to / home. Select Done compile the partition, [Enter] on the keyboard to continue.

In this step, the results of the created partition are created. As in the picture, there is a file system, size, hook point, etc.

Note:
– Logical partition always starts with number # 5, because maximum primary partition is 4 partition.
– f there means that the partition will be formatted.

Up to this point, before <Yes> is selected, your hard drive remains intact. Have not done anything yet. So, if you cancel the installation process at this stage, your hard drive is still intact.

On the question Write the changes that occur on the hard disk ?, select <Yes>, press [Enter] to confirm the change. Wait a while, your hard drive is being formatted, created some partitions as requested.

When the display appears as in figure 44 above, select <No>.

As is known, Debian is divided into several DVDs, DVD 1 is an installer and contains some packages, DVD 2 & 3 contains only packages. Packages in this case may be referred to as repositories. The repository is an application pack storehouse. When installing an application on Debian through a management package, the application package is retrieved from the repository hargapromosupermarket.

Selecting <Yes> will require you to enter DVDs 2 & 3, will certainly extend the installation process.

Select <No> too, press [Enter] to confirm.

Repositories, either online or via DVD can be set after the installation process.

As written on the picture, the survey results will be used to determine which packages should be included on the first Debian CD. Select <Yes>, if you intend to participate, select <No> if you do not participate. Press [Enter] to confirm.Because it will install Debian as a server, only some packages will be installed. Use the [Space] (space) key on the keyboard to enable and disable the package options to install.

Just select SSH Server and the only standard System tool on this practice. Press [Enter] to continue. Wait some time until the installation is complete, until the next display appears.

Well, pretty clear explanation on the picture, is not it? Select <Yes>, then press [Enter].

Select the device (hard disk) to install the boot loader. In this case the only hard disk is / dev / sda. If there are other hard disks, make sure to select the correct one, which is the hard disk associated with / earlier. Select / dev / sda in this case, then press [Enter].

Up to this point the installation has been completed. Select <Continue> to end the installation and the computer will be restarted. For the next will go into the newly installed system.

Make sure CD / DVD installation media is removed. So when the computer re-ignited not go back to the installation process.

Display GRUB Boot loader when logged in to the newly installed Debian system.

This is a login view, like an entrance to a newly created home. Enter a username and password to log in to the system.

NOTE! The password in Linux will not be visible, so just type the password, then press [Enter]

If the username and password you type are correct, you will login to the system. Marked with username @ namahost: ~ $, in this case my username is samsul and hostname is debian-server.