![]() ![]() Sector size (logical/physical): 512B/512BĪnother rudimentary way is to print out the contents of the /proc/partitions/ folder. I like the default output of parted better than fdisk, but then that is subjective. ![]() Again you can use the –list or -l command line option to print out the devices or disks and all its info. partedĪlong the lines of fdisk, parted is another partition table manipulation utility. They might not however be installed in most distros. There are couple of other partition table manipulation tools built on top of fdisk, with more options and features. Sector size (logical/physical): 512 bytes / 512 bytes You are probably looking for something like this in the output.ĭisk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors The –list or -l command line option will print out all the known partitions from all devices. You can use it to list all partitions from the partition table and find the devices that are available. You can usually make out the disks and partitions from the output just as with lsblk.įdisk is a popular command mostly used to manipulate the partition table. I include it here just for the sake of completeness.īlkid will print out several different attributes about the block devices. The previously mentioned lsblk command is a better and recommended option that the blkid command. It is still a good utility to print out the disks that are available to the system, although it prints filesystems rather than disks per se. The df command is primarily intended to report file system disk space usage. There are several different commands that you can use in a Linux environment to list disks that have been mounted on the system. Similarly, the SCSI disks would be /dev/sda, /dev/sdb etc or in general of the format /dev/sd(*). So, an IDE disk would be located at /dev/hd(*). ![]() This can configured (using udev among others) so that you can assign it pretty much id, but usually most systems follow some universally accepted conventions when naming devices.īy convention, the IDE disks use the device id prefixed with hd and the SCSI (and SATA) disks prefix their device id with sd. As I mentioned, the physical hard disk is assigned an unique id at startup. Some of the commonly used types of disk are SCSI (Small Computer System Interface), ATA or IDE (Advanced Technology Attachment), SATA (Serial ATA), SAS (Serial Attached SCSI) among others. The hard disks can be differentiated based on the interface used to interact with them. We will see later in the post how you can list disks that have been identified by the system. Hard disks on a system are detected and/or identified by various device drivers in the kernel and then assigned an unique device id at boot time, enabling it to be mounted and read later (yeah, this is an over simplification of how it all works but it should suffice for this post). At a high level abstraction, you can view partition as separate disks as well. These are called partitions and they can then mounted independently with out affecting the other disks and partitions. Now these hard disks can be further divided to multiple logical containers in order to host different file systems or to keep file systems/files separate. A computer can have multiple hard disks attached to it, both internal and external. Hard Disk, Hard Drive, Disk Drive or Hard Disk Drive are all names for a data storage device (hardware device) for storing and retrieving digital information usually in a computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |