What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Apr 27, 2008 by pendorbound
Labels: Phase-Support, Featured
Troubleshooting113  
Troubleshooting 1.1.3 issues

Changes in 1.1.3

The change in Apple's user and rights strategy from 1.1.2 to 1.1.3 has caused all manners of problems for many applications, and Books is no exception. The following steps will help fix permissions problems and get Books working after an upgrade.

Fixing File Location

With 1.1.2 and earlier, all user data was stored under /var/root/Media/. Starting with 1.1.3, all data files were moved to /var/mobile/Media/. This move occurred because the applications on the phone are now running as the mortal user mobile instead of as root.

Several Books users have reported that upgrading from 1.1.2 to 1.1.3 with iTunes, then jailbreaking with one of the unsigned ramdisk based tools (ZiPhone or Independence) resulted in all Books files being automatically moved as part of the upgrade. Users who upgraded using the soft upgrade methods may or may not have had the files migrated as part of that process.

If after upgrading to 1.1.3+ Books can no longer find any of your books, you'll need to manually move the files using Terminal or SSH. Get a shell prompt on your phone through one of those methods, then run the following commands to move over the books:

mkdir -p /var/mobile/Media/EBooks
mv /var/root/Media/EBooks/* /var/mobile/Media/EBooks/
rmdir /var/root/Media/EBooks

Fixing Permissions

Books need to be able to read and write its preferences file as well as all the book files you want to read. The following commands should ensure Books has the necessary rights:

chown -R mobile:mobile /var/mobile/Media/EBooks /var/mobile/Library/Preferences/com.zacharybrewstergeisz.books.plist
chmod -R ug+rwX /var/mobile/Media/EBooks /var/mobile/Library/Preferences/com.zacharybrewstergeisz.books.plist

The above commands force ownership of Books related files to the mobile user and ensure that directories can be traversed and that all book files are readable and writable by the mobile user which runs iPhone applications.

Test Books Again

At this point, Books should hopefully work. Please give it a quick test. If it works, you can stop here. If not, please post a message to the support mailing list with as much information about your setup as you can.

Delete Preferences File

Especially after upgrading from Books 1.3.7, it may be necessary to delete Books' preferences file. If you see a strange, mostly off-screen blue dialog when Books starts, deleting the preferences file should fix the problem.

To remove Books' preferences file, login to your device using SSH or Terminal and run the following:

rm /var/mobile/Library/Preferences/com.zacharybrewstergeisz.books.plist
rm /var/root/Library/Preferences/com.zacharybrewstergeisz.books.plist

Log out, then start Books again.


Comment by huckduns...@mac.com, Mar 17, 2008

I have to say, you guys are really, really awesome. "Books" was the first thing I lusted after when the iPhone was hacked, and I enjoyed it greatly for months. Of course, I was pulled away by the lure of the newer firmwares, but after spending a few weeks reading my books on my old Palm TX (shudder!), I desperately wanted to get 'em back on my iPhone. Anyway, thanks a ton for this walkthrough - I'm sure that once the SDK and firmware 2.0 go live in a few months this process will get easier, but in the meantime, I'm really happy to be able to read again on this great screen.

Keep up the great work - we really appreciate it!

Huxley

Comment by megator, May 10, 2008

Thanks! it worked!

Comment by mhansaq, May 24, 2008

I tried the commands thru terminal only the first one worked thevsecond the MV it said no directory found please i need help i miss my ebooks i should not have updated books it was working great. Thanks

Comment by mhsacchi, May 28, 2008

I've just installed Ebooks in my Iphone 1.1.2 OTB powned to 1.1.4 (4A102) Firmware 04.04.05_G. The only I get when I run Ebooks is a label that said: "Folder not found. /var/mobile/media/Ebooks doesn't appear to exist. Try restarting Books to refresh folder". I can add that checking via WinSCP, I can note that the folder exist and permissions are 0755. In the other hand, I can see that new ebooks downloades via Installer are loaded in "/private/var/root/Media/Ebooks" and else in "/private/var/mobile/Media/Ebooks". I can see the files using another soft calle d TextReader?, but I'd like to use your Books applicattion. Any help you can give me will be appreciated. Thank in advance msacchi mhsacchi@gmail.com

Comment by ysyong, May 30, 2008

Hi,

I'm running iPhone v 1.1.4 and Books v 1.5-r523.

I can view downloaded eBooks fine, but can't seem to add any of my own custom HTML or text files to the eBooks folder. Tried the two command lines under "Fixing Permissions", but now what I get is I have 2 "eBooks"folders under /var/mobile/Media/. One of them is writeable, however all my downloaded eBooks are in the second one, which I still can't write to. The "Books" application still picks up the books from the second folder which contains my downloaded eBooks.

Would greatly appreciate your help.

Thanks

Comment by sternenfaenger77, Jul 06, 2008

Hi,

I just installed Books v 1.5-r523 on my iPod touch 1.1.4 and also installed "Adv. of Sherlock Holmes" as eBook which Installer.app showed me under category "eBooks" but when I start books.app all I can see is a blank page with dim lines. I also connected to my iPod using sftp and set the permission of files and folders under "/private/var/mobile/Media/EBooks" to 777. What else can I do?

Comment by tehdang, Jul 22, 2008

I also seem to have the problem where /var does not appear to be in the root directory but is instead in the /private/var folder instead. As far as I can tell there is so far no fix for this. Like the above four people above me, is there a fix for this?


Sign in to add a comment