webOS Nation Forums >  webOS apps and software >  webOS discussion > App Space Limit
App Space Limit

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/07/2009, 11:41 AM   #1 (permalink)
Member
 
Join Date: Aug 2009
Posts: 31
Likes Received: 1
Thanks: 7
Thanked 0 Times in 0 Posts
Default App Space Limit

So today's story on this topic got me thinking, Aitikin, why don't you just create a symlink and work off of the media partition. Well, I don't have access to a computer that can run webOS Repair/Doctor/what have you right now, so I'm going to leave my tests for later.

That being said, I don't see why one wouldn't be able to put a folder in the Media partition and have the /var partition get copied over there and work with symlinks. Someone with better Linux knowledge/chops than I should probably proof this and make sure I'm not an idiot before anybody tries it (and I'll be amazed if I'm the first to try it, but I can't seem to see anyone else.

I'm saying this again: DO NOT TRY THIS WITHOUT KNOWING WHAT YOU'RE DOING FIRST!!!

Rooting around in Linux is dangerous. It can and will break your system if you are not careful.

It should be as simple as logging into your Pre via SSH and creating a new (hidden) folder in the media partition:

Code:
mkdir /media/.var          / / the leading . makes it a hidden folder in *nix
Copying everything over from your var partition to the new folder:

Code:
cp -R /var/ /media/.var/
Editing fstab to remove the var partition (may not be necessary). Not listing anything as I'm not even 60% sure on the code needed

Create a symlink to hidden folder:

Code:
ln -s /media/.var/ /var
And be done with it. Something about this says that it's WAAAAAAY too easy to work, but who knows. Someone who knows linux better please yell at me for getting this wrong so I don't try it and have to resort to the Doctor...
aitikin is offline   Reply With Quote
Old 10/07/2009, 12:09 PM   #2 (permalink)
Member
 
DeathsArrow's Avatar
 
Join Date: Apr 2009
Posts: 289
Likes Received: 3
Thanks: 54
Thanked 43 Times in 32 Posts
Default

Xorg is working on a similar solution here: http://forums.precentral.net/web-os-...-proposal.html
DeathsArrow is offline   Reply With Quote
Old 10/07/2009, 12:23 PM   #3 (permalink)
Member
 
Veritas06's Avatar
 
Join Date: Oct 2007
Location: Northport, NY
Posts: 610
Likes Received: 4
Thanks: 448
Thanked 133 Times in 89 Posts
Default

I think there was a formatting issue with this. I was thinking about this also (unfortunately i was thinking of the iPhone :\ how Cydia on the iPhone creates the extra partition for applications) but i believe members in the IRC said the formatting of the partitions is different & therefore wouldn't work.

~ If i'm wrong, someone please feel free to correct me.
__________________
Fix 'Hidden' SMS Conversations
PreThemer Profile
Hide Amazon MP3 Store
Veritas06 is offline   Reply With Quote
Old 10/07/2009, 01:05 PM   #4 (permalink)
Member
 
Join Date: Aug 2009
Posts: 31
Likes Received: 1
Thanks: 7
Thanked 0 Times in 0 Posts
Default

But what I'm saying is it wouldn't need to be a partition, unless the actual partition on the var is different and looks for something specific?

If someone can just post a default fstab (be it rooted or not, doesn't really matter) I'd like to be able to check out what var is listed as versus everything else. I can't ssh in right now (campus wireless is screwie and wired is just as bad) otherwise I'd do it myself.

Last edited by aitikin; 10/07/2009 at 01:12 PM.
aitikin is offline   Reply With Quote
Old 10/07/2009, 01:11 PM   #5 (permalink)
Member
 
Join Date: Jun 2009
Location: kansas city, mo
Posts: 633
Likes Received: 0
Thanks: 85
Thanked 303 Times in 146 Posts
Default

^I started out by linking entire /var..apps directory but felt forcing all apps to symlink was risky since the file attributes are lost, so headed down the path to selectively choose which apps to link.

Most apps will work fine without file attributes (pure javascript apps) but any apps that depend on the attributes won't work. So doing the entire directory is risky. One app at a time is less risky (and I have a backup method as well).

I note this on the wiki page in 'Benefits over other methods'.
xorg is offline   Reply With Quote
Old 10/07/2009, 01:43 PM   #6 (permalink)
Member
 
Join Date: Aug 2009
Posts: 31
Likes Received: 1
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Thanks. I forgot about the attributes thing. I haven't thought Linux for a couple years now, so my mind coming up with this kinda shocked me.
aitikin is offline   Reply With Quote
Reply

 

Tags
app space limit, hack, linux, workaround

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0