Mount HDDso partitions through a terminal is what will allow you to enter the unit.
What do I need to know to mount HDDS on Linux?
The first thing you should know is that one of the main activities when you use the Linux operating system is to activate new hard drives, so that they are available when you need them.
It is true that, despite the fact that there is only one hard disk physically, the partitions are considered as independent disks, where each one also includes a unit.
For this reason, there are currently three types of partitions: the primary, logical, and extended.
So having the above clear, we continue with the main topic. Mounting HDSS in Linux is the necessary process so that you have the possibility of entering the unit, and in this way, working on it.
The process to mount partitions in Linux is very simple, and it is through the command line, however, it is important that you see the disk partitions before mounting them. Next, we leave you the steps to follow to carry it out:
- Before mounting a partition you must validate it, for this you use the command »Lsblk».
- The result shows you the partitions that are in the system.
- Also, you can see the whole structure that Linux uses to organize its partitions, and they are: sda, sdb and sdc. Remember that, SD stands for Serial Device.
Mount HDDs via a terminal
- The first thing to keep in mind is that all the commands that you are going to execute must be using sudo, or logging in as root.
- You have to create a folder where you are going to mount the partition. Generally, it is recommended that it be /average/temp.
- It is important to know the HDDs and partitions that exist in the system, for this you must use the command fdisk -I, and runs in a terminal.
- Once you know the partition you want to mount, all you have to do is use the command »mount», and you define it by placing (/dev/sdb1), in addition, you identify the folder (/media/temp/)
- Then it would be "mount /dev/sdb1/media/temp".
- If you want to make sure that it is the content of the partition, you just have to list it in /media/temp/ and ready.
- Keep in mind that, many systems ask you to specify the type of file it has, and for this you must use the -t. You put mount -t vfat /dev/sdb1/media/temp.
Mount HDDs in Linux with Udisk
Udisk is another of the commands used to mount partitions in Linux, and it also allows you to perform different activities on hard drives.
- The command you have to write is udisksctl.
- So in case you want to mount the sdb1 partition, what you should do is write the following: udisksctl mount -b /dev/sdb1
- Then in the last line you must put the correct path, either sdb2, sdb3...
- You can mount images by placing: udisksctl loop-setup-rf file.iso. In this way, the image is recognized as a device, and »-r» does not let the data be edited.
- Typing »Isblk», you can see the participation that you set up, and verify the effectiveness of the process.