当我的设备已满 30% 时,设备上没有剩余空间! Ubuntu 18.04.3 LTS

当我的设备已满 30% 时,设备上没有剩余空间! Ubuntu 18.04.3 LTS

我有一个设备(2 TB SSD NTFS 格式)未满。在 Windows 上工作正常(双启动),但在 ubuntu 上会导致此问题。该设备是/media/yoni/4692E49292E4882F

df -Thi输出:

(yonienv1) yoni@Garfield:~$ df -iTh
Filesystem     Type     Inodes IUsed IFree IUse% Mounted on
udev           devtmpfs    16M   670   16M    1% /dev
tmpfs          tmpfs       16M  1.3K   16M    1% /run
/dev/sdb4      ext4        61M  841K   60M    2% /
tmpfs          tmpfs       16M   278   16M    1% /dev/shm
tmpfs          tmpfs       16M     5   16M    1% /run/lock
tmpfs          tmpfs       16M    18   16M    1% /sys/fs/cgroup
/dev/loop1     squashfs    733   733     0  100% /snap/gnome-system-monitor/123
/dev/loop2     squashfs    15K   15K     0  100% /snap/sublime-text/85
/dev/loop4     squashfs    44K   44K     0  100% /snap/vlc/1397
/dev/loop3     squashfs    13K   13K     0  100% /snap/core/8268
/dev/loop5     squashfs    28K   28K     0  100% /snap/gnome-3-28-1804/91
/dev/loop6     squashfs   1.6K  1.6K     0  100% /snap/gnome-calculator/406
/dev/loop10    squashfs    354   354     0  100% /snap/gnome-logs/81
/dev/loop14    squashfs    354   354     0  100% /snap/gnome-logs/61
/dev/loop9     squashfs   1.6K  1.6K     0  100% /snap/gnome-calculator/544
/dev/loop0     squashfs    13K   13K     0  100% /snap/core/8039
/dev/loop11    squashfs    29K   29K     0  100% /snap/cmake/203
/dev/loop15    squashfs    733   733     0  100% /snap/gnome-system-monitor/111
/dev/loop13    squashfs    274   274     0  100% /snap/gnome-characters/375
/dev/loop8     squashfs   9.9K  9.9K     0  100% /snap/core18/1279
/dev/loop18    squashfs    271   271     0  100% /snap/gnome-characters/367
/dev/loop7     squashfs    28K   28K     0  100% /snap/gnome-3-28-1804/110
/dev/loop12    squashfs    41K   41K     0  100% /snap/gtk-common-themes/1353
/dev/loop17    squashfs   9.9K  9.9K     0  100% /snap/core18/1288
/dev/loop16    squashfs    39K   39K     0  100% /snap/gtk-common-themes/1313
/dev/nvme0n1p2 vfat          0     0     0     - /boot/efi
tmpfs          tmpfs       16M    39   16M    1% /run/user/1000
/dev/nvme0n1p4 fuseblk    1.3G  3.0M  1.3G    1% /media/yoni/4692E49292E4882F
/dev/sdb2      fuseblk    4.5G  589K  4.5G    1% /media/yoni/Yoni6TB1
/dev/sda2      fuseblk    5.3G  2.6M  5.3G    1% /media/yoni/Yoni6TB0

df输出:

(yonienv1) yoni@Garfield:~$ df
Filesystem      1K-blocks      Used  Available Use% Mounted on
udev             65821536         0   65821536   0% /dev
tmpfs            13169132      2320   13166812   1% /run
/dev/sdb4       992570136  79935996  862144592   9% /
tmpfs            65845652    584120   65261532   1% /dev/shm
tmpfs                5120         4       5116   1% /run/lock
tmpfs            65845652         0   65845652   0% /sys/fs/cgroup
/dev/loop1           3840      3840          0 100% /snap/gnome-system-monitor/123
/dev/loop2          69248     69248          0 100% /snap/sublime-text/85
/dev/loop4         207872    207872          0 100% /snap/vlc/1397
/dev/loop3          91264     91264          0 100% /snap/core/8268
/dev/loop5         159872    159872          0 100% /snap/gnome-3-28-1804/91
/dev/loop6           4224      4224          0 100% /snap/gnome-calculator/406
/dev/loop10          1024      1024          0 100% /snap/gnome-logs/81
/dev/loop14          1024      1024          0 100% /snap/gnome-logs/61
/dev/loop9           4352      4352          0 100% /snap/gnome-calculator/544
/dev/loop0          91264     91264          0 100% /snap/core/8039
/dev/loop11        103808    103808          0 100% /snap/cmake/203
/dev/loop15          3840      3840          0 100% /snap/gnome-system-monitor/111
/dev/loop13         15104     15104          0 100% /snap/gnome-characters/375
/dev/loop8          55936     55936          0 100% /snap/core18/1279
/dev/loop18         15104     15104          0 100% /snap/gnome-characters/367
/dev/loop7         160512    160512          0 100% /snap/gnome-3-28-1804/110
/dev/loop12         45312     45312          0 100% /snap/gtk-common-themes/1353
/dev/loop17         55936     55936          0 100% /snap/core18/1288
/dev/loop16         43904     43904          0 100% /snap/gtk-common-themes/1313
/dev/nvme0n1p2      97280     31605      65675  33% /boot/efi
tmpfs            13169128        52   13169076   1% /run/user/1000
/dev/nvme0n1p4 1999818748 627767368 1372051380  32% /media/yoni/4692E49292E4882F
/dev/sdb2      4850516408  50451580 4800064828   2% /media/yoni/Yoni6TB1
/dev/sda2      5860504572 219583484 5640921088   4% /media/yoni/Yoni6TB0

du -sh .输出(大约需要 5 分钟,因为我在那里存储了大约 3M 个小文件):

(yonienv1) yoni@Garfield:/media/yoni/4692E49292E4882F$ du -sh .
596G    .

sudo sfdisk -l /dev/nvme0n1p4 输出:

(yonienv1) yoni@Garfield:/media/yoni/4692E49292E4882F$ sudo sfdisk -l /dev/nvme0n1p4
Disk /dev/nvme0n1p4: 1.9 TiB, 2047814402048 bytes, 3999637504 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x73736572

Device           Boot      Start        End    Sectors   Size Id Type
/dev/nvme0n1p4p1      1920221984 3736432267 1816210284   866G 72 unknown
/dev/nvme0n1p4p2      1936028192 3889681299 1953653108 931.6G 6c unknown
/dev/nvme0n1p4p3               0          0          0     0B  0 Empty
/dev/nvme0n1p4p4        27722122   27722568        447 223.5K  0 Empty

Partition table entries are not in disk order.

Windows 操作系统存储在此设备上,这是 sudo fdisk -l /dev/nvme0n1 的输出:

(yonienv1) yoni@Garfield:/media/yoni/4692E49292E4882F$ sudo fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 1.9 TiB, 2048408248320 bytes, 4000797360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B7D6369D-AE47-4E8F-8436-021FD73817B7

Device           Start        End    Sectors  Size Type
/dev/nvme0n1p1    2048     923647     921600  450M Windows recovery environment
/dev/nvme0n1p2  923648    1126399     202752   99M EFI System
/dev/nvme0n1p3 1126400    1159167      32768   16M Microsoft reserved
/dev/nvme0n1p4 1159168 4000796671 3999637504  1.9T Microsoft basic data

确切型号为:ADATA XPG SX8200 Pro PCIe NVMe M.2 2280 2TB SSD ASX8200PNP-2TT-C。 nvme 列表输出:

(yonienv1) yoni@Garfield:/media/yoni/4692E49292E4882F/dbs$ sudo nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev  
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     2J3420178126         ADATA SX8200PNP                          1         622.52  GB /   2.05  TB    512   B +  0 B   SS0411BB

答案1

通常情况下,当你看到一个没有剩余空间Linux 中的错误,可能是因为系统耗尽块存储或​​耗尽索引节点

既然您提到您的系统中仍然有可用空间(块),您可以检查是否还有任何可用空间(块)索引节点向左,运行:

df -i

快用完索引节点常见于有许多小文件的系统中。

相关内容