PDA

View Full Version : No free diskspace on Raspberry Pi (32Gb)



Toontje
2013-07-01, 17:08
Hi all!

First message here.

I just dd'ed Kali on a 32Gb SD and plugged it in my Raspberry Pi. Turns out that i have 99% of my SD in use.

df -k tells me:


Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 4744620 4447228 56380 99% /
/dev/root 4744620 4447228 56380 99% /
devtmpfs 216132 0 216132 0% /dev
tmpfs 44880 184 44696 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 89740 0 89740 0% /run/shm

What went wrong here? I would like to, at least, run an apt-get update and apt-get upgrade but even for that i don't have enough diskspace.

Any help would be appreciated.

Thanks,

Ton.

brav0hax
2013-07-01, 22:40
Expand your partition with a tool like parted or gparted.

All the extra space on the sd card is currently unallocated...

Best Regards,
Eric

schwermie
2013-07-02, 16:45
Ton,

dd makes an exact copy of your image. If your image file is a small volume, you get this result. You can expand your partion as explained by brav0hax.

wranglerdriver
2013-08-09, 12:48
You can also install raspi-config and then use it to resize the partition

wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20121028_all.deb
wget http://http.us.debian.org/debian/pool/main/l/lua5.1/lua5.1_5.1.5-4_armel.deb
wget http://http.us.debian.org/debian/pool/main/t/triggerhappy/triggerhappy_0.3.4-2_armel.deb
dpkg -i triggerhappy_0.3.4-2_armel.deb
dpkg -i lua5.1_5.1.5-4_armel.deb
apt-get install parted
dpkg -i raspi-config_20121028_all.deb

l0tek
2013-08-25, 01:04
You can also install raspi-config and then use it to resize the partition

wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20121028_all.deb
wget http://http.us.debian.org/debian/pool/main/l/lua5.1/lua5.1_5.1.5-4_armel.deb
wget http://http.us.debian.org/debian/pool/main/t/triggerhappy/triggerhappy_0.3.4-2_armel.deb
dpkg -i triggerhappy_0.3.4-2_armel.deb
dpkg -i lua5.1_5.1.5-4_armel.deb
apt-get install parted
dpkg -i raspi-config_20121028_all.deb

Can your break down that your typing into the terminal to get this. I also have this problem with my 16GB card. Thanks!