How to see a list of disks in Linux

Anonim

How to see a list of disks in Linux

Beginners who have moved to one of the Linux distributions recently, are often asked to view the list of connected drives. The file manager of the graphic shell is most often fundamentally different from the same "conductor" in Windows, so many simply do not know where all drives are displayed. Today's article should help you cope with the task, because we will demonstrate four available options by which the most different information about the disks are defined in virtually any Linux assembly.

We view the list of disks in Linux

Immediately clarify that all further actions will be made in the Ubuntu latest version running the standard graphics and file manager. If you are watching that the presented screenshots do not match your environment, do not worry, you just have a little more detailed to study its structure. Most likely, the location of all elements will be almost the same. Otherwise, you will have to turn to official documentation, but it is relevant only with some rarely encountered shells and FM. First, let's look at how to view a list of disks through a graphic shell, since many beginners of users simply frightened the "terminal" and the need to enter any commands.

Method 1: File Manager Menu

If a graphic environment is installed in your Linux distribution, it means that it also has a file manager responsible for interacting with catalogs and individual programs. Each FM has a section that will allow you to know the information you are interested in today.

  1. Open the file manager convenient for you, for example, through the corresponding icon on the "Favorites" panel.
  2. Go to the file manager to view the list of disks in Linux

  3. The sidebar is not always active, which we need now, so it will have to be included. To do this, click on the "Files" button located on the top panel, and in the opened context menu, check the "Side panel" item.
  4. Enable the side panel of the file manager to view the Linux disk list

  5. Now you can observe that all connected drives, including flash drives, DVDs and hard drives with a connection via USB adapters, are removed on the left.
  6. View a list of connected disks via Linux file manager

  7. You can immediately open this location or click on the line with the right mouse button to appear additional options.
  8. Context Disc Control Menu in Linux File Manager

  9. The properties window most often allowed to configure sharing for this directory and edit rights by removing or putting restrictions for certain accounts.
  10. Properties of connected disks in Linux file manager

As you can see, only a few seconds it took to view the list of connected drives through the main file manager window. However, this method is considered the most limited due to the fact that it allows you to learn information only about removable disks and does not output additional information about logical volumes. Therefore, if you did not suit this method, proceed to the study of the following.

Method 2: "Disks" utility

In many graphic shells, the default disk program is installed, which can be used to control HDD and other connected devices. Here you will receive more data on logical volumes and the overall structure of the equipment, and the launch of this software is carried out like this:

  1. Open the main menu and use the search to quickly find the necessary application.
  2. Using the search in the Linux application menu

  3. Run by by clicking on it with LKM.
  4. Starting a standard disk program to view Linux drives list

  5. Look at the panel on the left. Types of discs are displayed here, their source and total.
  6. View the list of drives through the program disks in Linux

  7. On the right you see additional information, including separation to logical volumes.
  8. Information about logical volumes of connected drives through the program disks in Linux

All other actions running in the "Disks utility" are intended for general partition management, for example, you can create a new logic volume, format it or delete it. Today we will not focus on this, since the subject of the material is to fulfill other tasks.

Method 3: GPARTED program

Now in free access there are many auxiliary programs for Linux, which expand the overall functionality of the operating system. Among such software there are also tools for disk management. As an example, we took Gparted and want to demonstrate the principle of interaction with such software.

  1. Open the application menu and run the Terminal. It will only be necessary for installing software.
  2. Go to terminal to install the Gparted program in Linux

  3. Enter the Sudo APT-Get Install Gparted command there and click the ENTER key.
  4. The command for installing the Gparted program in Linux through the terminal

  5. This command is running on behalf of the superuser, which means that you have to confirm the account by entering the password in the string that appears.
  6. Enter the password to install the Gparted program in Linux

  7. After that, confirm the download operation of archives by selecting the D. option
  8. Confirmation of download archives when installing the Gparted program in Linux

  9. Expect to end processing packages. During this, do not turn off the console and do not follow other actions in the OS.
  10. Waiting for downloading program files Gparted in Linux

  11. You can run gparted immediately by entering the sudo gparted command.
  12. Running the Gparted program in Linux through the console command

  13. In the future it will be easier to use the application menu, finding the icon of the corresponding program there.
  14. Running the GParted program in Linux through the application menu

  15. When starting, you will need to confirm the authenticity of the superuser account by re-entering the password.
  16. Enter the password to run the Gparted program in Linux

  17. Now you can view a list of disks, their file system, mount points, sizes and all logic volumes.
  18. View the list of disks via the third-party program gparted in Linux

There are a huge amount of such reviewed programs. Each of them works in about the same principle, but at the same time has certain features. Choose such a decision, pushing away from your needs. If you only need to view the list of disks, it will suit absolutely any free software.

Method 4: Standard Console Utilities

Finally, we left the most difficult, but effective method that can display the maximum amount of useful information about all connected disks and their logical partitions. To do this, you will have to enter the teams into the console, but there is nothing complicated. Let's figure out the main standard utilities.

  1. Open the "Terminal" convenient for you. We will use a special icon on the "Favorites" panel.
  2. Starting the terminal via the panel Favorites in Linux

  3. First we advise you to view the entire directory / dev /, which stores information about the connected drives. This is done through the LS -L / DEV / command.
  4. Search for connected drives through the DEV folder in Linux

  5. As you can see, many lines appeared on the screen. Not all of them are suitable for us now.
  6. View the list of connected drives through the DEV folder in Linux

  7. Sort by SD devices. To do this, enter LS -L / DEV / | GREP SD and click on ENTER.
  8. Sort by folder DEV when viewing a list of disks in Linux

  9. Now you see only lines responsible for connected and built-in information storage.
  10. View the list of disks through the DEV folder in the Linux terminal

  11. If you have a need to find out wherever removable and built-in media are mounted, enter Mount.
  12. A command to define disk mount paths in Linux

  13. A huge list will appear, where all the information you are interested in will be presented.
  14. View disk mount paths in Linux through the terminal

  15. Data on sizes and free disk space are defined through DF -H.
  16. Getting information about sizes and free disks through the terminal in Linux

  17. The same list shows the mount path and file system.
  18. Study of information on the size of the connected disks in Linux

  19. The last team is called LSBLK, and it allows you to view all the information referred to as above, by time.
  20. Command for more information about disks in Linux

There are other teams to determine the necessary characteristics, but they enjoy much less often presented, so we will lower them. If you have a desire to learn about all these teams, learn the official Distribution documentation.

Now you are familiar with the four options for viewing the list of disks in Linux. Each of them makes it possible to find out the information of various kinds, so any user will find the option optimal for yourself and can use it without any problems.

Read more