![]() |
2010-07-29
, 19:02
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#11
|
![]() |
2010-07-29
, 19:10
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#12
|
![]() |
2010-07-31
, 04:13
|
|
Posts: 500 |
Thanked: 437 times |
Joined on Nov 2009
@ Oklahoma
|
#14
|
![]() |
2010-07-31
, 12:13
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#15
|
OK, I found moveroot.sh - it is should be NOT used because it creates some directories and interferes with M32GB.
![]() |
2010-07-31
, 18:04
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#16
|
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?
Q1. If these mods will effect the functioning of your script, are they reversible or a flashing in order?
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
Q3. The script, if any errors or problems, not happy, for whatever reason, can it be reversed or fixed with a flashing?
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-07-31
, 20:37
|
Posts: 116 |
Thanked: 40 times |
Joined on Mar 2010
|
#17
|
![]() |
2010-07-31
, 23:40
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#18
|
Thanks! This is fly. How easy would it be to modify this so that it would do what it does but instead copy to a partition on an SD card?or if you make an updated version maybe have it allow a choice to select where you may want to copy to?
![]() |
2010-08-01
, 00:48
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#19
|
It is not recommended for regular user because some potential troubles between two systems (original vanilla Maemo5 on UBIFS and a copy on 32GB eMMC). This troubles may happen during removal of shared software packages located in /opt (see below).
So, instruction guide first and cautions second.
I. Usage.
Script set includes 3 scripts (all should be run as root user):
Pardon my ignorance, how should we install as root via xterm.
sudo gainroot
M32GBinit.sh (enter)
M32GBinit.sh prepares Maemo 5 on eMMC /home partition from your root FS on UBIFS. It copies all files, fixes some issues to work with telephony and fixes some system boot scripts. It can be run at any time on an original vanilla Maemo 5 in UBIFS. If previous eMMC root file system on /home exists it destroys it first.
M32GBboot.sh prepares an original root FS on UBIFS for dual boot - boot with open keyboard and N900 runs root from eMMC. Closed keyboard still boots an original from UBIFS. It changes /bootmenu.sh and /sbin/preinit on UBIFS root.
You run M32GBinit.sh to prepare eMMC root file system once. Then you can run M32GBboot.sh to activate a dual boot. If you have installed bootmenu or multiboot or similar package which allows change root then M32GNboot.sh is not needed, but you should know how to configure your dual boot package properly.
I have Multiboot install with NITDroid, I am unsure how to set this up so it works correctly with this mod. I know it has the 3 file locations:
/boot
/boot/multiboot
/etc/multiboot.d
I understand it is the /etc/multiboot.d/.......item files that give the options in the boot window. As much as I know
After that the boot with open keyboard tosses you to eMMC root. You can forget about UBIFS root until next major Nokia upgrade and use eMMC root file system in day-to-day operations. You can do another reboot any time.
If you want temporary return back to original vanilla UBIFS root file system you just boot with closed keyboard.
Ok, so if I understand you correctly. You are simply making a copy root file system into the 2gb home directory and using dualboot, multiboot etc to tell the system which root to use?
If so, when running with root in home directory, will all further installed files etc be located under this partition and then if boot normally, not installed or accessible?
If you want a complete removal of Maemo 5 on eMMC - boot an original vanilla UBIFS and run M32GBrm.sh script - it completely removes eMMC root files and reverts back a dual boot too.
This sounds the ideal situation and much tidier one, is still a need for dual boot like this from a clean flash?
EDIT: you can backup your contacts/applications/configs/etc in Maemo 5 on eMMC and restore it later in a regular vanilla UBIFS Maemo 5. Just be sure that full list of applications doesn't overflow your 256MB UBIFS- Yes, it may be difficult after 1 week
How can you confirm what your apps will come to in total and that 256 is enough, at best I have approx 60 apps installed and no idea what this takes up. Just want to be on the safe side.
NOTE: for good performance of eMMC root I recommend to format Class 6 uSD card with Linux swap partition and switch to it via shell commands like:
swapon /dev/mmcblk1p2 # I use partition 2 on uSD
swapoff /dev/mmcblk0p3
I am currently running a standard class 4 8gb card. I have 3 partitions and are as follows:
3.4gb free for use (fat32)
1.8gb NITDroid Installed (ext3)
2.5gb Allocated for Easy Debian though not installed yet (ext2)
Is it worth me setting the mccblk1p1 3.4gb for additional swap or to large and waste of space and class 4 not worthy ?
A. Both roots share three objects - kernel, /opt and user files (+MyDocs). So - don't try this for kernel debugging, it doesn't help. And if you DELETE some optifyed package from one system it is not automatically deleted in second root file system. So, the shared package (package which does exist in UBIFS root before running M32GBinit.sh) should be not deleted. There is no automatic monitoring of that, of course.
So I think that may answer my previous question before about installed files not working in the other root loction, totally independent by sounds of things. So sounds as if this mod is best done after a complete FIASCO & eMMC flash and totally relocate the eMMC root system and then install all apps so clean and tidy.
That said, would you want or need multiboot then?
C. If you plan using titan's power kernel or bigger /home - please switch to Titan's power kernel or increase a size of /home partition on original vanilla UBIFS root file system before you run M32GBinit.sh. You can't do it after boot into eMMC root file system. More precisely, you can do it but you will have a trouble during boot of an original vanilla UBIFS root.
If we are not and simply running apps and say NITDroid or Debian etc the 2gb should be enough shouldn't it, it is only the apps and root that use it?
D. (EDIT) Please don't use this scripts with moveroot.sh - it uses the same file structure in /home without backup and running M32GBinit.sh could erase some locale language files. (EDIT2) So, please check before applying M32GBinit.sh first time what your /home is "virgin" and you do not have directories:
/home/bin
/home/boot
/home/cdrom
/home/dev
/home/etc
/home/floppy
/home/initrd
/home/lib
/home/proc
/home/root
/home/sbin
/home/src
/home/sys
/home/syspart
/home/usr (usr - not user! /home/user is OK)
/home/var
/home/mnt
/home/tmp
/home/media
/home/home
Scripts M32GBinit.sh and M32GBrm.sh remove this directories. Take care that you haven't something valuable in it.
And remember that M32GBinit.sh creates that directories, so check can be done only before first time.
Well I have NITDroid installed,other than a folder " lost+found" which I think is from NITDroid?
(It's sweet, just for others with NITDroid installed)
![]() |
2010-08-01
, 03:26
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#20
|