I have debian running on a 16 GB sd card and it recently ran out of space (/dev/root is a 100%). I bought a 64 GB sd card and flashed my image of debian over to it. Even though it's running on the 64 GB sd card, it still says the memory is full. Is there a way I can show the OS that there is more space available? Or does it only know about the 16 GB?

closed as unclear what you're asking by Rui F Ribeiro, jimmij, Mr Shunz, Christopher, Jeff Schaller Feb 6 at 22:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What filesystem are you using on the card? You can edit your post. – Michael Homer Feb 6 at 1:37
  • 1
    What tool did you use to "flash" the OS onto the new disk? Have you tried Clonezilla? – kemotep Feb 6 at 1:58
  • 1
    Did you extend the partition size and run resize2fs afterwards? – Panki Feb 6 at 9:42

I assumes that by "flashing" you meant do an exact copy od SD card, using another device (like windows, or another unix).

you increase physical space (16G to 64G), while leaving logical space (16G) untouched.

When copying you have to change underlaying strcuture :

  • resize second partition on disk level size (fdisk),
  • grow physical volume (pvresize),
  • grow logical volume (lvextend),
  • extend filesystems (resize2fs)

This might be done from local system (unsure about fdisk part).

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