Jump to content
Sign in to follow this  
kZo

Displaying Hard Disk Info.

Recommended Posts

Quick way to view your hdd stats.

 

 

[root@intmail root]# df -h

 

Filesystem Size Used Avail Use% Mounted on

/dev/md0 73G 2.8G 66G 4% /

none 504M 0 503M 0% /dev/shm

 

 

The -h is for "Human readable" basically tells us GB verse MB etc.

 

[root@intmail root]# df --help

 

This will display more information about the df command.

Share this post


Link to post
Share on other sites

Just get my diskinfo script from http://www.thenerdshow.com/index.php?page=installation

 

It lists partitions underneath physical drives, so I don't get confused about which is which.

 

Like its predacessor df, it runs as a normal user. We don't need root. Run with -i for interactive.

 

Here it is called diskinfo but to save typing I secretly rename my copy to dl. :lol:

 

$ diskinfo -i

 

Drive Size Description (Removables are highlighted in blue)

/dev/fd0 Empty /dev/floppy-fd0 platform:floppy disk

/dev/sda 37G ATA SAMSUNG SV4002H

├─/dev/sda1 102M mounted on /boot type ext3

├─/dev/sda2 36G mounted on / type ext3

└─/dev/sda3 1G mounted on swap type swap

/dev/sdb 114G ATA Maxtor 6Y120P0

└─/dev/sdb1 114G

/dev/sr0 Empty /dev/dvdrw3 HL-DT-ST DVD-RAM GSA-H55N

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...