Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Saloon Keeper
Pie
Posts: 18098
50
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