iTunes备份iPhone电脑可用空间不足无法保存备份问题

iPhone手机自动升级系统iOS 10.3.1提示验证失败,改用iTunes升级,升级之前iTunes会先行对iPhone设备进行备份,然鹅,备份又失败了,提示:

iTunes未能备份iPhone,因为这台电脑的可用空间不足,无法保存备份。

移除文件并清空回收站会腾出更多空间。

辣么我们就根据提示去看本地磁盘,默认备份文件位置保存在 C:\Users\Administrator\AppData\Roaming\Apple Computer\MobileSync

如果C盘系统盘空间不足,我们可以像在Mac等类linux系统中用ln -s命令软链接一样,在该位置建立“快捷方式”,指向其他盘符文件夹(如E:\iTunes\Backup):

第一步:先将原来的MobileSync文件夹剪切到目标目录下如E:\iTunes\Backup。

第二步:点击左下角开始->输入“命令提示符”或“cmd”打开命令窗口-》执行如下命令即可:

mklink /J C:\Users\Administrator\AppData\Roaming\Apple Computer\MobileSync E:\iTunes\Backup\MobileSync

另外iTunes Media文件夹位置看下在哪里,可能也会导致提示备份空间不足,在iTunes中点击菜单“编辑”-》偏好设置-》高级,可以自由更改音乐等iTunes资料的保存位置。

如果真的是空间不足导致无法备份的话,那问题就解决了,然鹅,事实不是这样,目录盘符还有很大空间,每次备份到大概21G容量,文件数量10万多个时,还是弹出了上面的提示。

先说明下我这里手机的情况,iPhone 在备份前曾经在手机空间将用尽时,打开相机拍摄了一些新照片,这些照片要么显示灰色,要么只有模糊的缩略图,无法保存,已有的照片也删除不了。另外微信管理存储空间时打开媒体界面经常卡死闪退,多次闪退会触发微信安全模式,进入安全模式只能清除缓存和上报错误日志之后才能进入微信,然后收到微信客服消息,在消息留言含卡死闪退关键字,可进入微信修复页面。

先查看下苹果官方的帮助文档:如果 iTunes 备份无法完成或者您无法从备份恢复,意思就是尝试关闭或升级一切安全或杀毒软件后再尝试。然鹅,也没那么好运。

再看下是不是国内才会出现这样的问题,google搜下“itunes could not backup because not enough free space is available on this computer”。看来是普遍现象: iPhone Backup Cannot be Saved Because of Not Enough Space on Computer

没办法, 依次尝试他们提到的办法:

  1. 在MobileSync删除之前的没用的备份文件,再尝试备份无效。
  2. 在设置中关闭“查找我的iPhone”,  无效。
  3. 在设置,iCloud中关闭“备份”,无效。
  4. 以上设置后Home+开机键硬重启iPhone,以及重启Win7,无效。
  5. 点击iPhone设备标志,关闭iTunes中的iPhone连接此电脑时自动同步设置选项。无效。
  6. 之前icloud备份未成功上传,照片中有灰色或模糊的图片,手机中选中删除后又会恢复,只能接入电脑后,在文件夹中找到并删除,无效。
  7. 删除重置lockdown里的plist设备认证文件(C:\ProgramData\Apple\Lockdown\***.plist),无效

另外找解决办法: Can’t back up iPhone 4s. “Not Enought Free Space” message.

其中提到一个最有可能的原因:backup备份文件夹文件数太多超过了最大限制,因为无法再写入新文件iTunes提示空间满了。而且删掉备份文件重新开始备份后,每次备份到大概100,238 个文件,513 个文件夹占21G空间时就弹出了错误提示,看下原文评论:

I was receiving this error randomly on my macbook 13, OSX 10.6.8  and with various versions of itunes.  I'm pretty sure the problem was an excessive number of file entries (Inode exhaustion) in the directory where Itunes stores it's iphone backups:
 
~/Library/Application Support/MobileSync/Backup/
 
A typical backup consists of well over 3000 individual file entries.. I had 8-9 different top level backup directories, each with several sub levels.. Bottom line is that I had tens of thousands of individual files in the /Backup/ directory. I believe this was exceeding the available Inodes (data structures that the OSX (Unix)  filesystem Uses to hold information about an individual file. When the disk is initially formatted and structured, there is a set ammount of these Inodes allocated).  When the available inodes are all used up, Unix sees this as the disk being full (even though there may be hundreds of Gigs available) Since the filesystem has no remaining Inode's to store the relevant information of a new file entry it errors out claiming  disk is full. Essentially there are "too many individual files"   -   A good way of understanding it would be:  a 1 GB HDD would hold a single 1 GB file, however it would be unable to hold say a million one byte files. 
 
Anyways, enough of the Unix filesystem theory.. The way I was able to correct my "Itunes could not backup iphone because not enough free space error" was to simply go into:
 
~/Library/Application Support/MobileSync/Backup/
 
and delete all of the backup directories in it.   From the shell/Terminal I did the following
 
Open terminal
 
$ cd ~/Library/Application Support/MobileSync/Backup/
$ tar cvfz all_backups.tar.gz ./*        ( this will make a tar archive of the existing backups, may take a while)
$ mv all_backups.tar.gz /some/backup/volume  (move your tar archive to some safe place)
$ rm -rf  ./*                                  ( remove all existing backup files & directories in the current dir)
 
once this completes, youe should have an empty: ~/Library/Application Support/MobileSync/Backup/
 
At this point it may not hurt to go fire up disk utility and repair permissions on the drive that holds your iphone backups.
 
Fire up itunes, and click on backup.  Hopefully all will be well for you.

然鹅它的解决方案是将备份打包移到其他地方,而我们已经完全删除了备份也无效。更换到Macbook下iTunes尝试升级和备份,也是一样出现该空间不足的提示:

可用空间不足无法备份iPhone

cd ~/Library/Application Support/MobileSync/Backup

find . -type f | wc -l

查看文件数量为 10225。du -k 查看容量大概也是21G时出错。这样看猜测是手机上的数据出错了,备份到出错点的时候停止。

由于iOS应用程序之间的沙盒隔离机制,比较难借助一些第三方工具修复已崩溃的iPhone系统,最后将手机恢复到上一个正确的备份状态,没有备份的话就只能恢复出厂设置了。

 

 

One thought on “iTunes备份iPhone电脑可用空间不足无法保存备份问题”

Leave a Reply

Your email address will not be published. Required fields are marked *