Solution for iPhone prompting insufficient space

Source: Internet
Author: User
Solution for iPhone prompting insufficient space-Linux general technology-Linux technology and application information. For details, refer to the following section. Why is there insufficient space?
It is estimated that the iPhone we cracked has a small Bug. The 8 GB hard disk is divided into two partitions, one 300 M (system space), and the remaining 7 GB space is allocated to another partition. Therefore, when too much software is installed or too many photos are taken, the system prompts that the space is insufficient, and the photo information may be erased.

If you are familiar with Linux, it is actually easier to do. It is to move the directory that occupies a large amount of space to the second partition, and then create a symbolic link chain to return.

For example, move the photo file directory. The premise is that you can log on to the iPhone through SSH. The simplest command may be the following:

# Mkdir/private/var/DCIM
# Cp-r/DCIM/*/private/var/DCIM/
# Mv/DCIM. backup
# Ln-s/private/var/DCIM

Restart and delete the DCIM. backup Directory. Why are you so hard? Why can't one mv be solved by one ln step? On my machine, you will be prompted with insufficient permissions (probably related to the small traps described below ). It works.

There is also a small trap. If you move the application-related directory, you will find that the application is not working. Modify the/etc/fstab file. The default value is as follows:

# Cat/etc/fstab
/Dev/disk0s1/hfs rw 0 1
/Dev/disk0s2/private/var hfs rw, noexec 0 2

To:

# Cat/etc/fstab
/Dev/disk0s1/hfs rw 0 1
/Dev/disk0s2/private/var hfs rw 0 2

Record it. It is estimated that N people have encountered similar problems. Not detailed enough. I will continue to improve it later.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.