OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: danboid on August 08, 2006, 04:41:14 am
-
I've got a 4GB SD card and in order for HancomSheet to be able to save files to it correctly I had to partition it into 1GB and 3GB fat32 partitions. When I stick it into KDE on my PC it opens two windows, one for each partition but under the Cacko file manager it only automatically mounts/finds the 1st (1GB) partition.
Is there a way to get Cacko to automount the second (3GB) partition too?
-
Here's what I did...
/etc/sdcard/SD_mem_ctrl is used by the sd card manager to mount/dismount cards (not, it appears, /etc/sdcontrol) - so my lazy approach was...
Make 2 copies of /etc/sdcard/sd_mem_ctrl as /etc/sdcard/sd_mem_ctrl1 and ...ctrl2.
Edit ...ctrl2 to change MOUNT_POINT, SMB_MOUNT, STAB_FILE and STORAGE_PIC_FILE to /mnt/card2, ...SD_Card2, ...stab2, ...usbdstorage2.pib
Edit sd_mem_ctrl to be...
#!/bin/sh
ACTION=$1
OPTION=$2
/etc/sdcard/SD_mem_ctrl1 $ACTION $OPTION
/etc/sdcard/SD_mem_ctrl2 $ACTION $OPTION
Copy /var/lib/sdcard/stab to /var/lib/sdcard/stab2
Edit /var/lib/sdcard/stab2 and change the device to mmcda2
Restart sd service or reboot
This is a bit ugly but easy to back out since original files are untouched.
I did the same thing with /etc/sdcontrol but I'm not sure this is used by Cacko (leftover from Sharp ROM?).
-
Thanks for those instructions njefferies- I did everything you said but it hasn't worked for me. Nothing happens after making those modifications, rebooting and inserting an SD- I don't even get the 1st partition showing up
When you said:
---------------------
Edit sd_mem_ctrl to be...
#!/bin/sh
ACTION=$1
OPTION=$2
/etc/sdcard/SD_mem_ctrl1 $ACTION $OPTION
/etc/sdcard/SD_mem_ctrl2 $ACTION $OPTION
---------------------------
I take it that you mean that is all you have for the entire contents of that file, instead of meaning insert
/etc/sdcard/SD_mem_ctrl1 $ACTION $OPTION
/etc/sdcard/SD_mem_ctrl2 $ACTION $OPTION
after OPTION=$2 and leave the rest of the file intact (which is not what I did)? My sd_mem_ctrl ended up only containing what you had in the code box but I've backed up the original thankfully.
There is a file called /etc/sdcontrol under Cacko- what modifications did you make to this? I might need to do the same.
If anybody else tries this out I need to point out that you need to have an SD card inserted before you do the last two steps which were
Copy /var/lib/sdcard/stab to /var/lib/sdcard/stab2
Edit /var/lib/sdcard/stab2 and change the device to mmcda2
or else there are no values in the stab file
I hope Anton includes support for partitioned SD and CF cards in his stable cacko release for C3k when it finally gets released as this is trickier than I expected!
-
Sorry, case problems.
The "SD_mem_ctrl" should be "sd_mem_ctrl" since the new sd_mem_ctrl just invokes the previous one (sd_mem_ctrl1) for the first partition and then the modified one (sd_mem_ctrl2) for the second partition.
Having the upper case SD in meant that neither script was called - hence no mounting.
/etc/sdcontrol is very nearly identical to sd_mem_ctrl so the same trick applies.
-
Well spotted!
I changed the case of the SDs of SD_mem_ctrl1/2 in sd_mem_ctrl, rebooted and now it finds the first partition but no sign of the 2nd.
I've not made any changes to /etc/sdcontrol . If you modified yours could you kindly paste it in this thread please!
What about /etc/sdcard/sd.conf? Might I need to add another device entry in there?
Thanks!
-
Gah! I remember now - you can't just create the stab file since it is generated by the driver (or not, in the case of the second partition) and is wiped when the system reboots. So I did something else in sd_mem_ctrl2...
I'll get back to you on that one when I've had a look - probably just hardcoded the DEVICE - UGLYYYYYYY!.
For /etc/sdcontrol - if you look at the file it is very similar in structure to sd_mem_ctrl. So do the same thing - make 2 copies, update the second one and then modify the original to run the two copies in sequence.
For /etc/sdcard/sd.conf - the contents seem to be used to generate the stab file - but adding a /dev/mmcda2 section doesn't result in anything changing.
-
Thanks! I eagerly await further instruction. Even better would be if you could just do me a tarball and mail it to allcoms die-evil-spamlords@eternalpain@ gmail.com
So are you running a Sharp ROM then? How big is your SD card and how is it partitioned?
-
Hi,
I did not try to mount during the boot the extra slices on my SD-card, but is it not easier just insert the mount string at the end of the "start" section in the file "/etc/init.d/sd" ? And, sure, umount in "stop" section.
Sorry, if it is so stupid, I am a novice in Zaurus. But it looks more natural. Of course better is to edit the "/etc/fstab", but it is more dangerous, IMHO.