The following procedure copies most part of Zubuntu into internal memory. Unfortunately the complete distribution is too large to fit completely into the little memory available, so a part has to be made available on SD, CF or Microdrive (see the Postinstall for more info).
It is important to now that the only drawback currently is that you have to keep your SD card inserted during use of Zubuntu, since (on default) the /usr and /var directories are located there. If your model has a Microdrive, you'd better install these two directories there, in order to make this disadvantage disappear.
Disclaimer: First of all, be aware that, if you've previously had the original Sharp ROM, Cacko, pdaXrom or any other distro running from internal memory, you will lose it permanently after following these instructions. If you're not sure, be sure to make a NAND backup before continuing. How to make a NAND backup is described here (kind of).
1. Making preparations
These instructions assume you have a Zubuntu installed as described here. There are plenty of other possible installations, but I'll only cover the default here.
Download the following two files:
mtd-utils_1.1.0+git-r1_arm.deb MD5: 01a45a3a6aa71dde9611160e943bcd1e zubuntu-flash-install.sh MD5: 45a629b112088394efad3aeba61dc861
2. Start Zubuntu
After setting up Zubuntu, you should be able to select it from the bootmenu. Select it there so Zubuntu boots and login with the root user account. Copy the downloaded files from step 1 onto the Zaurus.
3. Installing required packages
Install the mtd-utils package downloaded in step 1 by executing the following command:
dpkg -i mtd-utils_1.1.0+git-r1_arm.deb
4. Copying Zubuntu
The rest is just a matter of copying over the base system. Since this can be tricky, I've created a small script to do the dirty work. Run the script by entering ./zubuntu-flash-install.sh.
You'll be asked on which memory partition you want to install Zubuntu. Possible options are the second and third memory partition, being the Root and Home partitions of the original Sharp ROM. Default choice is the third partition since this is the largest one (about 90Mb on Spitz/Akita). After that the partition is erased (permanently!) and most of the Zubuntu system is copied from your currently running system. This also means that all adjustments, settings and configurations are preserved.
You can safely ignore the messages 'ignored sockets' and 'implausible old time stamps'.
5. Post install stuff
After running the installation script there are still a couple of things to do.
** /etc/fstab adjustment
Remove the mount point to the Zubuntu default installation (/dev/mmcblk0p1 on default) from the /etc/fstab file.
** Adjust the symbolic link to /usr and /var
Since the complete Zubuntu distribution is too large to fit completely into internal memory, both /usr and /var have to be made available on SD, CF or Microdrive. The installation script creates two symbolic links for this purpose, pointing to /dev/mmcblk0p1, being the first partition on your SD memory card. You need to adjust it only if you've installed Zubuntu on a partition other than the first one on your SD memory card.
** Adjust /etc/rc.S/00mount-zubuntu.sh
This file mounts the Zubuntu default installation early in the boot process, since files in /usr and /var are needed during boot-time. The mountpoint used in /etc/rc.S/00mount-zubuntu.sh is /dev/mmcblk0p1 on default. You need to adjust it only if you've installed Zubuntu on a partition other than the first one on your SD memory card.
6. Reboot from internal flash memory!
Now reboot your Zaurus (run reboot). You'll notice that there's a new option in the bootmenu with a litte memory icon in front. Select that option, and Zubuntu boots from internal flash memory!
Please give me your feedback, report problems, share fixes, enhancements etc.
Last but not least I want to stress the fact that visiting the advertisements on the left or (even better) use of the Donate button is much appreciated!
[ 17 comments ] ( 927 views ) | permalink | ( 3 / 1366 )