{"id":23712,"date":"2024-01-25T10:30:48","date_gmt":"2024-01-25T10:30:48","guid":{"rendered":"https:\/\/linuxways.net\/?p=23712"},"modified":"2024-01-25T10:44:27","modified_gmt":"2024-01-25T10:44:27","slug":"list-disks-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/list-disks-debian-12\/","title":{"rendered":"How to List Disks in Debian 12"},"content":{"rendered":"<p>In Debian 12, a disk is a physical storage device that is the same as the partitions on your Windows devices. The storage devices such as hard drives or USBs are divided into different partitions on Debian 12 known as disks to manage the stored data easily. The partitions of these devices are <strong>\/dev\/sda<\/strong>, <strong>\/dev\/sdb<\/strong>, and so on. From the disks, you can easily extract data.<\/p>\n<p>Listing all the available disks on your system is important for power optimization and disk management. You can view the available storage and all the information related to your disks through the methods mentioned in this guide.<\/p>\n<h2><strong>What are the Various Types of Disks on Debian 12<\/strong><\/h2>\n<p>The following are the two types of disks available on Debian 12:<\/p>\n<p><strong>1: Physical Disks<\/strong>: The physical disks are the devices connected to a computer to store data, such as hard disk drives or USB.<\/p>\n<p><strong>2: Logical Disks<\/strong>: The logical disks are used to partition the hard disks, and they are managed by the logical volume tool in Debian 12.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disks in Debian 12?<\/strong><\/h2>\n<p>The Debian system allows the users to list all the available disks from:<\/p>\n<ul>\n<li><strong>Terminal<\/strong><\/li>\n<li><strong>GUI<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>How to List Disks in Debian 12 Through Terminal<\/strong><\/p>\n<p>You can list disks in Debian 12 through the terminal using:<\/p>\n<ul>\n<li><strong>df Command<\/strong><\/li>\n<li><strong>fdisk Command<\/strong><\/li>\n<li><strong>lsblk Command<\/strong><\/li>\n<li><strong>cfdisk Command<\/strong><\/li>\n<li><strong>parted Command<\/strong><\/li>\n<li><strong>sfdisk Command<\/strong><\/li>\n<li><strong>lshw Utility<\/strong><\/li>\n<li><strong>hwinfo Utility<\/strong><\/li>\n<li><strong>dev Directory<\/strong><\/li>\n<li><strong>proc File<\/strong><\/li>\n<\/ul>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using df Command<\/strong><\/h2>\n<p>The <strong>df command<\/strong> can be run by any user, and it gives you information about the total and available space in the disk. Execute the below command in Debian 12 to list the disks:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">df<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"206\" class=\"wp-image-23723\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-1.png 761w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-1-300x81.png 300w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/p>\n<p>The list of long numbers can be difficult to understand. The most common method is to use this command with the <strong>-h <\/strong>argument to view the data in a human-readable format:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">df<\/span> <span class=\"re5\">-h<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"198\" class=\"wp-image-23724\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-2.png 697w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-2-300x85.png 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/p>\n<p>The <strong>df<\/strong> command shows the size of the used and available space in the disk with the location of the directory where it is physically mounted in Debian 12.<\/p>\n<p>You can also use the <strong>-T<\/strong> argument with the <strong>df <\/strong>command in Debian to see the type of the file system as an additional information:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">df<\/span> <span class=\"re5\">-T<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"197\" class=\"wp-image-23727\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-3.png 711w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-3-300x83.png 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using fdisk command<\/strong><\/h2>\n<p>The <strong>fdisk<\/strong> is another mostly used command in Linux systems that displays the list of all partitions. To display all disks in <strong>Debian 12, <\/strong>you can use the<strong> fdisk <\/strong>command with sudo privileges and <strong>-l<\/strong> flag:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">fdisk<\/span> <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"319\" class=\"wp-image-23735\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-4.png 854w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-4-300x112.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-4-768x287.png 768w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/p>\n<p>The command shows the summary of the entire amount of space in bytes and also provides the start and end of the sectors.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using lsblk Command<\/strong><\/h2>\n<p>The <strong>lsblk<\/strong> command is another effective way to list down all the available disks in your Debian 12. You use this command without any argument to display the simple list of all disks on your Debian system.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">lsblk<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"257\" class=\"wp-image-23741\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-5.png 866w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-5-300x89.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-5-768x228.png 768w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/p>\n<p>You can also use this command with the <strong>-a <\/strong>flag for displaying the list of all empty block devices as well:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">lsblk <span class=\"re5\">-a<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"321\" class=\"wp-image-23745\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-6.png 831w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-6-300x116.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-6-768x297.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/p>\n<p>The same type of output can be retrieved in Debian 12 by using the <strong>lsblk <\/strong>command with <strong>&#8211;all <\/strong>flag:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">lsblk <span class=\"re5\">--all<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"321\" class=\"wp-image-23752\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-7.png 698w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-7-300x138.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/p>\n<p>If you want to display the list of partitions in Debian 12 rather than the tree, you can run the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">lsblk <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"282\" class=\"wp-image-23756\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-8.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-8-300x106.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-8-768x272.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>The following command shows the file system of each partition. It will display the disks and file system formatted on them:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">lsblk <span class=\"re5\">-f<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"208\" class=\"wp-image-23762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-9.png 846w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-9-300x74.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-9-768x189.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using cfdisk Command<\/strong><\/h2>\n<p>The <strong>cfdisk <\/strong>command is the most advanced and interactive command to list all disks in Debian 12. It also allows users to manage the disks and perform various actions such as delete, resize, type, and write:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> cfdisk<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"363\" class=\"wp-image-23767\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-10.png 872w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-10-300x125.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-10-768x320.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/p>\n<p>Click on the disk and choose from the available options to perform the specific action on the selected disk:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"403\" class=\"wp-image-23774\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-11.png 791w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-11-300x153.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-11-768x391.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using parted Command<\/strong><\/h2>\n<p>The <strong>parted<\/strong> command also displays the list of all partitions and allows you to manage them on Debian. This command also shows the brand and model of your hard disk along with the total disk size and type of connectivity:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> parted <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"876\" height=\"308\" class=\"wp-image-23781\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-12.png 876w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-12-300x105.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-12-768x270.png 768w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using sfdisk Command<\/strong><\/h2>\n<p>The <strong>sfdisk <\/strong>command is similar to the <strong>fdisk <\/strong>command but it allows you to check the physical and logical volumes of the partitions as well as the summary of the partitions such as the type, and their size. You must run this command with sudo privileges followed by<strong> -l <\/strong>argument:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sfdisk <span class=\"re5\">-l<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"311\" class=\"wp-image-23785\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-13.png 877w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-13-300x106.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-13-768x272.png 768w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using lshw Utility<\/strong><\/h2>\n<p>The <strong>lshw <\/strong>is a command line utility that displays all the available disks on your system. It is also used to show the information of all physical disks of your system. First, you have to install this utility on your Debian 12 using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> lshw <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"317\" class=\"wp-image-23790\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-14.png 826w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-14-300x115.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-14-768x295.png 768w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/p>\n<p>After installing the <strong>lshw<\/strong> utility, run the following command to view the information related to the connected hardware devices:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> lshw<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"432\" class=\"wp-image-23795\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-15.png 809w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-15-300x160.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-15-768x410.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/p>\n<p>To list down all the disks, execute the following command in your terminal:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> lshw <span class=\"re5\">-class<\/span> disk<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"424\" class=\"wp-image-23799\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-16.png 760w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-16-300x167.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using hwinfo Utility<\/strong><\/h2>\n<p><strong>hwinfo<\/strong> is another command line utility of Linux systems to view the disk information and you can install this utility by executing the below written command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> hwinfo <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"378\" class=\"wp-image-23802\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-17.png 811w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-17-300x140.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-17-768x358.png 768w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/strong><\/p>\n<p>Once installed, execute the following command to display the information related to all disks:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> hwinfo <span class=\"re5\">--disk<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"419\" class=\"wp-image-23804\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-18.png 824w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-18-300x153.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-18-768x391.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/p>\n<p>To get the list of all available disks in concise form, run the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> hwinfo <span class=\"re5\">--disk<\/span> <span class=\"re5\">--short<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"128\" class=\"wp-image-23805\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-19.png 648w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-19-300x59.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using the dev directory<\/strong><\/h2>\n<p>To get the advanced information related to your system, you can view the <strong>\/dev\/disk <\/strong>directory in the Debian 12:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ls<\/span> <span class=\"re5\">-l<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>disk<span class=\"sy0\">\/<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"178\" class=\"wp-image-23807\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-20.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-20-300x74.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>You can navigate to the by-id folder through the following command to get the information of disks:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ls<\/span> <span class=\"re5\">-l<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>disk<span class=\"sy0\">\/<\/span>by-id<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"217\" class=\"wp-image-23809\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-21.png 816w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-21-300x80.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-21-768x204.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disk in Debian 12 Through Terminal Using proc file<\/strong><\/h2>\n<p>The <strong>proc <\/strong>file in Debian 12 has all the information related to your system and available disks. To get this information execute the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cat<\/span> <span class=\"sy0\">\/<\/span>proc<span class=\"sy0\">\/<\/span>partitions<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"179\" class=\"wp-image-23810\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-22.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-22-300x75.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disks in Debian 12 Through GUI<\/strong><\/h2>\n<p>Besides, using the terminal to list disks in Debian 12, you can also use the GUI. In the GUI you can use the following two ways to view the disk information in Debian:<\/p>\n<ul>\n<li><a href=\"#post-23712-izkr50afldf\"><strong>Using the GNOME Disk Application<\/strong><\/a><\/li>\n<li><a href=\"#post-23712-c5tpdpu061sg\"><strong>Using the Gparted Application<\/strong><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disks in Debian 12 in GUI Using the GNOME Disks Application <\/strong><\/h2>\n<p>On most of the Linux distributions including Debian 12, the <strong>GNOME Disks<\/strong> application comes pre-installed, if it is not available on your system, you can download it by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> gnome-disk-utility <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>Once you have installed it on your system, follow these steps:<\/p>\n<p><strong>Step 1: <\/strong>Go to <strong>Activities<\/strong> on your system and search for the program <strong>Disks:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"493\" class=\"wp-image-23812\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-23.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-23-300x193.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 2: <\/strong>The list of disks available on the Linux system will appear under the <strong>Disks. <\/strong>You can click on a specific disk to see the size, serial number, partitions, and content stored on it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"472\" class=\"wp-image-23815\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-24.png 808w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-24-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-24-768x449.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>How to List Disks in Debian 12 in GUI Using the Gparted Application<\/strong><\/h2>\n<p>The <strong>Gparted <\/strong>application is used to manage the disks on Debian 12. You can also use this tool to view the information related to the disks. Follow the below steps to list disks using the Gparted application:<\/p>\n<p><strong>Step 1: <\/strong>To install this tool on your Debian 12, execute the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> gparted <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"298\" class=\"wp-image-23818\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-25.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-25-300x117.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Once installed, open it from the application menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"494\" class=\"wp-image-23820\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-26.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-26-300x186.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-26-768x475.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p><strong>Step 3: <\/strong>The information of all the available disks will appear on your screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"416\" class=\"wp-image-23821\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-27.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-27.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-27-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23712-27-768x397.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>There are various methods to list disks on Debian 12. You can either run commands in the terminal or use the GUI-based tools to list disks and view the information such as available and use size, type of the disk, and filesystem. We have discussed the numerous commands such as <strong>df, fdisk, lsblk cfdisk, parted, sfdisk, lshw, <\/strong>and<strong> hwinfo<\/strong>. We have also discussed the proc file and dev directory method to get advanced information related to the available disks. The most available commands give you the power to manage the hard disks on Debian 12. If you want to view the information from the GUI you can use the <strong>GNOME disks application<\/strong> and <strong>Gparted<\/strong>. We have explained all these methods in detail in this guide.<\/p>","protected":false},"excerpt":{"rendered":"<p>To list disks in Debian 12, various methods can be used such as df, fdisk, lsblk, cfdisk, parted, sfdisk, lshw, hwinfo, Gparted, and disk management.<\/p>","protected":false},"author":115,"featured_media":23830,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-23712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23712"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23712\/revisions"}],"predecessor-version":[{"id":23826,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23712\/revisions\/23826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23830"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}