Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No space left on device.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
GSnake
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 120
Location: Italy

PostPosted: Sun Feb 03, 2013 1:47 pm    Post subject: No space left on device. Reply with quote

I get this error but if I check my space left on / I get over 2GB left... so... where I finished the available space on my HD?

MTAB:
Code:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,nodiratime,discard,user_xattr,commit=600 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1989632k,nr_inodes=497408,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
bfqio /sys/fs/cgroup/bfqio cgroup rw,nosuid,nodev,noexec,relatime,bfqio 0 0
/dev/sda5 /boot ext2 rw,noatime,errors=continue 0 0
tmpfs /tmp tmpfs rw,noatime 0 0
tmpfs /var/tmp tmpfs rw,noatime 0 0


FSTAB:
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda5      /boot      ext2      noatime   1 2
/dev/sda7      /      ext4      noatime,nodiratime,discard,user_xattr      0 1
/dev/sda6      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      auto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0
tmpfs          /tmp       tmpfs      defaults,noatime,mode=1777 0 0
tmpfs         /var/tmp/   tmpfs      defaults,noatime,mode=1777 0 0
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Sun Feb 03, 2013 1:54 pm    Post subject: Reply with quote

i bet you're low on inodes (see the output of "df -i")
you can easily fix this by moving the portage tree on another partition.
Back to top
View user's profile Send private message
GSnake
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 120
Location: Italy

PostPosted: Sun Feb 03, 2013 1:56 pm    Post subject: Reply with quote

Code:
df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
rootfs         1896832 707481 1189351   38% /
/dev/root      1896832 707481 1189351   38% /
devtmpfs        497408    544  496864    1% /dev
tmpfs           497478    577  496901    1% /run
cgroup_root     497478      5  497473    1% /sys/fs/cgroup
shm             497478      2  497476    1% /dev/shm
/dev/sda5         8192    381    7811    5% /boot
tmpfs           497478     45  497433    1% /tmp
tmpfs           497478      1  497477    1% /var/tmp


How's my situation?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 1:59 pm    Post subject: Reply with quote

GSnake,

Different users get no space left on device errors at different times.
root can use all the space on the device, this is a very bad thing as the machine usually hangs as logs cannot be written, lock files cannot be created and so on.
users can only use 95% of the space, by default. This prevents a user crashing the system.

The other condition that can give this error is being out of inodes. every file needs one or more inodes. If all your inodes are used, you cannot create any more files.

what does
Code:
df
show?
what does
Code:
df -i
show?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GSnake
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 120
Location: Italy

PostPosted: Sun Feb 03, 2013 2:04 pm    Post subject: Reply with quote

I tried to do two things:

1) Update my system and got space finished.
2) I tried to resize my old Windows partition to give more space to Gentoo, but it failed too...

df:
Code:
Filesystem     1K-blocks     Used Available Use% Mounted on
rootfs          29840804 27176412   1148544  96% /
/dev/root       29840804 27176412   1148544  96% /
devtmpfs         1989632        0   1989632   0% /dev
tmpfs            1989912      876   1989036   1% /run
cgroup_root        10240        0     10240   0% /sys/fs/cgroup
shm              1989912      256   1989656   1% /dev/shm
/dev/sda5          31729    29617       474  99% /boot
tmpfs            1989912       44   1989868   1% /tmp
tmpfs            1989912        0   1989912   0% /var/tmp


df -i:
Code:
df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
rootfs         1896832 707527 1189305   38% /
/dev/root      1896832 707527 1189305   38% /
devtmpfs        497408    544  496864    1% /dev
tmpfs           497478    577  496901    1% /run
cgroup_root     497478      5  497473    1% /sys/fs/cgroup
shm             497478      3  497475    1% /dev/shm
/dev/sda5         8192    381    7811    5% /boot
tmpfs           497478     48  497430    1% /tmp
tmpfs           497478      1  497477    1% /var/tmp
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 2:16 pm    Post subject: Reply with quote

GSnake,

Moving space around is non trivial and may be a threat to your install. You can make the space freed up by Windows into a new partition and attach it to Gentoo.
It looks like you have hit the 5% reserved for root limit.

You should run
Code:
eclean -d distfiles
to remove and downloaded tarballs you are unlikely to need again.
Broken builds accumulate in /var/tmp/portage you should remove that directory and its contents - but only when emerge is not running, as thats where emerge does it work.

You can also reduce the amount of space reserved for root. 1% or 2% should do. Do not set it to zero.
Code:
man tune2fs
will tell you how.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GSnake
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 120
Location: Italy

PostPosted: Sun Feb 03, 2013 2:33 pm    Post subject: Reply with quote

Solved this too... thank you very much!

EDIT: What does define the n° of inodes? Is there a way to increase / decrease them?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 2:45 pm    Post subject: Reply with quote

GSnake,

i-nodes are spaces reserved on your HDD to store data about the files you put on the file system.
They are often called "metadata" as they store data about data.

The i-nodes are created at filesystem creation time. Once created, you must remake the filesystem (which destroys all your data) to change the i-node count.
However, you can set the i-node count at file system creation time.
Code:
man mke2fs
tells how. There are several ways.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GSnake
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2012
Posts: 120
Location: Italy

PostPosted: Sun Feb 03, 2013 11:18 pm    Post subject: Reply with quote

Thank you! Clever as always!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Mon Feb 04, 2013 12:05 am    Post subject: Reply with quote

GSnake,

Well, I've been there, done that, and learned from my errors. Well I hope I've learned :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum