Author Topic: Ejecting Sd Card  (Read 3129 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ejecting Sd Card
« on: August 15, 2006, 01:37:07 am »
Is there an applet or anything that lets you unmount a SD safely before it is ejected? There is an applet which allows you to do that for the CF and internal micdrodrive, but no option for the SD card. I would think that just popping the SD card out would be dangerous so what to do to eject it?
This is on a C3000 with OZ 3.5.4.1 OPIE
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

pakman

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Ejecting Sd Card
« Reply #1 on: August 15, 2006, 06:45:09 am »
I tried OZ/Opie recently, and this was one reason why I abandoned it. I didn't think that it would be such a big deal at first, but I was surprised by how quickly it became incredibly annoying.
If you want to safely remove your SD card, open a console and type the command:
Quote
umount /media/sdcard
or wherever the SD card is mounted - I've forgotten where at the moment, but the command:
Quote
df
will tell you.
Regards,
P.
Now: Gemini 4G/Android. Previously: Zaurus C760/Cacko lite 1.23

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ejecting Sd Card
« Reply #2 on: August 15, 2006, 07:17:14 am »
This is odd, as the opie card applet used to list cards in both the SD and CF slots (of all types, not just storage cards). This is either a bug in the applet itself, or perhaps the SD card is mounted sync so it doesn't require explicit umounting and the applet knows this...?


Si
« Last Edit: August 15, 2006, 07:17:50 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ejecting Sd Card
« Reply #3 on: August 15, 2006, 08:10:06 am »
I understand there are two applets: pcmcia-applet and opie-cardmon, the former only handles CF cards, the latter does both.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ejecting Sd Card
« Reply #4 on: August 15, 2006, 08:11:58 am »
Quote
This is odd, as the opie card applet used to list cards in both the SD and CF slots (of all types, not just storage cards). This is either a bug in the applet itself, or perhaps the SD card is mounted sync so it doesn't require explicit umounting and the applet knows this...?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138678\"][{POST_SNAPBACK}][/a][/div]

The applet shows both the external CF and the internal MicroDrive, but not the SD. This is annoying as you can easily unmount the incorrect card, ie the internal MicroDrive and the system would then lock up.
The SD card is indeed mounted with the sync option, but so is the CF card. It took over an hour to copy 100MB from the CF to the SD until I noticed the sync option for both were enabled and once I took out the sync option, the files transferred in minutes...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

poushag

  • Newbie
  • *
  • Posts: 7
    • View Profile
Ejecting Sd Card
« Reply #5 on: August 15, 2006, 11:31:08 pm »
Meanie,
This may not be much of a solution but it works for me.  I only eject the SD to transfer backups I keep there to my workstation via a cardreader.  And this is not very frequent since most of the time I can copy them over samba.  But in any case, what I do is suspend the Z and then pop out the SD and use it with the cardreader.  Then when I'm done I put it back and wake up the Z.  Kinda low tech but effective (unless you have some reason you need the Z while the SD is out).  I only have one SD and it's big enough for all my Z stuff that doesnt fit on flash.  So this is fine for me.
SL-5500 (Collie) running OZ Opie 3.5.4.x
1GB CF for flashing Hentges ROMs and cardfs images
256MB SD parted [fat][ext2] for [backups][Opie-cardfs+apps] currently
Netgear MA701 (aka Ambicom) CF for wifi
http://wiki.openzaurus.org/Collie/TipsAndTricks
Click the above link to see my HowTo for OZ Opie install on Collie.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ejecting Sd Card
« Reply #6 on: August 15, 2006, 11:53:20 pm »
Quote
Meanie,
This may not be much of a solution but it works for me.  I only eject the SD to transfer backups I keep there to my workstation via a cardreader.  And this is not very frequent since most of the time I can copy them over samba.  But in any case, what I do is suspend the Z and then pop out the SD and use it with the cardreader.  Then when I'm done I put it back and wake up the Z.  Kinda low tech but effective (unless you have some reason you need the Z while the SD is out).  I only have one SD and it's big enough for all my Z stuff that doesnt fit on flash.  So this is fine for me.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138751\"][{POST_SNAPBACK}][/a][/div]

I am just being pedantic because I already had to replace my 4GB SD card twice. I found that after unmounting it, I still needed to wait at least 5-10 seconds before it is safe to eject it. OZ by default uses the sync option, but this makes the card so incredibly slow. I have many SD cards, and usually I leave them in my Z all the time. I use samba to transfer files via usb cable/ethernet or wifi depending on where I am but sometimes, I also need to quickly pop out the SD card to transfer files between my Zs and/or my other laptops. I found the SanDisk USB plus to be an excellent SD card for that.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ejecting Sd Card
« Reply #7 on: August 16, 2006, 08:32:59 am »
Quote
I understand there are two applets: pcmcia-applet and opie-cardmon, the former only handles CF cards, the latter does both.

Install the latter and use it....


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ejecting Sd Card
« Reply #8 on: August 16, 2006, 09:14:44 am »
Quote
Quote
I understand there are two applets: pcmcia-applet and opie-cardmon, the former only handles CF cards, the latter does both.

Install the latter and use it....


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138797\"][{POST_SNAPBACK}][/a][/div]

actually, I tried that but it shows 2 CF cards, the microdrive and the external cf but no SD
i filed a bug, well, i filed several ones while i was at it...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ejecting Sd Card
« Reply #9 on: August 16, 2006, 10:09:23 am »
Quote
actually, I tried that but it shows 2 CF cards, the microdrive and the external cf but no SD sad.gif
i filed a bug, well, i filed several ones while i was at it...

Ah, okay. Thanks for filing the bug.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva