8
« on: April 07, 2005, 10:00:16 pm »
This is my first post here, so forgive me if this isn't strictly in the correct forum.
I just got a SL-5000 2 days ago, and flashed it to the latest OZ. Since then, I have had to reflash it a few times due to a number of problems I am having.
After flashing to OZ (with the 40/24 kernel) I realized I had nowhere near enough space on the thing, so I used a 256 MB SD card to expand my storage. I have 2 partitions on the SD, the first a 100 MB FAT32 parititon so I can swap files between the PC and Zaurus easily, and the second is a 150 MB EXT2 partition to hold the system files.
After some modifications to the sdcontrol file, I have the Zaurus mounting both partitions as /mnt/card and /mnt/card2 automatically.
On /mnt/card2, I have placed /opt and /usr, with symlinks to the root FS on the internal flash (I also ran the necessary commands to make symlinks to the busybox commands so the system boots properly).
This has worked fine, except for one serious problem.
Since the SD is now an integral part of the file system, and I can't put a journalizing file system on it, every time the system locks hard enough to require a hard restart by cutting the power, which it does fairly often (no offense intended to OZ, I have developed some embedded Linux systems myself, so I know perfection is very difficult if not impossible to achieve), I often lose files in /opt and /usr, making the Zaurus unbootable or generally broken. Now I have backups to restore to when this happens, but I would obviously like to avoid this problem completely. I also have had problems since OZ isn't cleanly unmounting the card at shutdown.
So after that fairly long intro, here come the real questions:
1. Is there a way to make OZ cleanly unmount the SD when it shuts down?
2. Is there a way to make OZ run an fsck on the SD at boot?
I've been working on the second problem for awhile, but I seem to be getting stuck with the way OZ handles the SD. The SD doesn't seem to obey what is in fstab, and seems to be controlled by sdmgr. However, when I tried to disable sdmgr, the card stoped working, since the kernel module for it was no longer being loaded.
So I am trying to figure out how to get the SD to work like any other block device, and control it from fstab without needing sdmgr.
Sorry if this has run a bit long, I'm just in a bit of a bind here, since at this rate, I am going to need at least daily backups before I can safely use the Zaurus as a full time PDA.