OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Umount The Sd Card Before Removing?, Or does Cacko handle that?
PaulBx1
post Mar 30 2006, 01:08 PM
Post #1





Group: Members
Posts: 41
Joined: 26-February 06
Member No.: 9,234



In my current primitive understanding, if I have Meanie's automounter I can pop the sd in and out with abandon. However it is less clear to me if Cacko handles that task too, by itself. It does print an "eject" message when I pull it out. But is that telling me, "Stupid, you should have done umount first, your card contents are not guaranteed now?" blink.gif

Just wondering if I'm courting disaster. Oh, I used Mazlovsky's mem app to make a swap on the card too. I imagine I ought to turn that off as well <sigh>
Go to the top of the page
 
+Quote Post
Jon_J
post Mar 30 2006, 01:54 PM
Post #2





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



Yes, Cacko 1.23 full and Lite both take care of mounting/unmounting SD & CF cards.
When I remove my SD, I get a message in the middle of the screen:
"Now updating information"
Taskbar says:
"Ejected SD/MMC"

When I insert my SD, I get a message in the middle of the screen:
"Now updating information"
Taskbar says:
"New Card: SD/MMC"

Inserting a CF card:
Taskbar says:
New Card: ATA/IDE fixed disk

Removing a CF card:
Taskbar says:
Ejected: ATA/IDE fixed disk

C3100 & Cacko Lite
Go to the top of the page
 
+Quote Post
Ferret-Simpson
post Mar 30 2006, 04:04 PM
Post #3





Group: Members
Posts: 573
Joined: 8-June 05
Member No.: 7,295



Surely that still risks frying the FAT table?
Go to the top of the page
 
+Quote Post
Meanie
post Mar 30 2006, 05:08 PM
Post #4





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Ferret-Simpson @ Mar 31 2006, 10:04 AM)
Surely that still risks frying the FAT table?
*


on any computer system, it is always a bad idea to pull out the disk without first unmounting it. never pull out the card while there is disk activity. on an idle disk, it may be ok depending whether you have mounted using synchronouse/asynchonous i/o, but generally speaking, always unmount the card before you eject it.

both sharp and cacko distro mount the cf and sd card automatically when they are inserted (and if they are fat). they also unmount them if you use the card applet to do so.

what i have done for sharp distro is to also unmount loop devices and swapfile on the cf/sd card before unmounting the disk when you use the cf/sd applet. i think, cacko does that for you when you use the card applet, cant remember.

can someone who has cacko 1.23 please provide me with the output of the mount command? i want to know the default mounts on cacko.
Go to the top of the page
 
+Quote Post
Jon_J
post Mar 30 2006, 06:12 PM
Post #5





Group: Members
Posts: 1,843
Joined: 31-December 05
From: Illinois USA
Member No.: 8,821



with SD card inserted
CODE
# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
/proc on /proc type proc (rw)
/dev/ram1 on /dev type minix (rw)
/dev/loop0 on /usr type squashfs (ro)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /hdd1 type ext3 (ro,noatime)
/dev/hda2 on /hdd2 type ext3 (rw,noatime)
/dev/hda3 on /hdd3 type vfat (rw,noatime)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw,noatime)


With SD & CF card inserted:
CODE
# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
/proc on /proc type proc (rw)
/dev/ram1 on /dev type minix (rw)
/dev/loop0 on /usr type squashfs (ro)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /hdd1 type ext3 (ro,noatime)
/dev/hda2 on /hdd2 type ext3 (rw,noatime)
/dev/hda3 on /hdd3 type vfat (rw,noatime)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw,noatime)
/dev/hdc1 on /usr/mnt.rom/cf type vfat (rw, noatime)
Go to the top of the page
 
+Quote Post
PaulBx1
post Mar 31 2006, 11:39 AM
Post #6





Group: Members
Posts: 41
Joined: 26-February 06
Member No.: 9,234



QUOTE
both sharp and cacko distro mount the cf and sd card automatically when they are inserted (and if they are fat). they also unmount them if you use the card applet to do so.


Ah, you still have to manually (with the applet) unmount first? Hmmm, good to know. blink.gif

I was thinking there might be some way for the O/S to know you were removing the card, e.g. a signal that goes true when pushing the card in to release it, before it actually came out, thus giving it time to unmount things first. This would be consistent with the need to make consumer devices idiot-proof. But I guess there could be no such thing with CF cards, since they just pull out? (I have none at the moment so don't know.)

But you are telling me it is not idiot-proof, so I will have to stop acting like an idiot. Darn! biggrin.gif

It would be good to know if swap file and loop devices get taken care of by Cacko using the applet, too. But then if I figured out how to get automounter going I wouldn't care...

<later>
I tried "ejecting" the sd card with the applet, and it told me the eject failed. I then did a umount of /dev/loop1 (X/Qt cramfs) and tried the applet again, and it worked. So it looks like it is all manual, you have to go to a console and clean up loop and probably swap first, then eject. <sigh> Oh, well, looks like I have even more incentive to get automounter working.
Go to the top of the page
 
+Quote Post
bam
post Mar 31 2006, 12:54 PM
Post #7





Group: Members
Posts: 1,213
Joined: 9-June 05
From: Gobi Desert, Mongolia
Member No.: 7,306



just write a simple script to handle all those things then tie it to keyhelpers shortcut/menu stuff.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd August 2014 - 03:29 AM