Number Start End Size File system Name Flagsġ 1049kB 538MB 537MB fat32 EFI System Partition boot, esp 6. Sector size (logical/physical): 512B/512B Its main difference is that it also informs you the brand and model of your hard disks and even the type of connectivity used in it (scsi, sata, etc) and total disk size. This one is similar to previous ones mentioned, it lists all partitions and allows to manage them. It won’t give you for example how much is used or free to use. It also gives you very friendly information about each partition and disk as it gives you where does each partition cylinders start and ends, amount of sectors used by each one and the full size of each one with its type. It allows at first to list all disks/partitions in your system but it also allows you to manage them by selecting them and then applying actions such as “Delete”, “Resize”, “Type” (to change partition Type) and “Write” changes done to partitions. cfdiskĬfdisk is probably the most advanced one in GUI (Graphical User Interface), as it is absolutely visual and interactive. This is very commonly used when you need to mount things to be used (like a USB stick or similar) so you can know where is it in order to proceed to mount it. It also gives information about the total size per each partition and disk and the physical location for each. It is probably more visual than the others as it even shows the partitions per each disk in a visual way (like the sda in the example above). Loop3 7:3 0 4.7M 1 loop /snap/canonical-livepatch/49 Loop2 7:2 0 4.9M 1 loop /snap/canonical-livepatch/50 ![]() Loop0 7:0 0 7.5M 1 loop /snap/canonical-livepatch/54 It will give you a very simple list of all devices: :~$ lsblk This one is a little more sophisticated but gets the job done as it lists all block devices. Tip: Usually a SATA disk is labelled with sd. This will return the entire amount of space (in GB or MB), the entire amount of bytes and the entire amount of sectors per each partition and as a summary, it also gives you the start and end sectors, the amount of disk space (in Bytes) and the type of partition. ![]() Sector size (logical/physical): 512 bytes / 512 bytes It currently lists the different partitions (which is related to hard drives as a hard drive can be divided into several partitions) in your system. dev/loop5 89M 89M 0 100% /snap/core/5897Īs you can see, the first column is the current logic name (or the name you can find it within your system), the second column is how big is each of them, the third column is how much is currently used (in bytes), the fourth column is how much is currently available in each for usage (in bytes), the fifth column is how much is used (in %) and the sixth and last column is where is it physically mounted in your Linux system.įdisk is another common option among sysops. The most common way to use it is with the -h argument which means “human readable” (because we are not machines, right?): :~$ df -hįilesystem Size Used Avail Use% Mounted on It lists the actual “disk space usage” and it can give you information about what hard disks (or current disk space) is being used in the entire system. The df command in Linux is probably one of the most commonly used. Let’s see what commands you can use to show disk info in Linux. Please note that some of these commands are actually disk partitioning tools and listing disk partition is one of their features. Here are some different commands which can list the hard drives, keep in mind there are others but these are probably the most commonly used and easy to get the job done. ![]() ![]() Keep in mind a hard drive could be physically connected, virtually connected or even emulated (for example: when you use storage devices such as EMC, Sun or IBM). There are several ways to list all the hard drives present in a system through Linux command lines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |