我有一个棒状驱动器,我正在尝试将 Ubuntu 下载到它上面。Ubuntu 网站上的下载信息显示文件将占用 5.8 GB,但是,在多次尝试将其下载到我的驱动器上后,我收到“磁盘已满”错误。硬盘应该是 114 GB,所以我不确定为什么它不起作用。任何关于解决此问题的建议都将不胜感激。谢谢!
我的笔记本电脑(Ubuntu 20.04)弹出这个窗口,告诉我没有剩余空间。我到处都看了,似乎没有什么效果。我唯一的临时修复是,如果我重新启动它可以工作,但它会慢慢占用越来越多的内存。
这是我的df -h
输出(瑞典语)。
重启前:
folke@Nya-Laptop:~$ df -h
Filsystem Storlek Använt Ledigt Anv% Monterat på
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 2,5M 1,6G 1% /run
/dev/sda1 234G 234G 0 100% /
tmpfs 7,8G 192M 7,6G 3% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/loop4 19M 19M 0 100% /snap/freac/2981
/dev/loop3 64M 64M 0 100% /snap/core20/2182
/dev/loop5 516M 516M 0 100% /snap/gimp/418
/dev/loop6 350M 350M 0 100% /snap/gnome-3-38-2004/143
/dev/loop1 64M 64M 0 100% /snap/core20/2105
/dev/loop2 56M 56M 0 100% /snap/core18/2796
/dev/loop7 19M 19M 0 100% /snap/freac/2996
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop8 253M 253M 0 100% /snap/dotnet-sdk/237
/dev/loop11 1,7M 1,7M 0 100% /snap/gnome-system-monitor/186
/dev/loop12 497M 497M 0 100% /snap/gnome-42-2204/132
/dev/loop9 165M 165M 0 100% /snap/gnome-3-28-1804/194
/dev/loop13 7,3M 7,3M 0 100% /snap/notepad-plus-plus/397
/dev/loop14 30M 30M 0 100% /snap/ruby/317
/dev/loop10 253M 253M 0 100% /snap/dotnet-sdk/234
/dev/loop15 6,9M 6,9M 0 100% /snap/ngrok/118
/dev/loop17 176M 176M 0 100% /snap/spotify/74
/dev/loop16 13M 13M 0 100% /snap/snap-store/959
/dev/loop19 1,5G 1,5G 0 100% /snap/root-framework/931
/dev/loop18 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop20 178M 178M 0 100% /snap/spotify/75
/dev/loop22 454M 454M 0 100% /snap/wine-platform-7-devel-core20/24
/dev/loop21 82M 82M 0 100% /snap/gtk-common-themes/1534
/dev/loop24 348M 348M 0 100% /snap/wine-platform-runtime/365
/dev/loop25 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop23 75M 75M 0 100% /snap/core22/1033
/dev/loop26 75M 75M 0 100% /snap/core22/1122
/dev/loop27 452M 452M 0 100% /snap/wine-platform-7-devel-core20/23
/dev/loop28 32M 32M 0 100% /snap/ruby/323
/dev/loop29 12M 12M 0 100% /snap/ngrok/50
/dev/loop30 13M 13M 0 100% /snap/snap-store/1113
/dev/loop31 348M 348M 0 100% /snap/wine-platform-runtime/364
/dev/loop32 1,5M 1,5M 0 100% /snap/gnome-system-monitor/184
/dev/loop33 1,4G 1,4G 0 100% /snap/root-framework/928
/dev/loop35 516M 516M 0 100% /snap/gimp/428
/dev/loop34 219M 219M 0 100% /snap/gnome-3-34-1804/90
/dev/loop37 56M 56M 0 100% /snap/core18/2812
/dev/loop36 497M 497M 0 100% /snap/gnome-42-2204/141
/dev/loop38 6,8M 6,8M 0 100% /snap/notepad-plus-plus/399
/dev/loop39 497M 497M 0 100% /snap/wine-platform-runtime-core20/108
/dev/loop40 106M 106M 0 100% /snap/core/16574
/dev/loop41 256K 256K 0 100% /snap/gtk2-common-themes/13
/dev/loop42 350M 350M 0 100% /snap/gnome-3-38-2004/140
/dev/loop43 104M 104M 0 100% /snap/core/16928
/dev/loop44 45M 45M 0 100% /snap/filezilla/17
/dev/loop45 269M 269M 0 100% /snap/firefox/4033
/dev/loop46 269M 269M 0 100% /snap/firefox/4090
/dev/loop47 494M 494M 0 100% /snap/wine-platform-runtime-core20/107
/dev/loop48 165M 165M 0 100% /snap/gnome-3-28-1804/198
/dev/loop49 323M 323M 0 100% /snap/wine-platform-6-stable/19
tmpfs 1,6G 20K 1,6G 1% /run/user/121
tmpfs 1,6G 36K 1,6G 1% /run/user/1002
重启后直接:
folke@Nya-Laptop:~$ df -h
Filsystem Storlek Använt Ledigt Anv% Monterat på
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 2,4M 1,6G 1% /run
/dev/sda1 234G 98G 137G 42% /
tmpfs 7,8G 12M 7,8G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/loop3 64M 64M 0 100% /snap/core20/2182
/dev/loop2 104M 104M 0 100% /snap/core/16928
/dev/loop5 64M 64M 0 100% /snap/core20/2105
/dev/loop4 75M 75M 0 100% /snap/core22/1033
/dev/loop6 253M 253M 0 100% /snap/dotnet-sdk/234
/dev/loop7 253M 253M 0 100% /snap/dotnet-sdk/237
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop8 75M 75M 0 100% /snap/core22/1122
/dev/loop9 269M 269M 0 100% /snap/firefox/4033
/dev/loop10 19M 19M 0 100% /snap/freac/2981
/dev/loop11 219M 219M 0 100% /snap/gnome-3-34-1804/90
/dev/loop12 516M 516M 0 100% /snap/gimp/418
/dev/loop1 106M 106M 0 100% /snap/core/16574
/dev/loop14 56M 56M 0 100% /snap/core18/2812
/dev/loop13 165M 165M 0 100% /snap/gnome-3-28-1804/198
/dev/loop15 516M 516M 0 100% /snap/gimp/428
/dev/loop17 497M 497M 0 100% /snap/gnome-42-2204/141
/dev/loop16 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop19 45M 45M 0 100% /snap/filezilla/17
/dev/loop18 269M 269M 0 100% /snap/firefox/4090
/dev/loop20 350M 350M 0 100% /snap/gnome-3-38-2004/140
/dev/loop21 256K 256K 0 100% /snap/gtk2-common-themes/13
/dev/loop22 350M 350M 0 100% /snap/gnome-3-38-2004/143
/dev/loop23 1,7M 1,7M 0 100% /snap/gnome-system-monitor/186
/dev/loop24 1,4G 1,4G 0 100% /snap/root-framework/928
/dev/loop25 6,8M 6,8M 0 100% /snap/notepad-plus-plus/399
/dev/loop26 82M 82M 0 100% /snap/gtk-common-themes/1534
/dev/loop27 176M 176M 0 100% /snap/spotify/74
/dev/loop28 348M 348M 0 100% /snap/wine-platform-runtime/364
/dev/loop29 1,5M 1,5M 0 100% /snap/gnome-system-monitor/184
/dev/loop30 13M 13M 0 100% /snap/snap-store/1113
/dev/loop31 497M 497M 0 100% /snap/wine-platform-runtime-core20/108
/dev/loop32 6,9M 6,9M 0 100% /snap/ngrok/118
/dev/loop33 1,5G 1,5G 0 100% /snap/root-framework/931
/dev/loop34 13M 13M 0 100% /snap/snap-store/959
/dev/loop35 454M 454M 0 100% /snap/wine-platform-7-devel-core20/24
/dev/loop36 323M 323M 0 100% /snap/wine-platform-6-stable/19
/dev/loop37 56M 56M 0 100% /snap/core18/2796
/dev/loop38 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop39 7,3M 7,3M 0 100% /snap/notepad-plus-plus/397
/dev/loop40 178M 178M 0 100% /snap/spotify/75
/dev/loop41 165M 165M 0 100% /snap/gnome-3-28-1804/194
/dev/loop42 497M 497M 0 100% /snap/gnome-42-2204/132
/dev/loop43 12M 12M 0 100% /snap/ngrok/50
/dev/loop44 348M 348M 0 100% /snap/wine-platform-runtime/365
/dev/loop45 452M 452M 0 100% /snap/wine-platform-7-devel-core20/23
/dev/loop46 32M 32M 0 100% /snap/ruby/323
/dev/loop47 19M 19M 0 100% /snap/freac/2996
/dev/loop48 494M 494M 0 100% /snap/wine-platform-runtime-core20/107
/dev/loop49 30M 30M 0 100% /snap/ruby/317
tmpfs 1,6G 16K 1,6G 1% /run/user/121
tmpfs 1,6G 28K 1,6G 1% /run/user/1002
我让它上升到 84%,这是输出:
folke@Nya-Laptop:~$ ls -a /tmp
.
..
config-err-obI1jL
dumps
.font-unix
gameoverlayui.log
hsperfdata_unifi
.ICE-unix
MinecraftLauncher.1002
ollama1001963217
ollama1002449459
ollama100359361
ollama1009593539
ollama1012068662
ollama104932092
ollama106631077
ollama1069426939
ollama1075979683
ollama1078366468
ollama1087544160
ollama110197263
ollama1105943707
ollama1113945459
ollama1142716574
ollama1159786534
ollama1175063929
ollama121722266
ollama1225526021
ollama1228698609
ollama1234359162
ollama1261686341
ollama1288710296
ollama1306951405
ollama133308977
ollama1353071800
ollama1366243956
ollama1374327327
ollama1376393954
ollama1417705061
ollama1459225979
ollama1459919260
ollama1492419348
ollama1511114395
ollama1527990001
ollama1555918448
ollama1589100883
ollama1592001828
ollama1659825695
ollama1692387522
ollama1693664595
ollama1710473044
ollama1772207802
ollama1797164926
ollama1819603020
ollama1826734309
ollama1857229590
ollama1940636504
ollama1967984839
ollama198299138
ollama1993960883
ollama2005647413
ollama2008292668
ollama2041168227
ollama2042804763
ollama206408107
ollama2081416928
ollama209491851
ollama2111909535
ollama2112218423
ollama2132713283
ollama2142614991
ollama2157496665
ollama2173261540
ollama2201456430
ollama2201655057
ollama2203889391
ollama2210380216
ollama225504176
ollama2272500672
ollama2279092179
ollama2310586349
ollama2333191625
ollama2360111044
ollama2364207423
ollama2366120507
ollama2379808693
ollama2383780274
ollama2385638859
ollama2428766405
ollama2432594692
ollama2448718721
ollama2470750818
ollama2476738943
ollama2497734586
ollama253279352
ollama2534586687
ollama2537376317
ollama2547740269
ollama2553758033
ollama2564506667
ollama261861259
ollama2675869292
ollama2700288844
ollama2719389761
ollama2778356871
ollama281516148
ollama2838984012
ollama2846533206
ollama2860034215
ollama2863099864
ollama2878738629
ollama2913455918
ollama2990227528
ollama3005839604
ollama302604458
ollama3032303645
ollama3035256870
ollama3050556370
ollama3059590820
ollama3070300918
ollama3078197506
ollama3088092002
ollama3102855469
ollama3121640754
ollama31267931
ollama3160871421
ollama3200010951
ollama3200220999
ollama3200846063
ollama3209917065
ollama321394959
ollama3228339306
ollama324744153
ollama3256449133
ollama3271163346
ollama3283142490
ollama3289644745
ollama330204010
ollama3304402746
ollama331210225
ollama3348374229
ollama3361678237
ollama3388076876
ollama3395497432
ollama3396618447
ollama3403938379
ollama3432724067
ollama3448049219
ollama3454182899
ollama3465078273
ollama3499202924
ollama3504718132
ollama3507306007
ollama3507869838
ollama3512408714
ollama3531239816
ollama3542988988
ollama3544073904
ollama3563730584
ollama3576289114
ollama3581738109
ollama358301622
ollama3608114613
ollama3619606694
ollama3625476109
ollama363779184
ollama3641453736
ollama3649851940
ollama3668590515
ollama36854853
ollama3685701956
ollama3696561111
ollama3700855330
ollama3705584618
ollama3745950593
ollama3755918380
ollama3757442880
ollama3765001569
ollama3784272732
ollama382972485
ollama3841482715
ollama3843259758
ollama3869868686
ollama3880618199
ollama3882851846
ollama3924993310
ollama3942796655
ollama3944142899
ollama3984302837
ollama3985087269
ollama4020422033
ollama4054855846
ollama4065879845
ollama4076638783
ollama4076684727
ollama4116581390
ollama4145189079
ollama419389468
ollama4206218202
ollama4207653291
ollama4208217356
ollama4222440205
ollama4244760871
ollama4246265324
ollama4264147735
ollama435040396
ollama449754725
ollama472198794
ollama509586312
ollama516252197
ollama554925284
ollama55931083
ollama56465376
ollama565008054
ollama570864685
ollama581267448
ollama588660078
ollama596496
ollama600587617
ollama604520820
ollama646728916
ollama66144850
ollama706566305
ollama716200976
ollama731150119
ollama745381897
ollama746555448
ollama748342521
ollama754387230
ollama770624924
ollama828593765
ollama848904457
ollama849999579
ollama871668962
ollama874639690
ollama888019207
ollama891658468
ollama903565660
ollama913273938
ollama92899190
ollama932861512
ollama94177302
ollama980682688
ollama988913568
ollama993125638
ollama993513194
pressure-vessel-libs-6SEIL2
scoped_dirAFo7dU
snap-private-tmp
ssh-fftDOrv7i3jY
steam_chrome_overlay_uid1002_spid15316
steam_chrome_shmem_uid1002_spid13836
steamDdaeni
steamlPaLBH
systemd-private-a61b3c989d314968a1df223ade1aea53-apache2.service-pIDV8h
systemd-private-a61b3c989d314968a1df223ade1aea53-colord.service-uDMzjj
systemd-private-a61b3c989d314968a1df223ade1aea53-fwupd.service-YKV3tg
systemd-private-a61b3c989d314968a1df223ade1aea53-ModemManager.service-uRajph
systemd-private-a61b3c989d314968a1df223ade1aea53-switcheroo-control.service-orjHbh
systemd-private-a61b3c989d314968a1df223ade1aea53-systemd-logind.service-2qSaLh
systemd-private-a61b3c989d314968a1df223ade1aea53-systemd-resolved.service-pZHE3g
systemd-private-a61b3c989d314968a1df223ade1aea53-systemd-timesyncd.service-dukY1e
systemd-private-a61b3c989d314968a1df223ade1aea53-upower.service-0Gc5wh
.Test-unix
tracker-extract-files.1002
tracker-extract-files.121
.unifi-11849511684496055616
unifi-network-status-response
vmware-root
.X11-unix
.XIM-unix
我的主 SSD 空间不足。我刚刚意识到 Dropbox 和 Megasync 已安装并在该驱动器上的 sda2 上同步(占据了大部分空间),尽管我以为我已将它们安装在更大的 HDD 上的 sdb1 上。
我有 3 个问题:
- 有没有办法可以轻松地从终端将它们重新安装到 sdb1 上,或者我必须重新安装?
- 实际上是否可以从未安装在根目录上的目录进行同步?
- 我可以将整个 /home 目录挂载到 /dev/sdb 上,以便所有文件都在那里并且 SSD 可以自由处理吗?
系统信息:
- 操作系统:Ubuntu Studio 22.04
- KDE 等离子版本:5.24.7
- KDE 框架版本:5.92.0
- Qt版本:5.15.3
- 内核版本:6.2.0-1017-lowlatency(64 位)
- 图形平台:X11
- 处理器:12 个 Intel Xeon CPU E5-1650 v3 @ 3.50GHz
- 内存:31.3 GB RAM
- 图形处理器:Quadro K2200/PCIe/SSE2
SMBIOS 2.8 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: Hewlett-Packard
Product Name: HP Z440 Workstation
Version: Not Specified
Serial Number: CZC615BPGD
UUID: 8ec24007-035d-11e6-9c43-bc00000c0000
Wake-up Type: Power Switch
SKU Number: F5W13AV
Family: 103C_53335X G=D
Handle 0x0006, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 55.7M 1 loop /snap/core18/2796
loop1 7:1 0 55.7M 1 loop /snap/core18/2812
loop2 7:2 0 4K 1 loop /snap/bare/5
loop3 7:3 0 63.4M 1 loop /snap/core20/1974
loop4 7:4 0 63.5M 1 loop /snap/core20/2015
loop5 7:5 0 73.9M 1 loop /snap/core22/864
loop6 7:6 0 6.4M 1 loop /snap/curl/1754
loop7 7:7 0 240.3M 1 loop /snap/firefox/3358
loop8 7:8 0 245.6M 1 loop /snap/firefox/3416
loop9 7:9 0 164.8M 1 loop /snap/gnome-3-28-1804/198
loop10 7:10 0 349.7M 1 loop /snap/gnome-3-38-2004/143
loop11 7:11 0 497M 1 loop /snap/gnome-42-2204/141
loop12 7:12 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop13 7:13 0 130.8M 1 loop /snap/heroic/265
loop14 7:14 0 130.8M 1 loop /snap/heroic/290
loop15 7:15 0 40.8M 1 loop /snap/snapd/20092
loop16 7:16 0 40.9M 1 loop /snap/snapd/20290
loop17 7:17 0 74.1M 1 loop /snap/core22/1033
sda 8:0 1 238.5G 0 disk
├─sda1 8:1 1 300M 0 part /boot/efi
└─sda2 8:2 1 238.2G 0 part /var/snap/firefox/common/host-hunspell
/
sdb 8:16 1 1.8T 0 disk
└─sdb1 8:17 1 1.8T 0 part /media/jamesm/Graceland
sr0 11:0 1 1024M 0 rom
这是一个桌面系统,配有用于操作系统 Xubuntu 20.04.6 的 1TB SSD,以及用于存储我所有文件的多个 HDD。所以操作系统不应该占用那么多空间。但 df 的输出是:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 16332704 0 16332704 0% /dev
tmpfs 3284264 3384 3280880 1% /run
/dev/nvme0n1p2 959786032 740380052 170577772 82% /
显然,还有更多行,但 /dev/nvme 行是问题所在。我一辈子都找不到是什么占据了所有的空间。“home”文件夹大约有 6GB。
我对“proc”目录表示怀疑。Nautilus 称其拥有数万个文件,总计 128TB。我想不是。这是 cd /proc 的输出;须藤杜-hs
du: cannot read directory './3032/task/3032/net': Invalid argument
du: cannot read directory './3032/net': Invalid argument
du: cannot read directory './3288/task/3288/net': Invalid argument
du: cannot read directory './3288/net': Invalid argument
du: cannot access './6606/task/6606/fd/3': No such file or directory
du: cannot access './6606/task/6606/fdinfo/3': No such file or directory
du: cannot access './6606/fd/4': No such file or directory
du: cannot access './6606/fdinfo/4': No such file or directory
0
我在“/”下的所有其他目录上使用了“du -hs”,它们加起来约为 55GB。还有一个 2GB 的交换文件。那么我如何找到什么东西耗尽了我所有的 SSD 空间呢?
更新:这是输出cd / ; sudo du -hxd 1
j@puter:/$ cd / ; sudo du -hxd 1
11M ./root
18M ./bin
20M ./sbin
4.0K ./mnt
5.4G ./usr
16K ./lost+found
184K ./tmp
532M ./opt
248M ./boot
84K ./snap
12G ./var
6.4G ./home
4.0K ./lib64
8.0K ./srv
1.5G ./lib
4.0K ./cdrom
14M ./etc
8.0K ./media
28G .
j@puter:/$
更新:从实时 USB 启动,运行 fsck
xubuntu@xubuntu:~$ sudo fsck -f /dev/nvme0n1p2
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Inode 34099073 extent tree (at level 1) could be narrower. Optimize<y>? yes
Inode 34344578 extent tree (at level 1) could be shorter. Optimize<y>? yes
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/nvme0n1p2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/nvme0n1p2: 514456/61022208 files (4.6% non-contiguous), 189197520/244059136 blocks
xubuntu@xubuntu:~$
更新: ncdu
证实了du
我所说的:
Total disk usage: 27.4 GiB Apparent size: 27.2 GiB Items: 402910
当我查看 GUI 中的“属性”时,它说
401685 items, totalling 26.1 GiB (28,044,956,192 bytes)
(some contents unreadable)
162.7 GiB of 915.3 GiB free (82% used)
我在只有 32 GB 内部存储空间的 Chromebook 上使用 Julia 编程语言。
.julia
主文件夹中的目录占用了几 GB 的空间。该目录包含所有 julia 包(类似于 python 库),Julia 使用这些包是必不可少的。
我有一张有大量可用空间的 microSD 卡。如何将.julia
目录移动到 microSD 卡上?
我使用的是 Kubuntu 23.04。
我正在使用 Ubuntu 22.04。它是使用 6TB 的 USB 记忆棒中的 ISO 映像安装的。但是,它会产生“磁盘空间不足”错误。
df -h
回报:
Filesystem Size Used Avail Use% Mounted on
tmpfs 3,2G 2,5M 3,2G 1% /run
/dev/nvme0n1p5 39G 30G 7,6G 80% /
tmpfs 16G 110M 16G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
/dev/nvme0n1p1 256M 68M 189M 27% /boot/efi
tmpfs 3,2G 4,7M 3,2G 1% /run/user/1000
/dev/nvme0n1p3 437G 395G 43G 91% /media/triott/Windows
我的主系统是 Windows 10,所以当我使用与安装 Ubuntu 时相同的 U 盘在 Windows 10 上运行时,我可以访问 U 盘并在那里编辑文件。但是在 Ubuntu 上,USB 记忆棒路径甚至没有列出,如下所示 文件 > 其他位置
如何将 U 盘用作空间,并在这种情况下解决“磁盘空间不足”错误?我是 Ubuntu 的新手,所以如果问题很基本,请原谅。
更新:似乎 Nmath 建议的唯一选择是重新安装 Ubuntu;由于以下错误,我在尝试将 USB 记忆棒制作成便携式 Ubuntu 时运气不佳,但重新安装 Ubuntu 的最小模式并使用 USB 记忆棒作为存储空间似乎暂时解决了问题。
我的根驱动器有 143.9 GB 的空间。我有一个 60GB 的 vbox vdi 和操作系统,它应该是另一个 30 GB...给我留下 54GB 的可用空间。
问题:
今天早上我随机收到根驱动器的“磁盘空间已满”错误消息。
我立即删除了一些旧日志的演出......但是比那个空间吃掉(未释放)我仍然得到错误......
我找不到 54GB 的磁盘空间。
这是:root@machine:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 9M 1 loop /snap/canonical-livepatch/146
loop2 7:2 0 114.9M 1 loop /snap/core/14056
loop3 7:3 0 8.9M 1 loop /snap/pdfmixtool/864
loop4 7:4 0 17.9M 1 loop /snap/pdftk/9
loop5 7:5 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop6 7:6 0 55.6M 1 loop /snap/core18/2632
loop7 7:7 0 55.6M 1 loop /snap/core18/2620
loop8 7:8 0 260.7M 1 loop /snap/kde-frameworks-5-core18/32
loop9 7:9 0 115M 1 loop /snap/core/13886
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 95.9G 0 part
└─sda2 8:2 0 835.6G 0 part /home
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part
└─luks-8b6272af-069d-4f00-9a33-57472f0aed47 253:0 0 1.8T 0 crypt /run/timeshift/340930/backup
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 100.7G 0 part
├─nvme0n1p4 259:4 0 1G 0 part
└─nvme0n1p5 259:5 0 136.7G 0 part /
这是root@machine:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 9.7G 0 9.7G 0% /dev
tmpfs 2.0G 35M 1.9G 2% /run
/dev/nvme0n1p5 135G 134G 0 100% /
tmpfs 9.7G 611M 9.1G 7% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 9.7G 0 9.7G 0% /sys/fs/cgroup
/dev/nvme0n1p1 96M 31M 66M 32% /boot/efi
/dev/sda2 822G 443G 338G 57% /home
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop1 9.0M 9.0M 0 100% /snap/canonical-livepatch/146
/dev/loop2 115M 115M 0 100% /snap/core/14056
/dev/loop3 8.9M 8.9M 0 100% /snap/pdfmixtool/864
/dev/loop5 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop4 18M 18M 0 100% /snap/pdftk/9
/dev/loop6 56M 56M 0 100% /snap/core18/2632
/dev/loop7 56M 56M 0 100% /snap/core18/2620
/dev/loop8 261M 261M 0 100% /snap/kde-frameworks-5-core18/32
/dev/loop9 115M 115M 0 100% /snap/core/13886
tmpfs 2.0G 388K 2.0G 1% /run/user/1000
tmpfs 2.0G 20K 2.0G 1% /run/user/125
/dev/dm-0 1.8T 1.6T 192G 89% /media/user/WebMade
这个root@machine:/# sudo bash -c 'du -xh / | sort -rhk 1 | head -n 50'
du: cannot access '/tmp/.mount_Nextcl0CMkgy': Permission denied
86G /
59G /root
58G /root/VDI-Files
16G /usr
11G /usr/lib
4.2G /usr/lib/modules
3.7G /var
3.7G /opt
3.1G /usr/share
2.8G /usr/lib/x86_64-linux-gnu
1.6G /var/log
1.5G /var/lib
1.2G /var/log/journal/989dbf66577645979de1e1ceab4cc143
1.2G /var/log/journal
897M /usr/lib/modules/5.15.0-53-generic
897M /usr/lib/modules/5.15.0-52-generic
896M /usr/lib/modules/5.15.0-46-generic
888M /usr/lib/modules/5.15.0-53-generic/kernel
888M /usr/lib/modules/5.15.0-52-generic/kernel
888M /usr/lib/modules/5.15.0-46-generic/kernel
874M /usr/lib/modules/5.15.0-43-generic
867M /usr/lib/modules/5.15.0-43-generic/kernel
861M /usr/src
847M /opt/baidunetdisk
746M /usr/bin
731M /var/lib/snapd
730M /var/lib/snapd/snaps
712M /usr/lib/firmware
683M /root/.config/VirtualBox
683M /root/.config
678M /usr/lib/i386-linux-gnu
638M /usr/share/atom
606M /opt/apps
528M /opt/deepinwine
525M /opt/deepinwine/runtime-i386
489M /boot
487M /opt/deepin-wine6-stable
484M /opt/deepinwine/runtime-i386/usr/lib
484M /opt/deepinwine/runtime-i386/usr
460M /opt/zoom
446M /usr/share/atom/resources
443M /usr/lib/x86_64-linux-gnu/wine-development
435M /usr/lib/modules/5.15.0-53-generic/kernel/nvidia-470
435M /usr/lib/modules/5.15.0-52-generic/kernel/nvidia-470
435M /usr/lib/modules/5.15.0-46-generic/kernel/nvidia-470
434M /usr/lib/modules/5.15.0-43-generic/kernel/nvidia-470
390M /usr/lib/modules/5.13.0-52-generic
387M /opt/deepinwine/runtime-i386/usr/lib/i386-linux-gnu
384M /usr/lib/modules/5.13.0-52-generic/kernel
373M /usr/lib/chromium
这是root@machine:/# tune2fs -l /dev/nvme0n1p5
tune2fs 1.45.5 (07-Jan-2020)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: 06ed954b-3750-49d3-b02d-43943788697f
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 8962048
Block count: 35840256
Reserved block count: 1792011
Free blocks: 11323026
Free inodes: 8420105
First block: 0
Block size: 4096
Fragment size: 4096
Group descriptor size: 64
Reserved GDT blocks: 1018
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Tue Jan 25 02:18:18 2022
Last mount time: Tue Nov 29 04:42:51 2022
Last write time: Tue Nov 29 04:42:50 2022
Mount count: 142
Maximum mount count: -1
Last checked: Fri Jul 29 15:02:27 2022
Check interval: 0 (<none>)
Lifetime writes: 5873 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
First orphan inode: 3276903
Default directory hash: half_md4
Directory Hash Seed: 2fd3d5f1-ff71-4868-be52-17ed7551c56a
Journal backup: inode blocks
Checksum type: crc32c
Checksum: 0x9ad82476
这是root@machine:/home/user# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 2522846 637 2522209 1% /dev
tmpfs 2532540 1315 2531225 1% /run
/dev/nvme0n1p5 8962048 650714 8311334 8% /
tmpfs 2532540 1322 2531218 1% /dev/shm
tmpfs 2532540 7 2532533 1% /run/lock
tmpfs 2532540 19 2532521 1% /sys/fs/cgroup
/dev/nvme0n1p1 0 0 0 - /boot/efi
/dev/sda2 54763520 910197 53853323 2% /home
/dev/loop0 29 29 0 100% /snap/bare/5
/dev/loop1 24 24 0 100% /snap/canonical-livepatch/146
/dev/loop2 12848 12848 0 100% /snap/core/14056
/dev/loop3 238 238 0 100% /snap/pdfmixtool/864
/dev/loop5 76208 76208 0 100% /snap/gtk-common-themes/1535
/dev/loop4 370 370 0 100% /snap/pdftk/9
/dev/loop6 10873 10873 0 100% /snap/core18/2632
/dev/loop7 10873 10873 0 100% /snap/core18/2620
/dev/loop8 35005 35005 0 100% /snap/kde-frameworks-5-core18/32
/dev/loop9 12845 12845 0 100% /snap/core/13886
tmpfs 2532540 166 2532374 1% /run/user/1000
tmpfs 2532540 45 2532495 1% /run/user/125
/dev/dm-0 122093568 2735363 119358205 3% /media/user/WebMade
这是root@machine:/home/user# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=06ed954b-3750-49d3-b02d-43943788697f / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=1C0E-0739 /boot/efi vfat umask=0077 0 1
# swap was on /dev/nvme0n1p6 during installation
#UUID=5fc4b948-a7d5-454c-a0d8-7160f260d09f none swap sw 0 0
#DP Edits: Move Home to partition
UUID=b659bc0b-8105-4e5f-8402-89208c74620c /home ext4 defaults 0 2
#DP Edits: 4GB swapfile
/swapfile none swap sw 0 0
更多输出
我启动到 LiveUSB 以检查我的磁盘是否有坏块并修复东西......什么也没发现......但我所有的空间都已用完:
root@ubuntu:/dev# e2fsck -fc /dev/nvme0n1p5
e2fsck 1.45.5 (07-Jan-2020)
Checking for bad blocks (read-only test): 0.00% done, 0:00 elapsed. (0/0/0 errdone
/dev/nvme0n1p5: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/nvme0n1p5: ***** FILE SYSTEM WAS MODIFIED *****
/dev/nvme0n1p5: 650571/8962048 files (1.7% non-contiguous), 35823756/35840256 blocks
root@ubuntu:/dev# e2fsck -vfcp /dev/nvme0n1p5
/dev/nvme0n1p5: Updating bad block inode.
650571 inodes used (7.26%, out of 8962048)
10434 non-contiguous files (1.6%)
903 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 603342/1743
35823756 blocks used (99.95%, out of 35840256)
0 bad blocks
3 large files
525726 regular files
74110 directories
10 character device files
1 block device file
0 fifos
74 links
50668 symbolic links (45420 fast symbolic links)
47 sockets
------------
650636 files
有谁知道如何恢复我的 54GB 空间?
Ubuntu 20.04,上面安装了 KDE。
我的根驱动器空间不足。这没什么大不了的,因为我总是可以把东西移到我系统上的其他驱动器上。
通常,我会使用像 Dirstat 或 Filelight 这样的工具来告诉我最大的空间占用在哪里,这样我就可以轻松有效地释放空间。但是Dirstat 对我来说总是在启动时崩溃,所以它没用。并且 Filelight 显然没有显示某些文件。
Filelight 说我在 256GB 驱动器上只使用了 89GB,这太棒了。但是Dolphin 和 DiskFree 都显示我使用了 227GB,只有 2.6GB 的可用空间!所以,要么这两个都是错误的,要么——更有可能的是——驱动器上有一些东西占用了 138GB 的空间,Filelight 出于某种原因无法检测到。
我已经尝试过该trash-empty
命令,但这并没有帮助,所以它似乎不是占用空间的垃圾目录。除非我应该使用其他更好的垃圾清理命令。
我也试过du -h --max-depth=2
,它的结果似乎与 Filelight 一致,即使以 root 身份运行也是如此。同时,df /
显示磁盘已使用 99%,与 Dolphin 和 DiskFree 一致。
尝试运行sudo filelight
,它确实找到了更多文件,但它说已经使用了 91GB ......与显然正在使用的 227GB 相去甚远。
所以我的问题是:
A) 是否有更好的程序可以用来按目录显示磁盘使用情况并更容易找到空间浪费者?或者是否有某种方法可以让 Filelight 查看它丢失的文件?
B) 有谁知道哪些幻影文件可能正在使用这个空间以及如何移动或删除它们?
的相关部分lsblk
:
nvme2n1 259:0 0 232.9G 0 disk
├─nvme2n1p1 259:3 0 512M 0 part
└─nvme2n1p2 259:4 0 232.4G 0 part /
sudo lsof |& grep deleted -c
仅输出:41130
......这似乎不是特别有用。它似乎并不代表我系统上的任何正在运行的进程。(我跑了ps aux
,列出的进程都没有 ID 为“41130”。)除非这意味着有 41130 个已删除的文件仍在某处打开并占用空间?
编辑:这似乎与一个更老的问题非常相似: 每个 GParted 和 df 使用 HDD 46G - 但每个 ncdu、du、baobab 等 Ubuntu 12.04LTS 只有 10G 但是,不幸的是,那个问题也没有解决。
尝试sudo boabab
并得到了一些奇怪的结果。摘要屏幕显示已使用 244GB:
但是当我点击它查看详细信息时,它只找到 94GB 的文件:
磁盘容量 256.1 GB
Ubuntu 22.04.1 LTS OS 类型 64 位 GNOME 版本 42.4 Windows 系统 Wayland
我的磁盘空间不足。我的电脑一直这样告诉我。
我可以删除 usr 或 var 吗?文件夹分别为 6 GB 和 11 GB。那是很多磁盘空间。
以下是结果sudo du -hxd1 /var
108K /var/tmp
4.0K /var/local
4.8G /var/lib
4.0K /var/crash
132K /var/spool
4.0K /var/mail
4.0K /var/metrics
1.6G /var/log
4.0K /var/opt
16K /var/ipp-usb
11M /var/snap
5.6M /var/backups
58M /var/cache
6.4G /var
以下是结果df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 771M 2.7M 768M 1% /run
/dev/nvme0n1p3 19G 19G 0 100% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/nvme0n1p5 203G 67G 126G 35% /home
/dev/nvme0n1p1 483M 32M 451M 7% /boot/efi
tmpfs 771M 2.4M 769M 1% /run/user/1001
/dev/nvme0n1p2 4.4G 3.1G 1.4G 69% /media/michael/PQSERVICE
以下是结果journalctl --disk-usage
Archived and active journals take up 1.5G in the file system.
我在 120 gb ssd 上重新安装了 Ubuntu,并添加了一些服务(下一个云、Plex 媒体服务器等),所有数据都位于其他硬盘上。
突然有一天,我在使用超过 100 GB 的情况下收到了存储警告。但是查看磁盘分析,它表明我的系统(包括主目录)最多只使用了一半。那缺少的空间在哪里?
我不知道从哪里开始寻找答案,所以任何帮助将不胜感激?
磁盘空间使用总量:
文件夹使用的空间:
Filesystem Size Used Avail Use% Mounted on
tmpfs 1,6G 4,4M 1,6G 1% /run
/dev/sda5 109G 88G 16G 86% /
tmpfs 7,9G 2,0M 7,9G 1% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
/dev/nvme0n1p1 234G 99G 123G 45% /media/ssdnvme
/dev/sda2 512M 4,0K 512M 1% /boot/efi
/dev/md0 7,3T 1,7T 5,6T 24% /media/raid0
tmpfs 1,6G 240K 1,6G 1% /run/user/1000
//192.168.87.154/public 3,6T 201G 3,4T 6% /media/share