How to: Manually fix problems uploading files into Applications folder, without wifi

January 28, 2008 at 11:23 pm (How to, iPhone, iPod Touch, Technical Stuffs) (, , , , , , )

AS OF 15 MARCH 2008 I WILL NOT BE REPLYING TO THIS POST. ALL NEWER POSTS/QUESTIONS WILL BE ANSWERED IN MY OTHER TECHNICAL BLOG AT HTTP://ASK-YUSRY-ANYTHING.BLOGSPOT.COM

The follow up for this post is here.

———————————-

Hi guys.

I’m sure you had fun jailbreaking your applications, and you will probably try to install each and every available application on the Installer repo. Then suddenly, some unexpected errors occur. You don’t want to restore your device. You need help.

You will read this post if you encounter these related problems:

  • Installer crashes after trying to install (more) applications
  • Installer tells you that “You’re running out of disk space” even though it’s a newly restored device
  • You delete videos and pictures, but still can’t clear that disk space
  • You can’t manually install applications via SSH, Total Commander, CuteFTP, WinSCP, iphonebrowser, ibrickr etc
  • Your favourite SFTP program reports that there is an error
  • You can’t add BIOS files for applications that requires them (e.g. gpSPhone and psx4all)
  • (editors note: maybe there’s more, but I can’t think of any right now!)

There are 2 known methods. The easy way (no fun way 😛 ) and the hard way (more fun, more risk!). Whatever method you choose, the outcome will be the same. However, I’m only going to touch on the Hard way, because I cannot fulfil the requirement to do the easy way (having a wifi)

BORING DISCLAIMER NOTICE

READ THIS BEFORE CONTINUING!

Yeah I know this is boring, but you will have to read it, so that you don’t keep blaming me for errors!

THIS TUTORIAL IS MAINLY WRITTEN FOR WINDOWS USER. NO OFFENCE TO MAC USERS, BUT SORRY I DON’T OWN ONE TO SPEND TIME TO TEST WITH.

ONLY FOR FW VERSION 1.1.2 AND BELOW. FOR FW 1.1.3, PLEASE USE BOSSTOOL INSTEAD.

THIS TUTORIAL IS ASSUMING THAT YOU DON’T HAVE WIFI CONNECTION AT HOME AND WANTING TO RE-LINK YOUR ALREADY “FULL” APPLICATIONS INTO THE OTHER PARTITION WHERE THERE IS MORE SPACE.

Whatever happens, FOLLOW THE STEPS CAREFULLY. I will carefully examine each and every step I write here to avoid any errors. Do whatever you need to do (e.g. wear your specs, increase monitor’s brightness etc). Make sure you don’t miss a step. Make sure you don’t confuse “l” (small cap “L”) and “1” (the number one) and “I” (capital i). I won’t spend my time explaining each and every letter to be typed in though, but be wary of the characters.

Incorrect procedure or incomplete procedures might make your iPod into an unusable state. The safest way (less headache) way to remedy that is to do a complete restore. However, you won’t notice where the problems are.

I will try my very best to explain each and every step if necessary. That way, you will feel confident if you are attempting to proceed with the steps.

Don’t worry. Mine cocked up in the first try. Luckily with my level of experience, I’m able to restore the problem and start all over again.

I WILL PERSONALLY GUARANTEE THAT THIS IS 100% CORRECT AS OF WRITTEN DATE.

And no, I don’t take credit for these information because I learned it from other sources like modmyifone.com, ipodtouchfans.com, iphoneatlas.com etc. There are too many variations, so I will only write the variation that works.

Phew. That’s the end of the stupid disclaimer. Now enjoy!

Prerequisites

In order for things to be done smoothly, there are a few requirements that I assume to be available in your device.

  1. Jailbroken iPhone/iPod Touch with version 1.1.2 recommended (1.1.1 should work fine)
  2. Installed BSD Subsystem
  3. Installed Term-vt100 (any other terminal should work though)

What’s happening?

If you haven’t noticed, there are 2 partitions in the iPhone/iPod Touch. All files in Applications folder is stored there, hence you only have a maximum of 300 MB worth of data. However, due to firmware installs, the OS for the iPhone/iPod Touch also takes up space, and you’ll probably have less than 50 MB to install applications.

Once you have completely filled up this partition space, no matter what you do you will not be able to install more applications even though you still have tons of space inside your device.

The trick here is to “re-link” your original Applications folder, and point it to another folder, which is inside another partition. And that partition is the one where all your songs, movies and pictures goes to. So if you have a clean iPhone/iPod Touch, you essentially have 7.5GB or 15GB (depending on model, and other factors) worth of free space to install programs. Install until you’re mad! 😛

How to know how much space I have?

Run Term-vt100, and type the following in the prompt:

cd /
df -h

It should show you 2 partitions (mine is already fixed though, you probably would get 100% for the first item) like my screenshot here.

If you don’t understand, nevermind. Just take note of the values. If it shows 100% for the first item, it’s full. So you’ll need to move the files in order to continue installing applications.

So how to move?

You can use BossTool (near the end of this tutorial) or you can continue reading this.

NOTE: This is very complicated, so try to follow as closely as possible. Note that I did not use any SSH or SFTP programs because I don’t have a running wifi network in my house.

Now you run Term-vt100, and type in the following (cAsE sEnSiTiVe so pay extra attention to it, also watch out for spaces. There might be lags, so wait for the # sign to appear before continuing the next command):

cd /
cp -pr Applications /var/root
mv Applications Applications.old
ln -s private/var/root/Applications /Applications

Detailed explanation

1. Change directory into the root (just in case step)
2. Copies /Applications folder into /var/root folder
3. Moves /Applications folder into /Applications.old folder
4. Creates a symbolic link from private/var/root/Applications to /Applications

That’s it?

Not yet. Although you think that it’s finished, you will need to test it. Now cross your fingers, while rebooting your iPhone/iPod Touch. Turn it off (not sleep) and turn it back on.

Once it’s restarted, you will feel that nothing has happened. If something happens, then it’s screwed. But I did these steps while I was writing it, and mine didn’t get screwed (phew!). This is normal. You can now run Term-vt100 again, and check if your applications have moved correctly. Type in the following:

cd /
df -h

You should now at least see that it’s not in 100% anymore. It would probably be around 80% used. If you want to know why, it’s mainly because wallpapers and ringtones takes up the main partition too. But I’m not going to touch on that. If it’s still 100%, you probably have missed a step or two, so try again.

Now you need to delete the /Applications.old folder. That was used as a backup, IN CASE something got wrong (like mine did… 😛 ). I will explain further.

Delete the temporary Applications.old file

NOTE: DO THIS ONLY IF THERE’S NO PROBLEMS!!! I cannot stress enough that this is your only lifeline if something gets screwed. Just make sure you test all your programs, download more programs etc, and when everything seems fine, then do this delete.

To delete the folder, launch Term-vt100 again, and type in the following:

cd /
rm -rf Applications.old

Shit! I can’t see a single icon/iPod Touch gets screwed.

Well that happens to me the first time, so that’s why I learn.

Anyway, if you cannot see any icons, it’s probably not pointing to the right place. You’re still in luck because it can be remedied easily.

Download and run iphonebrowser. Look for /Applications folder, DELETE IT (you will have to go through a stupid backup process though). The program might crash, so just close and launch iphonebrowser again. Then RENAME /Applications.old into /Applications and you’re good to go (or redo it, or ignore it, or throw it… Whatever you want to do with it! 😛 ).

If you see a “Applications” file inside the /Applications/ folder, DELETE IT.

If your iPod keeps restarting, try to manually delete the last known installed file using iphonebrowser. When mine keep blinking, I was installing iPhone applications, so that’s why it crashes. But this might not be normal SO DELETE THEM FIRST.

You will start to feel that it’s really screwed, but I waited a good 30 mins for the blinking to suddenly stop. Once it stopped, that’s when everything went back to normal.

Trust me, you wouldn’t want to reach to this problematic stage. You would feel like throwing the damn piece of shit. 😀 Anyway jokes aside, if you DO hit this problem, just be patient, and try to off the device (it probably won’t) or holding the Home button. DO NOT HOLD BOTH. Choose either one.

But if you’re not confident, you would want to try BossTool instead. The safe, automated way to move those files via Installer. Well, that would require a working wifi connection doesn’t it? Read on.

Can’t this get any easier/safer method?

Well, yes. Use BossTool. But that defeats the purpose of this tutorial where it’s clearly written for those who don’t have the luxury of having wifi connection at home (like me!).

Anyway, you can download and use BossTool to automatically correct this problem. However, you will need a lot of free space in order to do that. So make sure you delete enough applications to make some room for BossTool. Or else it won’t even install properly, and you’ll face another problem.

Add http://www.sleepers.net/~iphone/repo.xml as a source in Installer, then download BossTool.

IMPORTANT NOTE

If you followed the long winded story to move your files, DO NOT INSTALL BOSSTOOL. I just did, and guess what? My iPod Touch goes to disco! It keeps flashing for no apparent reason. My guess is that I tried to do something weird to it, so it’s probably crashing.

If you encounter that, connect the iPod via USB, launch iphonebrowser, then just delete BossTool.app. After a while your iPod will restart by itself, and everything will go back to normal.

If you do use BossTool, you can uninstall it after the process have ended. It is a one-time change, and it is a permanent one. If you uninstalled BossTool, it will not move your Applications folder back into the first partition though, so be careful.

I got questions!!!

Well if you have any questions/problems, just comment me/use the contact form and I’ll to my best of knowledge to help you with whatever I can.

Advertisements

14 Comments

  1. momott said,

    hey its me again and I just jailbroke 1.1.2 with your help! If I install bosstool then what do I click? I want to upgrade now that there is a fix for SB and I only use customize for changing app locations and I can do that with wiggly icons. Plz reply quickly! Thanks for your time as always!

  2. dermapthera said,

    Hi momott

    There should be a BossTool app in your homescreen. But you said 1.1.2, or your meant 1.1.3? Haha too many versions until I’m lost… 😛

    Anyway, I’m going to assume that you’re running 1.1.2.

    If it doesn’t appear, probably because the permission is not correct. If so, install and run Term-vt100, and type the following:

    chmod -R a+x /Applications/*

    That should try to make your app available (if for some reason it’s the permissions problem).

    If still does not appear, I strongly suspect that you do not have enough room for BossTool to install. If so, you have to delete some applications just to make room for BossTool.

    So my recommendation is (assuming it’s a clean install)
    – jailbreak 1.1.1 or 1.1.2 (must be clean)
    – install BSD Subsystem (this is important)
    – install Term-vt100
    – install SSH (if you plan to use SSH, but just install even if you don’t use)
    – install BossTool

    You can leave out the other installations like Customize, SummerBoard, games etc, after you have fixed your space issue.

    Hope this helps.

    Cheers.

  3. momott said,

    Sorry for posting on so many different blogs but 2 last questions before I take the leap (again) to 1.1.3 jailbroken:

    1. BossTool shows up on my home screen, but do I need to open it or is downloading it and installing it enough?

    2. Any input on whether or not I should use ijailbreak mobile or what? Since ipodtouchmaster’s method killed mine, i won’t use his?

    Thanks, you’ve been great!

  4. dermapthera said,

    Hi momott

    Answer 1:
    Yes, run BossTool (tapping the icon), then let it do it’s stuff. You can uninstall it after it has done it job. I am not sure if the effect will bring over to 1.1.3 though, but just in case, you don’t uninstall it yet after updating to 1.1.3.

    Answer 2:
    There have been lots of controversy on which version is the best. Right now, there are so many releases, I myself getting confused. There have been the first “NateTrue” leaked method, then the “DevTeam” method, then apparently there’s another release, which I’m not sure of his name. ipodtouchmaster’s method is based on someone else’s method, so it doesn’t really matter. If you still want to try jailbreak 1.1.3 (which I’m not sure if you should, given the situation), you could try the Official Dev Team method, or iJailbreak method. Either way, I don’t think the $20 apps is gonna show up like ipodtouchmaster’s method. So if you update to 1.1.3, you’ll need to install that software by finding it somewhere (I think it’s called iPod Software Update).

    Wow! I can’t believe I wrote this long. Anyway, I hope I’ve given you enough insight so that you could make your decision wisely.

    And good luck! You’ll need it.

    Cheers!

  5. momott said,

    Ok I installed bosstool and now I don’t know what to do. I am guessing I need to hit relocate applications but I don’t know. What exactly do I do? Thanks!

  6. dermapthera said,

    Hi momott

    The thing is, I can’t experiment with BossTool, because if I do, it will jam my iPod Touch.

    I’m not sure how, but just try launching the app.

    I’ll try to see if I can find out anything.

  7. dermapthera said,

    Hi momott

    I figured it out already.

    I think there’s a button to “relocate wallpaper”, “relocate fonts” and “relocate applications” button right?

    Just hit the “Relocate Applications” and agree to it. And that’s about it!

    If you relaunch BossTool, it will tell you that you have already relocated your applications.

    However, you can’t undo though.

    I’m guessing the app is pretty straight forward, so don’t worry so much about it.

    Good luck!

  8. emmett said,

    hi my iphone got fuked!
    ok it reboted after
    cd /
    cp -pr Applications /var/root
    mv Applications Applications.old
    ln -s private/var/root/Applications /Applications
    and nw it goes back to main screen and has the swirly circle thing

    im resoring bck 2 1.1.1 as we speak
    im tell u of it works

  9. dermapthera said,

    Hi emmett

    It got fucked you mean? If you can’t turn back your iPod on after moving the apps, you will need to restore the old “/Applications.old” back into “/Applications”.

    Look at my post for the complete solution to that.

    If you don’t trust what you read here, then I strongly suggest using BossTool. The automated fix.

    Cheers!

  10. tony said,

    is there a true wifi fix for greyed out wifi

  11. dermapthera said,

    Hi tony

    I don’t catch what you’re trying to say. You mean your wifi isn’t working? Or there’s no wifi?

    Either way, this method does the same as BossTool, only that it’s a manual way.

    Cheers.

  12. tony said,

    correct i have no wifi at all it is greyed out

  13. dermapthera said,

    Hi tony

    I’m very sorry but I really don’t understand you. Greyed out wifi means the wifi is not connected. Are you connecting through a wifi connection?

    Correct me if I’m wrong though.

    Anyway, this tutorial is written mainly for people who don’t have wifi. If you have wifi, everything is almost automated. All you need is the necessary source and packages to do your job.

    Cheers.

  14. tony said,

    look i have zero wifi ….when i say zero i mean zero i cant do anything with it …. i have tried restoring it but to no avail it is not there….. there is a difference between having wifi and not having wifi … i dont have wifi… if i had wifi i could connect…
    it says in the settings no wifi and it is greyed out when i upgraded i lost wifi on my phone … so i need to know is there a way to manually fix this … i cant install any 3rd party app’s or anything without it

Comments are closed.

%d bloggers like this: