Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find the free(available) memory for a physical hard disk in linux machine.  RSS feed

 
RameshBabu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find the free(available) memory for physical hard disk in linux machine, not a logical disk. Is there any shell script or command is available .
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dmesg" should show it when it prints out boot log's reported architecture. For redhat, it's also in /var/log/messages.

Also fdisk will do it, but that tends to be in sectors, not in GB, so a little interpretation is required. But it's also the most accurate.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!