Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just upgraded my netbook from 1 gb of RAM to 2, but when I type free -g, it only says that I have 1 gb. How do I get it to detect all of my RAM?

share|improve this question
Please, accept some of your answers if they help you. – Anwar Shah Jul 4 '12 at 3:32
up vote 4 down vote accepted

If you use free -g it show your memory round to non decimal numbers. Because of this it shows you just 1GB.

An example: I have 8GB of ram:

  1. free will show "8167800"
  2. because it divides with 1024 free -m will show "7976"
  3. free -g will show "7" because it divides with 1024*1024

So free -g is not really helpful if you have the typical among of memory for a PC.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.