对于几个应用程序,我收到“空间不足”错误,我希望解决该错误。
例如(我的 debian 是德语):
$ chromium
[2595:2595:0805/143635.823734:ERROR:process_singleton_posix.cc(280)]
Failed to create /home/jk/.config/chromium/SingletonLock:
Auf dem Gerät ist kein Speicherplatz mehr verfügbar (28)
[2595:2595:0805/143635.823938:ERROR:chrome_browser_main.cc(1410)]
Failed to create a ProcessSingleton for your profile directory.
This means that running multiple instances would start multiple browser
processes rather than opening a new window in the existing process.
Aborting now to avoid profile corruption.
$
我跑了htop
,但找不到任何与chrom
使用该F3
功能有关的东西。
另外,我还有这个可用空间:
# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
udev devtmpfs 4060868 0 4060868 0% /dev
tmpfs tmpfs 814432 9488 804944 2% /run
/dev/sda1 ext4 34352812 6819976 25758092 21% /
tmpfs tmpfs 4072144 30804 4041340 1% /dev/shm
tmpfs tmpfs 5120 4 5116 1% /run/lock
tmpfs tmpfs 4072144 0 4072144 0% /sys/fs/cgroup
/dev/sda5 ext4 71731064 20562300 47539148 31% /home
tmpfs tmpfs 814428 4 814424 1% /run/user/111
tmpfs tmpfs 814428 16 814412 1% /run/user/1000
#
从另一个问题我也检查了这个输出:
# lsof | fgrep deleted
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/111/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
pulseaudi 1235 jk 6u REG 0,5 67108864 20258 /memfd:pulseaudio (deleted)
alsa-sink 1235 1296 jk 6u REG 0,5 67108864 20258 /memfd:pulseaudio (deleted)
alsa-sour 1235 1297 jk 6u REG 0,5 67108864 20258 /memfd:pulseaudio (deleted)
lxtermina 1303 jk 15u REG 8,1 1917 1962258 /tmp/vteFUZ45Z (deleted)
lxtermina 1303 jk 16u REG 8,1 1312 1962259 /tmp/vteLEY45Z (deleted)
lxtermina 1303 jk 23u REG 8,1 2042 1962279 /tmp/vteQW8B6Z (deleted)
lxtermina 1303 jk 24u REG 8,1 624 1962282 /tmp/vteNS8B6Z (deleted)
lxtermina 1303 jk 28u REG 8,1 1944 1962283 /tmp/vteD5BA6Z (deleted)
lxtermina 1303 jk 29u REG 8,1 384 1962285 /tmp/vteKXBA6Z (deleted)
lxtermina 1303 jk 30u REG 8,1 2864 1962286 /tmp/vteLLCA6Z (deleted)
gmain 1303 1306 jk 15u REG 8,1 1917 1962258 /tmp/vteFUZ45Z (deleted)
gmain 1303 1306 jk 16u REG 8,1 1312 1962259 /tmp/vteLEY45Z (deleted)
gmain 1303 1306 jk 23u REG 8,1 2042 1962279 /tmp/vteQW8B6Z (deleted)
gmain 1303 1306 jk 24u REG 8,1 624 1962282 /tmp/vteNS8B6Z (deleted)
gmain 1303 1306 jk 28u REG 8,1 1944 1962283 /tmp/vteD5BA6Z (deleted)
gmain 1303 1306 jk 29u REG 8,1 384 1962285 /tmp/vteKXBA6Z (deleted)
gmain 1303 1306 jk 30u REG 8,1 2864 1962286 /tmp/vteLLCA6Z (deleted)
gdbus 1303 1309 jk 15u REG 8,1 1917 1962258 /tmp/vteFUZ45Z (deleted)
gdbus 1303 1309 jk 16u REG 8,1 1312 1962259 /tmp/vteLEY45Z (deleted)
gdbus 1303 1309 jk 23u REG 8,1 2042 1962279 /tmp/vteQW8B6Z (deleted)
gdbus 1303 1309 jk 24u REG 8,1 624 1962282 /tmp/vteNS8B6Z (deleted)
gdbus 1303 1309 jk 28u REG 8,1 1944 1962283 /tmp/vteD5BA6Z (deleted)
gdbus 1303 1309 jk 29u REG 8,1 384 1962285 /tmp/vteKXBA6Z (deleted)
gdbus 1303 1309 jk 30u REG 8,1 2864 1962286 /tmp/vteLLCA6Z (deleted)
firefox-e 1901 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Gecko_IOT 1901 1904 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Timer 1901 1905 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Link\x20M 1901 1906 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Socket 1901 1907 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
JS\x20Wat 1901 1908 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
JS\x20Hel 1901 1909 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
JS\x20Hel 1901 1910 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
AudioIPC 1901 1911 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
AudioIPC 1901 1912 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Hang\x20M 1901 1914 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
gmain 1901 1915 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
gdbus 1901 1916 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Cache2 1901 1919 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Cookie 1901 1920 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
GMPThread 1901 1922 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Softwar~c 1901 1923 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Composito 1901 1924 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
VRListene 1901 1925 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ImgDecode 1901 1926 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ImageIO 1901 1927 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
IPDL\x20B 1901 1932 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
HTML5\x20 1901 1933 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DOM\x20Wo 1901 1936 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
firefox-e 1901 1937 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
firefox-e 1901 1938 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ImageBr~g 1901 1940 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
FS\x20Bro 1901 1941 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ProcessHa 1901 1942 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
LoadRoots 1901 1958 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DataStora 1901 1959 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DataStora 1901 1960 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
SysProxyS 1901 1961 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
dconf\x20 1901 1962 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ProxyReso 1901 1963 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DataStora 1901 1964 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
URL\x20Cl 1901 1965 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Classif~ 1901 1967 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
SaveScrip 1901 1968 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
Cache\x20 1901 1969 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DataStora 1901 1970 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
mozStorag 1901 1971 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
QuotaMana 1901 1986 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
ImgDecode 1901 1987 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
FS\x20Bro 1901 1994 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
mozStorag 1901 2015 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
threaded- 1901 2062 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
FS\x20Bro 1901 2120 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DOM\x20Wo 1901 2348 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
FS\x20Bro 1901 2426 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DNS\x20Re 1901 2444 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
DNS\x20Re 1901 2460 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
StreamTra 1901 2476 jk 122r REG 8,1 1222721 1962287 /tmp/tmp-3yq.xpi (deleted)
# df
/run/user/111/gvfs
是/run/user/1000/gvfs
我的一台 Android 设备的两个分区的安装位置。
我被困住了,我能做什么?
正如用户 telcoM 所指出的, 的输出df -i
是绝对相关的:
$ df -i
Dateisystem Inodes IBenutzt IFrei IUse% Eingehängt auf
udev 1015217 460 1014757 1% /dev
tmpfs 1018036 686 1017350 1% /run
/dev/sda1 2199344 176230 2023114 9% /
tmpfs 1018036 36 1018000 1% /dev/shm
tmpfs 1018036 4 1018032 1% /run/lock
tmpfs 1018036 15 1018021 1% /sys/fs/cgroup
/dev/sda5 17664 17664 0 100% /home
tmpfs 1018036 15 1018021 1% /run/user/111
tmpfs 1018036 22 1018014 1% /run/user/1000
$
它表明我没有剩余的空闲索引节点!我真的不知道我是如何17664
设法为/home/
几乎 69GiB 的分区仅创建inode 的。
答案1
您的/home
文件系统使用的ext4
文件系统类型无法按需动态创建新的 inode。因此,如果您有大量小文件,即使仍然有大量可用空间,您也可能会用完 inode。请运行df -i
查看 inode 分配状态。
问题是,在ext4
文件系统创建时,您可以选择“inode 密度”,即每单位磁盘空间将分配多少个inode(使用mke2fs
选项-i <bytes-per-inode>
,或间接通过该-T <usage-type>
选项)。创建文件系统后,如果不销毁并重新创建文件系统,则无法更改此参数。
这意味着,您将无法轻松增加文件系统中的 inode 数量,除非通过扩展文件系统来获得更多 inode,这是扩展的副作用,因为 inode 密度保持不变。
如果文件系统中文件的平均大小低于该bytes-per-inode
值,那么在用完实际磁盘空间之前,您将耗尽 inode。
更现代的文件系统类型(例如 XFS)实际上会按需生成新的 inode,因此它们不会出现此问题。对于这些文件系统,类似的命令df -i
可能会输出虚拟或无意义的结果。