Author Topic: 2.2GB Magicstor microdrive, shows up as 2GB. partition?  (Read 8837 times)

avel

  • Newbie
  • *
  • Posts: 20
    • View Profile
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« on: January 12, 2004, 03:29:49 pm »
I have just bought a 2.2GB Magicstor microdrive but only 2GB are available. i was wondering if the Zaurus would still read the microdrive if one partition is FAT while the other 200mb is ext2.   I would try it but my battery for the Zaurus still hasn\'t shipped.

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #1 on: January 13, 2004, 03:15:47 am »
Is 200 MB really going to matter when you\'ve got 2000 MB already?

So long as the first partition is set as primary and bootable and FAT16 it should boot fine, you can try creating a new partition with the rest if you feel you\'re experienced enough.

If it doesn\'t work you can just reformat the entire thing as FAT16
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

Anonymous

  • Guest
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #2 on: January 13, 2004, 03:21:24 am »
Hi,
I also just bought the 2,2gb microdrive.
I created a fat32 partition as hda1 and a ext2 as hda2 (the fat16 or vfat partition was put on HDA1 because apparently  my CF reader cannot see it otherwise!    )

I updated /etc/fstab and they are both available.
The only problem I have now is that hda1 (on 7mnt/cf) is mounted automatically when I insert the card or I resume, while hda2 (on mnt/cf2) must be mounted manually every time!

Has anyone an idea on how I can tell the Z to mount the second partition automatically too?
I am using TKCRom1 on my SL5500

Thanks,
Ciao,
Adalberto

m1rk0

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #3 on: January 13, 2004, 04:43:31 am »
Does anyone know if cameras still except such a card if it has multiple partitions on it (including ext2s)?

Mirko

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #4 on: January 13, 2004, 06:24:15 am »
Quote
Has anyone an idea on how I can tell the Z to mount the second partition automatically too? 
I am using TKCRom1 on my SL5500
Hack /etc/pcmcia/ide and ide.opts as they control the automatic mounting of CF memory cards.

I would have thought you could just format the entire card as FAT32 as that supports up to 2 terabyte partitions.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Anonymous

  • Guest
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #5 on: January 13, 2004, 06:33:49 am »
Thank you Tumnus.

The reason why I did the split (as much as I do not like it either) was essentially due to the fact that:
1) I cannot create symlinks to a vfat 32 partition, ie I cannot install progams on it and I cannot test the embeddedDebian distribution
2) Explore2FS, the program that let you access ext2 partitions from windows allows me to view them but not to write on hem (using it from WinXP).

If I could solve one of these 2 issues, I would be more than happy to have one partition only (ext2 preferred, as I am not using the microdrive for my digital camera).

Adalberto

avel

  • Newbie
  • *
  • Posts: 20
    • View Profile
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #6 on: January 13, 2004, 01:41:11 pm »
Thank you all. And the reason I haven\'t though about fat32 is that it isn\'t as efficient as fat16, or so I can remember. Something about the cluster size. But yeah, if I really need that extra 200mb ill format I guess. And Foxdie, your right I got to know how to do it first. But again thanks for all of your help. And amdonati, you should register as a user, you obviously know more then me about linux.

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #7 on: January 14, 2004, 03:16:36 am »
Avel, thank you for your faith in my linux knowledge, but unfortunately it is not that good!    

I gave a look at the /etc/pcmcia/ide and ide.opts files, but my scripting skills are not good enough (let\'s say they are almost not existant!:oops:)  to hack them.

My understanding is that ide.opts has the info for automounting the second CF partition, bbut I do not know how to modify it.
If someone would be so kind to give me some guidance on that (I do not need to have it seen as a samba share, I would only like to have hda2 automounted) would be really appreciated!

Thank you,
Adalberto

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #8 on: January 14, 2004, 05:01:54 am »
If you can manage to open /etc/pcmcia/ide.opts in a text editor, this should be a quick fix:

1. change *,*,*,1) to *,*,*,*)
2. change PARTS=\"1\" to PARTS=\"1 2\"

My CF card is not multi-partition, so you should back up ide.opts, back up your Zaurus and brace for the worst before you try it. The worst that can happen is that your Zaurus will freeze when you insert or eject the card. You should then reboot without a card and restore ide.opts.

Hope this helps.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #9 on: January 14, 2004, 08:19:06 am »
It worked!!!!  

The only problem is that both partitions are mounted on the same directory (/mnt/card) and so I can only see the second mounted one!

Could someone help me in doing this final change in order to see both partitions?

Here is my actual /etc/pcmcia/ide.opts:
Code: [Select]
# ATA/IDE drive adapter configuration

#

# The address format is "scheme,socket,serial_no[,part]".

#

# For multi-partition devices, first return list of partitions in

# $PARTS.  Then, we\'ll get called for each partition.

#

case "$ADDRESS" in

*,*,*,+)

    #INFO="Sample IDE setup"

    #DO_FSTAB="y"; DO_FSCK="y"; DO_MOUNT="y"

    #FSTYPE="msdos"

    #OPTS=""

    FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    #MOUNTPT="/mnt/ide"

    DO_MOUNT="y"

    #FSTYPE="vfat"

    MOUNTPT="/mnt/cf"

   ;;

*,*,*)

    PARTS="1 2"

    # Card eject policy options

    NO_CHECK=n

    NO_FUSER=n

   ;;

esac


Thank you very much!
Ciao,
Adalberto

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #10 on: January 15, 2004, 03:32:15 am »
Ok, I tried to hack a bit with ide.opts, in order to see if I can mount my 2 partitions in 2 different mount points!  

Here is my last version of ide.opts:
Code: [Select]
# ATA/IDE drive adapter configuration

#

# The address format is "scheme,socket,serial_no[,part]".

#

# For multi-partition devices, first return list of partitions in

# $PARTS.  Then, we\'ll get called for each partition.

#

case "$ADDRESS" in

*,*,*,1)

    #INFO="Sample IDE setup"

    #DO_FSTAB="y"; DO_FSCK="y"; DO_MOUNT="y"

    #FSTYPE="msdos"

    #OPTS=""

    FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    #MOUNTPT="/mnt/ide"

    DO_MOUNT="y"

    #FSTYPE="vfat"

    MOUNTPT="/mnt/cf"

   ;;

*,*,*,2)

    OPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    DO_MOUNT="y"

    FSTYPE="ext2"

    MOUNTPT="/mnt/cf2"

   ;;

*,*,*)

    PARTS="1 2"

    # Card eject policy options

    NO_CHECK=n

    NO_FUSER=n

   ;;

esac


This mounts correctly hda1 in /mnt/cf, but does not see hda2!
Am I on the right way and I ma only writing something uncorrectly, or I am making my life too difficult and it would be enough adding a line o the original scripts I posted yesterday?

A hint would be really appreciated!
Thanks,
Adalberto

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #11 on: January 15, 2004, 05:30:14 am »
You might want to check that /mnt/cf and /mnt/cf2 have the same ownership and permissions. Nothing else comes to mind, your ide.opts setup seems fine.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #12 on: January 15, 2004, 06:00:44 am »
Apparently yes. the only different is that /mn/cf is symlinked to /usr/mnt.rom/cf while cf2 is a real directory
Here is the suer/permissions for my mount points:
Code: [Select]
[root@zaurus ~]# ls -la /mnt/

drwxrwxr-x    4 root     root         1024 Jan 11 16:01 .

drwxrwxr-x   10 root     root         1024 Jan  1  2002 ..

lrwxrwxrwx    1 root     root           17 Jan  1  2002 card -> /usr/mnt.rom/card

lrwxrwxrwx    1 root     root           15 Jan  1  2002 cf -> /usr/mnt.rom/cf

drwxrwxrwx    2 root     root         1024 Jan 11 16:01 cf2

drwxrwxr-x    2 root     root         1024 Apr 26  2003 ide

lrwxrwxrwx    1 root     root           16 Jan  1  2002 net -> /usr/mnt.rom/net


Adalberto

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #13 on: January 22, 2004, 04:08:56 am »
I tried to go on with my \"fight\" with the microdrive, but now I ma at a standpoint. I tried various solutions but for different reasons noone works!  
Here is the status as of today:
1) My mount points (/mnt/cf and /mnt/cf2) are ok, I can have IDE.OPTS mount /dev/hda1 on both without problems and I can manually mount /dev/hda2 on each of them.
2) If I try the \"easy way\":
Code: [Select]
case "$ADDRESS" in

*,*,*,*)

    #INFO="Sample IDE setup"

    #DO_FSTAB="y"; DO_FSCK="y"; DO_MOUNT="y"

    #FSTYPE="msdos"

    #OPTS=""

    FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    #MOUNTPT="/mnt/ide"

    DO_MOUNT="y"

    #FSTYPE="vfat"

    MOUNTPT="/mnt/cf"

   ;;

*,*,*)

    PARTS="1 2"

    # Card eject policy options

    NO_CHECK=n

    NO_FUSER=n

   ;;

esac


both partitions are mounted, but unfortunately on the same mount point, so I can only see the second one (/dev/hda2)!

3) If I try the \"long way\":
Code: [Select]
case "$ADDRESS" in

*,*,*,1)

    #INFO="Sample IDE setup"

    #DO_FSTAB="y"; DO_FSCK="y"; DO_MOUNT="y"

    #FSTYPE="msdos"

    #OPTS=""

    FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    #MOUNTPT="/mnt/ide"

    DO_MOUNT="y"

    #FSTYPE="vfat"

    MOUNTPT="/mnt/cf"

   ;;

*,*,*,2)

    OPTS="-o noatime,quiet,umask=000,iocharset=utf8"

    DO_MOUNT="y"

    FSTYPE="ext2"

    MOUNTPT="/mnt/cf2"

   ;;

*,*,*)

    PARTS="1 2"

    # Card eject policy options

    NO_CHECK=n

    NO_FUSER=n

   ;;

esac


partition 1 is mounted in /mnt/cf, partition 2 is not seen at all!  

I really do not know how to proceed. Option 2 (the easy way), seem more promising, as at least it mounts the partitions, but maybe it is a deadway.
Option 3 (he long way), seem more correct but does not work!

Could someone suggest me how to proceed or what to try?

Thank you,
Ciao,
Adalberto

Anonymous

  • Guest
2.2GB Magicstor microdrive, shows up as 2GB. partition?
« Reply #14 on: January 27, 2004, 12:02:38 pm »
Did you try to echo \"$ADDRESS\" in the script to see if the variable contains the value you expect?

-brad