CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 4845|回复: 1

cubietruck刷新系统后提示No space left on device

[复制链接]
发表于 2015-4-15 12:05:58 | 显示全部楼层 |阅读模式
本帖最后由 kevinl 于 2015-4-15 12:07 编辑

大概是出现在装完lubuntu之后,安装一些附加软件时出现的,比如一些Python依赖库。

但是nand根本没有满...

root@cubietruck:~# df -m
Filesystem     1M-blocks  Used Available Use% Mounted on
/dev/root           7057   914      5848  14% /
devtmpfs             889     1       889   1% /dev
none                   1     0         1   0% /sys/fs/cgroup
tmpfs                 20     2        19  10% /tmp
none                 197     1       197   1% /run
none                   5     0         5   0% /run/lock
none                 985     0       985   0% /run/shm
none                 100     0       100   0% /run/user

而且INode也没满:

root@cubietruck:~# df -i
Filesystem     Inodes IUsed  IFree IUse% Mounted on
/dev/root      455168 35581 419587    8% /
devtmpfs       124984   362 124622    1% /dev
none           174192     2 174190    1% /sys/fs/cgroup
tmpfs          174192    23 174169    1% /tmp
none           174192   266 173926    1% /run
none           174192     3 174189    1% /run/lock
none           174192     1 174191    1% /run/shm
none           174192     3 174189    1% /run/user
这个具体是什么原因?如何解决?看了一下尝试resizefs也不成功:

root@cubietruck:~# resize2fs /dev/root
resize2fs 1.42.9 (4-Feb-2014)
open: No such file or directory while opening /dev/root
root@cubietruck:~# resize2fs /dev/nand
resize2fs 1.42.9 (4-Feb-2014)
resize2fs: Device or resource busy while trying to open /dev/nand
Couldn't find valid filesystem superblock.
root@cubietruck:~# resize2fs /dev/nanda
resize2fs 1.42.9 (4-Feb-2014)
resize2fs: Bad magic number in super-block while trying to open /dev/nanda
Couldn't find valid filesystem superblock.
root@cubietruck:~# resize2fs /dev/nandb
resize2fs 1.42.9 (4-Feb-2014)
The filesystem is already 1835008 blocks long.  Nothing to do!

root@cubietruck:~# resize2fs /dev/nandc
resize2fs 1.42.9 (4-Feb-2014)
resize2fs: Bad magic number in super-block while trying to open /dev/nandc
Couldn't find valid filesystem superblock.
root@cubietruck:~# resize2fs /dev/nandd
resize2fs 1.42.9 (4-Feb-2014)
open: No such file or directory while opening /dev/nandd


回复

使用道具 举报

 楼主| 发表于 2015-4-15 16:53:44 | 显示全部楼层
跟了一下终于发现是哪个问题了,关键问题是tmp分区太小(20M),一些往tmp分区里写大量内容的操作会报错误。

修改下/etc/fstab文件中的20M成更大的值就好了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-3 03:02 , Processed in 0.024094 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部