Active Topics

 


Reply
Thread Tools
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#1
Hi,

after browsing the web a while I just figured out that rootfs causes much trouble (isn't that hard to figure it out, right ?) on the N900. I also found lengthy discussions here etc. But is there any page on e.g. the maemo wiki which has a plain explanation/howto (no discussions ) how to fix this issue?

Btw. I'm no gonna install as many apps as I like - hopfully this time I don't have to flash my device again :|.
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#2
Search for "repartition" on the forum... there's atleast 3 different guides on how to do it in a single thread here. If you want feel free to combine them into something sensible for the wiki page or just put all there.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#3
simple solution:
1. don't activate extras-testing and extras-devel or don't install downloaded .debs unless author has optified the installer.

2. just wait for software to be optified. (that must be done if author want's his software to extras and I think after that following versions @testing & devel will be optified too)

3. -----

4. profit
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#4
"much problem" is an overstatement. I've had the rootfs be full once; and that was before the /opt solution was unveiled and started being rolled out.

What are people doing which causes so much trouble? Installing all software in extras-devel?!
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Posts: 110 | Thanked: 32 times | Joined on Dec 2009 @ Moon
#5
Originally Posted by Jaffa View Post
Installing all software in extras-devel?!
is that a bad thing to do ?!?!?!
 
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#6
Exist code for "release space" in root.
I didn't try it yet. Cannot give any warranty on it. It is from link:
http://sumoudou.org/%E7%9B%B8%E6%92%...ia%20N900.html

I put explanation in the code after "#" (all line after # don't executable and you can copy code with it)
Code:
#Create folder in /opt for /usr/share
mkdir -p /opt/usr/share
#enter in /usr folder
cd /usr/ 
#cycle. FILE will have different value depend from step 
for FILE in games include local src var
do
#move folder (games include local src var) to /opt/usr
 mv $FILE /opt/usr/
#create soft link for moved folders
 ln -s /opt/usr/$FILE /usr/
done
#end of cycle

mkdir -p /opt/var/cache
cd /var/cache/
for FILE in apt
do
    mv $FILE /opt/var/cache/
    ln -s /opt/var/cache/$FILE /var/cache/
done

  cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do    
      mv $FILE /opt/usr/share/
    ln -s /opt/usr/share/$FILE /usr/share/
done

Last edited by mikhmv; 2009-12-15 at 16:15.
 

The Following User Says Thank You to mikhmv For This Useful Post:
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#7
Yeah, I also read the whole http://talk.maemo.org/showthread.php?t=35122 but I'm not quite sure if I do it myself. Because I don't want to fear about my device again . I rather think I go with the shell script you provided (which is also mentioned in the other thread).
I think following the instructions from the link is risky, because if there is a mistake, I'm not sure if flashing works anymore. Short: I fear to make mistakes and I don't have enough linux knowledge to be sure it works (too much risk). And what I just saw - I don't have a MicroSD card which is needed .

But in the first place I also didn't want to read long threads to find out what is useful. But the thread turned out to be quite good. Then my hope was, there is a "mainstream" way in the meantime which is bulletproofed.

And I don't go and create a wiki page as long I'm not familiar with what I'm writing about . Which isn't that dumb I think.

Last edited by emesem; 2009-12-15 at 18:15.
 
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#8
I've done some minor modifications. Now It should be re-runnable. Because I think after some installations, I might want to run that script again and therefor I don't want to create useless links (links on links on links...).
Code:
#Create folder in /opt for /usr/share
mkdir -p /opt/usr/share
#enter in /usr folder
cd /usr/ 
#cycle. FILE will have different value depend from step 
for FILE in games include local src var
do
  #if it is no symlink
  if [[ -h $FILE ]]
  then 
    echo "Omitting $FILE because it is a symbolic link"
  else
    #move folder (games include local src var) to /opt/usr
    mv $FILE /opt/usr/
    #create soft link for moved folders
    ln -s /opt/usr/$FILE /usr/
  fi
done
#end of cycle

mkdir -p /opt/var/cache
cd /var/cache/
for FILE in apt
do
  if [ -h $FILE ]
  then 
    echo "Omitting $FILE because it is a symbolic link"
  else
    mv $FILE /opt/var/cache/
    ln -s /opt/var/cache/$FILE /var/cache/
  fi
done

cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do    
  if [ -h $FILE ]
  then
    echo "Omitting $FILE because it is a symbolic link"
  else
    mv $FILE /opt/usr/share/
    ln -s /opt/usr/share/$FILE /usr/share/
  fi
done

exit 0
I tried that script and it works fine. My device is still usable . But I did not rerun it yet, because there was no need. After I've installed some apps I will try a rerun (dunno when that will be, but I'll post that).

Last edited by emesem; 2009-12-16 at 06:05.
 

The Following User Says Thank You to emesem For This Useful Post:
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#9
Would it also be possible to say
Code:
for $FILE in in `ls`
Or would that "crash" something? So that means, could I symlink all directories or should I only try it with certain things (like the script does) to don't mess up the system?
 
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#10
Originally Posted by emesem View Post
Would it also be possible to say
Code:
for $FILE in in `ls`
Or would that "crash" something? So that means, could I symlink all directories or should I only try it with certain things (like the script does) to don't mess up the system?
Correct one:
Code:
for FILE in $(ls)
do 
   echo $FILE
done
Look only first line. All code is just for demonstration that it is work.
 
Reply

Tags
radioactive


 
Forum Jump


All times are GMT. The time now is 14:15.