zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

How to deal with "/dev/root" is full?

Thu Sep 29, 2016 2:52 am

Hello,everyone!
I have installed nginx,apparmor on my raspberry pi based on raspbian.

However when I reboot, the desktop can't start.
And when run the command "df -h" through putty, it return with the following:

root@raspberrypi:/home/pi# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.7G 3.5G 0 100% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6.3M 457M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 60M 21M 40M 35% /boot
tmpfs 93M 0 93M 0% /run/user/1000
tmpfs 93M 0 93M 0% /run/user/109

Is there anyone know how to deal with it?
Thanks!

ejolson
Posts: 5376
Joined: Tue Mar 18, 2014 11:47 am

Re: How to deal with "/dev/root" is full?

Thu Sep 29, 2016 3:22 am

zfyseu wrote:Hello,everyone!
I have installed nginx,apparmor on my raspberry pi based on raspbian.

However when I reboot, the desktop can't start.
And when run the command "df -h" through putty, it return with the following:

root@raspberrypi:/home/pi# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.7G 3.5G 0 100% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6.3M 457M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 60M 21M 40M 35% /boot
tmpfs 93M 0 93M 0% /run/user/1000
tmpfs 93M 0 93M 0% /run/user/109

Is there anyone know how to deal with it?
Thanks!
Did you remember to expend the filesystem to the size of your sdcard before beginning?

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to deal with "/dev/root" is full?

Thu Sep 29, 2016 4:01 am

You may be able to get a little space back by removing any package install files. They're not needed once the install is complete.

Code: Select all

sudo apt-get clean

peterlite
Posts: 720
Joined: Sun Apr 17, 2016 4:00 am

Re: How to deal with "/dev/root" is full?

Thu Sep 29, 2016 4:10 am

You can use gparted on any Linux box to expand the Ext4 partition on your microSD card.
As a matter of interest, how much space was used by nginx? apparmor?

zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

Re: How to deal with "/dev/root" is full?

Thu Sep 29, 2016 7:22 am

Thanks.

I have solved the problem by running the command "raspi-config" to expand the filesystem.

Return to “General discussion”