View Single Post
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#16
Originally Posted by Coffee View Post
So I have changed these four items (see below) and suspect running your script with these mods already done will result in similar headaches as the moveroot.sh users, could you please confirm?
No, your mods shouldn't have any impact in M32GB. See below.

Q1. If these mods will effect the functioning of your script, are they reversible or a flashing in order?
It should not have a side effect after M32GBinit.sh. Actually M32GBinit.sh doesn't touch it. It would not have any impact on stuff located in /home/opt (/opt).

The problem with moveroot.sh is that moveroot.sh uses the same file structure in /home as should be in any root file system - it puts files to (/home)/usr, (/home)/lib etc. Unfortunately, I can't change the files location in /home partition to something else because this directory structure is required to run Maemo 5 from this partition. The collision should be fixed in moveroot.sh.

So, you are safe from collision as long as you move files under /home/opt or /home/user - actually, any place besides /home/usr (not user !), /home/lib, /home/etc, /home/dev, /home/sys etc - see full list of directories in "/" (but I take a special care about /opt and /home).

Q2. If reversible, is it as simple as doing the reverse eg:
mv /home/opt /usr/share/nokia-maps/
ln -s /usr/share/nokia-maps /home/opt/nokia-maps
This is a wrong sequence to reverse your previous steps.

After your past modification you have two choices now before applying M32GBinit.sh:

1) don't do any - it should work, see Q1. (I like this variant)

2) remove some packages in UBIFS to recover space and move that stuff back to UBIFS root file system -

rm /usr/share/nokia-maps
cp -a /home/opt/nokia-maps /usr/share/nokia-maps

rm /usr/share/microb-engine
cp -a /home/opt/microb-engine /usr/share/microb-engine

rm /usr/share/tutorial-applet
cp -a /home/opt/tutorial-applet /usr/share/tutorial-applet

rm /usr/share/locale
cp -a /opt/locale /usr/share/locale

... and immediately reboot.

I recommend command "cp -a" instead of "mv" here because I am not sure what [I]else]/I] is moved to that locations in your N900. The location like /opt/locale is pretty generic and some package may put some files to it during installation. It could be safe to keep a copy in that place some time.

But if you are sure you can use "mv" command.

Q3. The script, if any errors or problems, not happy, for whatever reason, can it be reversed or fixed with a flashing?
This script may cause a problem if you already have directories /home/usr (not user!), /home/lib, /home/etc, /home/dev, /home/boot, /home/dev, /home/sys, /home/syspart, /home/root ... etc - see again "ls -l /" for full list. The only exclusion - /opt (/home/opt) and /home/user.

If you don't pay attention and run M32GBinit.sh - it removes that directories before copying (/home/usr, /home/etc, /home/lib etc) - and that may have impact on system. The restoration would be - reflash root and eMMC. Sorry, please pay attention. I will update the first post to indicate it.

Last edited by egoshin; 2010-07-31 at 18:24.
 

The Following User Says Thank You to egoshin For This Useful Post: