在 Cydia 上搜索應用進行安裝,提示錯誤:failed to write (No space left on device),從字面上的意思看是磁盤空間不夠,導致寫入錯誤,但是到 “關於” 里看到磁盤可用空間還剩 8.3G。嘗試將 deb 包上傳到手機,使用命令手動安裝,還是提示相應的錯誤,信息如下:
1
2
3
4
5
6
7
8
9
10
|
# dpkg -i eXfaker.deb
Selecting previously unselected package net.exchen.exfaker.
(Reading database ... 4236 files and directories currently installed.)
Preparing to unpack eXfaker.deb ...
Unpacking net.exchen.exfaker (1.2.5) ...
dpkg: error processing archive eXfaker.deb (--install):
cannot copy extracted data for './Applications/eXfaker.app/eXfaker' to '/Applications/eXfaker.app/eXfaker.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe: 13)
Errors were encountered while processing:
eXfaker.deb
|
使用 df -h 命令查看磁盤的情況,發現原來文件系統 /dev/disk0s1s1 的掛載點是 / 目錄,可用空間果然是沒有了,而 /dev/disk0s1s2 的掛載點是 /private/var 目錄,可用空間還剩 8.3 G,信息如下:
1
2
3
4
5
6
|
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/disk0s1s1 2.6G 2.6G 0 100% /
devfs 28K 28K 0 100% /dev
/dev/disk0s1s2 13G 4.0G 8.3G 33% /private/var
/dev/disk1 242M 72M 170M 30% /Developer
|
嘗試卸載掉 /Applications 目錄的一個應用,發現 / 目錄的可用空間多了 6.1MB,再次使用 dpkg -i eXfaker.deb 命令安裝應用就沒問題了,信息如下:
1
2
3
4
5
6
|
# dpkg -i eXfaker.deb
Selecting previously deselected package net.exchen.exfaker.
(Reading database ... 2307 files and directories currently installed.)
Unpacking net.exchen.exfaker (from eXfaker.deb) ...
Setting up net.exchen.exfaker (1.2.5) ...
# uicache
|
原文地址:https://www.exchen.net/ios-hacker-no-space-left-on-device.html