Author Topic: Multi-partition Sd + Cacko File Manager  (Read 4299 times)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Multi-partition Sd + Cacko File Manager
« 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?
« Last Edit: August 08, 2006, 04:42:58 am by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

njefferies

  • Newbie
  • *
  • Posts: 29
    • View Profile
Multi-partition Sd + Cacko File Manager
« Reply #1 on: August 08, 2006, 05:37:10 am »
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...

Code: [Select]
#!/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?).
Current: HP Omnibook 300, Dell XPS 13 Dev Edition, Samsung Tab S 8.4, GPD Pocket
Past: Compaq Concerto, Palm III, TRG Pro, Handera 330, Omnibook 600, AST Ascentia J30, Omnibook 800CT, Palm Tungsten T, Lifebook B2154, Zaurus SL-C1000, Lifebook U810

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Multi-partition Sd + Cacko File Manager
« Reply #2 on: August 08, 2006, 06:30:16 am »
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!
« Last Edit: August 08, 2006, 06:34:56 am by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

njefferies

  • Newbie
  • *
  • Posts: 29
    • View Profile
Multi-partition Sd + Cacko File Manager
« Reply #3 on: August 08, 2006, 11:40:04 am »
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.
Current: HP Omnibook 300, Dell XPS 13 Dev Edition, Samsung Tab S 8.4, GPD Pocket
Past: Compaq Concerto, Palm III, TRG Pro, Handera 330, Omnibook 600, AST Ascentia J30, Omnibook 800CT, Palm Tungsten T, Lifebook B2154, Zaurus SL-C1000, Lifebook U810

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Multi-partition Sd + Cacko File Manager
« Reply #4 on: August 08, 2006, 12:43:09 pm »
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!
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

njefferies

  • Newbie
  • *
  • Posts: 29
    • View Profile
Multi-partition Sd + Cacko File Manager
« Reply #5 on: August 09, 2006, 06:37:56 am »
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.
Current: HP Omnibook 300, Dell XPS 13 Dev Edition, Samsung Tab S 8.4, GPD Pocket
Past: Compaq Concerto, Palm III, TRG Pro, Handera 330, Omnibook 600, AST Ascentia J30, Omnibook 800CT, Palm Tungsten T, Lifebook B2154, Zaurus SL-C1000, Lifebook U810

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Multi-partition Sd + Cacko File Manager
« Reply #6 on: August 10, 2006, 11:58:39 am »
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?
« Last Edit: August 10, 2006, 12:12:17 pm by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

new2006

  • Newbie
  • *
  • Posts: 9
    • View Profile
Multi-partition Sd + Cacko File Manager
« Reply #7 on: August 23, 2006, 04:14:57 pm »
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.
« Last Edit: August 23, 2006, 04:24:55 pm by new2006 »