You are not logged in.

#1 2014-03-23 16:06:45

hjv
Member
Registered: 2014-03-23
Posts: 5

"No space left on device" error

I'm getting a "No space left on device" error when trying to add anything. This happens on my normal user account as well as the superuser account.

There appears to be plenty of space. gparted / everything pretty much says I have some 660GB free. 

Searching through forums/etc, apparently it might be an inodes thing, but df -i doesn't seem to indicate that? I'm not too sure, so here are what I believe are the relevant lines from a df -a and df -i command

$df -a 
Filesystem        Inodes   IUsed     IFree IUse% Mounted on
/dev/sdb1      1953513468 1256428124 697085344  65% /mnt/hdd

$df -i
Filesystem      1K-blocks       Used Available Use% Mounted on
/dev/sdb1      698396064 1284192 697111872    1% /mnt/hdd

Any ideas? I've tried restarting and unmounting/re-mounting the drive.

Offline

#2 2014-03-23 16:50:43

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: "No space left on device" error

What's the contents of /proc/mounts?

Last edited by Stebalien (2014-03-23 16:50:56)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2014-03-23 17:13:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "No space left on device" error

Why is it mounted on /mnt/hdd ? Where's the drive that's mounted on / ?

Ah, you want to add to that drive?

Last edited by karol (2014-03-23 17:14:02)

Offline

#4 2014-03-23 20:42:58

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: "No space left on device" error

Is the filesystem btrfs? If yes then I had similar issues. For some reason 'df -h' does not show space used by subvolumes.

man btrfs

it will show to how to list/delete subvolumes. In my case it was a bunch of subvolumes was created by 'package clean compile' tools.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2014-03-24 13:14:36

hjv
Member
Registered: 2014-03-23
Posts: 5

Re: "No space left on device" error

Stebalien:
The thing is, the /dev/sda3 is mounted and works as I'd expect it to, and the /proc/mounts output is identical between those two. /dev/sda3 is the third partition on my ssd, but is also formatted ntfs.

$ cat /proc/mounts 
rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=6129356k,nr_inodes=1532339,mode=755 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
/dev/sda1 / ext4 rw,relatime,data=ordered 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 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,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 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/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/sda3 /mnt/ssd fuseblk rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
/dev/sdb1 /mnt/hdd fuseblk rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
tmpfs /run/user/620 tmpfs rw,nosuid,nodev,relatime,size=1226420k,mode=700,uid=620,gid=620 0 0
tmpfs /run/user/501 tmpfs rw,nosuid,nodev,relatime,size=1226420k,mode=700,uid=501,gid=100 0 0

karol: Sorry, I was unclear; this is a secondary hard drive, an ssd is mounted on /, this is /dev/sdb1 and mounted on /mnt/hdd.


anatolik: Filesystem is ntfs. It's perhaps worth noting that I've got another ntfs partition mounted without a problem, so I don't think it's a problem with ntfs?

Offline

#6 2014-03-24 13:47:23

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: "No space left on device" error

It looks like your filesystem is fuse. I am not aware of ntfs-3g so I cannot tell. It might be worth contacting ntfs-3g maillist.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#7 2014-03-24 13:54:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "No space left on device" error

Post the full output of

df -h

so we know it's not e.g. http://stackoverflow.com/questions/1870 … s-of-space or some other weird issue?

What about http://superuser.com/questions/516743/n … f-shows-50 ?

Offline

#8 2014-03-24 14:01:25

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: "No space left on device" error

karol wrote:

so we know it's not e.g. http://stackoverflow.com/questions/1870 … s-of-space or some other weird issue?

Yeah, make sure that exactly this filesystem produces the "No space left" error. Maybe some other filesystem (e.g. /tmp) is full?

You might want to run 'strace ...' to find what operation on what filesystem fails.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#9 2014-03-24 14:09:12

hjv
Member
Registered: 2014-03-23
Posts: 5

Re: "No space left on device" error

anatolik: I guess I will if need be. I'm just confused why if it were like a version issue or something it would only affect one drive?

karol:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        50G   42G  5.2G  89% /
dev             5.9G     0  5.9G   0% /dev
run             5.9G 1016K  5.9G   1% /run
tmpfs           5.9G   61M  5.8G   2% /dev/shm
tmpfs           5.9G     0  5.9G   0% /sys/fs/cgroup
tmpfs           5.9G  2.2M  5.9G   1% /tmp
/dev/sda3        89G   77G   13G  87% /mnt/ssd
/dev/sdb1       1.9T  1.2T  665G  65% /mnt/hdd
tmpfs           1.2G  4.0K  1.2G   1% /run/user/620
tmpfs           1.2G   44K  1.2G   1% /run/user/501

I don't have a 100% tmp, so I don't think it's the first one?
I'll try booting into Windows and unchecking a Quota tab if it's there, as per the second link. My Windows partition has been massively buggy lately, and I haven't had time to fix it considering I only really use Windows for gaming --- thinking about it, it could be a problem there. I'll be back.

EDIT: Back. Nope, no quotas enabled. I only have one user on Windows, so I guess it wouldn't make sense. On the other hand, I can write to the drive from Windows just fine, from the looks of things.

Last edited by hjv (2014-03-24 14:15:18)

Offline

#10 2014-03-24 14:24:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: "No space left on device" error

You might want to run chkdsk on it from Windows, just to make sure the filesystem isn't damaged.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2014-03-24 14:32:48

hjv
Member
Registered: 2014-03-23
Posts: 5

Re: "No space left on device" error

Right, so a couple of things happened:
1) Windows BSOD'd before I could see your post. Thinking about it, if the drive is corrupt, it could cause both of these problems? Is there any way of checking from linux? On the other hand, though,
2) upon rebooting into Arch, the drive seems to be writable again. (perhaps worth noting I needed to reboot into Windows after the BSOD then shut down again in order to get Arch to work at all.) I don't know if Windows did something or this is some temporary fix. I guess I'll post again if the problem comes back?

Offline

#12 2014-03-24 14:35:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "No space left on device" error

Were you using some kind of hibernation quasi-sleep on Windows at the time of the 'No space left on device' error?

Offline

#13 2014-03-24 14:44:28

hjv
Member
Registered: 2014-03-23
Posts: 5

Re: "No space left on device" error

Nope, I pretty much always shut down completely.

Offline

Board footer

Powered by FluxBB