[solved]System claims root partition is full, but it's not

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[solved]System claims root partition is full, but it's not

Postby convergence » Sat Jan 19, 2013 4:32 am

I can't write anything to the root partition because it claims to be full.
$this->bbcode_second_pass_code('', '
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 6.4G 6.4G 0 100% /
/dev/root 6.4G 6.4G 0 100% /
devtmpfs 92M 0 92M 0% /dev
tmpfs 92M 0 92M 0% /dev/shm
tmpfs 92M 1.7M 91M 2% /run
tmpfs 92M 0 92M 0% /sys/fs/cgroup
tmpfs 92M 0 92M 0% /tmp
/dev/mmcblk0p1 94M 20M 75M 21% /boot
/dev/sda2 12G 156M 11G 2% /var/cache/pacman/pkg
/dev/sda1 1.8T 440G 1.3T 26% /media/external
')


However, I'm pretty sure that it's not full. My bash skills aren't the greatest but I've searched the appropriate directories, and nothing seems to be taking up that much space. I've run the following command in all of the directories under root except for /dev, /media /mnt /proc and nothing looks suspicious:

$this->bbcode_second_pass_code('', '
du -xhd1 / | sort -h
')



Here is my fstab:

$this->bbcode_second_pass_code('', '
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0

#disabling vary to save energy. may break computer. need to cuz disk keeps spinning.
#LABEL=svary /var ext4 defaults,noatime 0 0
LABEL=svary /var/cache/pacman/pkg ext4 defaults,noatime 0 0
LABEL=backy /media/external ext4 defaults,noatime 0 0

')


Here is my mtab:
$this->bbcode_second_pass_code('', '
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=93868k,nr_inodes=23467,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
tmpfs /tmp tmpfs rw 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
/dev/sda2 /var/cache/pacman/pkg ext4 rw,noatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda1 /media/external ext4 rw,noatime,user_xattr,barrier=1,data=ordered 0 0
')

Maybe I'm searching wrong, but it seems like a bug is causing the FS to report that it is full when it's not. Any help?



Edit: Apparently at some point I found a better du command that searched all of the root partition, and only the root partition, showing that that partition really isn't full. I posted that command earlier, but let me show the output:

$this->bbcode_second_pass_code('', '
du -xhd1 / | sort -h
4.0K /media
8.0K /mnt
12K /srv
16K /lost+found
24K /root
96K /home
1.6M /bin
4.2M /opt
8.1M /sbin
9.6M /etc
11M /var
934M /usr
968M /
')
Last edited by convergence on Sat Jan 19, 2013 5:49 am, edited 1 time in total.
convergence
 
Posts: 3
Joined: Sun Nov 04, 2012 8:20 am

Re: System claims root partition is full, but it's not

Postby WarheadsSE » Sat Jan 19, 2013 5:38 am

fsck
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: System claims root partition is full, but it's not

Postby convergence » Sat Jan 19, 2013 5:49 am

Yeah, that's the conclusion I came to too. I took out the sdcard, put it in my main rig, fsckd, it found some errors. Then all of the sudden my lost&found dir was full of garbage. I deleted it, and everything seems ok now. Thanks!
convergence
 
Posts: 3
Joined: Sun Nov 04, 2012 8:20 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest