Author Topic: Unable To Detect Files On Memory Cards  (Read 9495 times)

jeevandras

  • Newbie
  • *
  • Posts: 21
    • View Profile
Unable To Detect Files On Memory Cards
« on: September 28, 2006, 12:00:31 pm »
Hi,
I am still pretty new with my zaurus and linux trying to figure a lot out.

I m running OZ 3.5.4.1 Kernel 2.6.16 and Opie 1.2.1 on a C860.

I find that when I transfer a file from my XP through a card reader to my CF or SD card and then plug the card onto my Z, I don't see these files.

However, when I reboot Z, the files finally appear and whatever changes i have made on my cards are shown on my File Manager.

Does anybody know why this is happening? Do I need to reboot everytime I copy files over. I assume this has something to do with mounting the device. Is there someting I should do 1st before i plug and unplug my card.

I appreciate any advice you can give. Thanks!

Jeev
OZ 3.5.4.1
Kernel 2.6.16
Opie 1.2.1
on a Z C860

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Unable To Detect Files On Memory Cards
« Reply #1 on: September 28, 2006, 12:06:42 pm »
It sounds like the zaurus isn't unmounting the card when you remove it.  Is there some program you installed on the card or a swap file enabled or something that could be preventing that?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

jeevandras

  • Newbie
  • *
  • Posts: 21
    • View Profile
Unable To Detect Files On Memory Cards
« Reply #2 on: September 28, 2006, 12:23:47 pm »
Quote
It sounds like the zaurus isn't unmounting the card when you remove it.  Is there some program you installed on the card or a swap file enabled or something that could be preventing that?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142568\"][{POST_SNAPBACK}][/a][/div]


Thanks Xaminder.
Actually the cards I have came with the Zaurus I bought. The previous owner has some files still located in it. I have not dared to remove them yet till i know what are they for or if my Z is dependant on them. How can I tell?
I see files like initrd.bin, updater.sh and tools.tar. Along with a few release text files. I assume it may be safe to remove them, no?

How do I tell its swap file enabled?

Thanks again! Appreciate any advice.

Jeev
OZ 3.5.4.1
Kernel 2.6.16
Opie 1.2.1
on a Z C860

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Unable To Detect Files On Memory Cards
« Reply #3 on: September 28, 2006, 12:48:02 pm »
well, those files can just be deleted.  They are update files that the previous owner probably used to give your zaurus a fresh install.  In fact, if you received your zaurus with a fresh install then you can delete everything on the card.  I would format it in windows (as fat) just to make sure the card is sane.

what rom is your zaurus using?  cacko?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unable To Detect Files On Memory Cards
« Reply #4 on: September 28, 2006, 12:59:48 pm »
Quote
I find that when I transfer a file from my XP through a card reader to my CF or SD card and then plug the card onto my Z, I don't see these files.

However, when I reboot Z, the files finally appear and whatever changes i have made on my cards are shown on my File Manager.

Are you talking about the doc tab, or the proper file manager here?

Check the output of 'mount' in the terminal after you insert the card to check that it has been mounted.


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

jeevandras

  • Newbie
  • *
  • Posts: 21
    • View Profile
Unable To Detect Files On Memory Cards
« Reply #5 on: September 28, 2006, 02:29:15 pm »
Quote
Quote
I find that when I transfer a file from my XP through a card reader to my CF or SD card and then plug the card onto my Z, I don't see these files.

However, when I reboot Z, the files finally appear and whatever changes i have made on my cards are shown on my File Manager.

Are you talking about the doc tab, or the proper file manager here?

Check the output of 'mount' in the terminal after you insert the card to check that it has been mounted.


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

Thanks Si and Xamindar,
I was just wondering, should the CF card be unmounted everytime I unplug it from my Z and remounted when I replug it?

I have reformatted the CF card with FAT on my XP. And then plugged it on Z and mounted on for example /media/cf by calling mount /dev/hda  /media/cf

Then I suspend my Z and unplugged my CF card. Plugged it onto my XP copied a test file onto it. And unplugged it from XP and replugged it onto Z. Turn my Z on looked at the 'proper' File Manager software on Opie and went into the /media/cf but didn't find the file I copied over. The Z shows that CF is mounted on /media/cf

However, I then umount /media/cf and remount the CF onto /media/cf again and I see the transferred file!

I assume that there is an unmounting and remounting of the CF that needs to be carried out whenever i unplug and replug my CF but doesn't seem to be carried out.

Any idea what I can do?

Btw, how do I find out what ROM i have installed. The information I can gather so far from my Z is shown in my signature below. Is my ROM version one of them?

Sorry I am a newbie!

Once again, thanks for your advice.

Jeev
OZ 3.5.4.1
Kernel 2.6.16
Opie 1.2.1
on a Z C860

brashley46

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://brashley46.no-ip.info
Unable To Detect Files On Memory Cards
« Reply #6 on: September 29, 2006, 01:59:52 am »
jeevandras, I don't run OZ, rather CACkO 1.23; but I don't think it's a good idea generally to just pull out a memory card (or a camera or wifi card, for that matter) without unmounting it first. In CACkO there's a little icon on the taskbar which I can touch and bring up the mounted cards ... if I hit on the mounted card it will "eject" it (unmount it). Much easier than running a command I might mistype. Is there no GUI for this on Opie?

Quote
Quote
Quote
I find that when I transfer a file from my XP through a card reader to my CF or SD card and then plug the card onto my Z, I don't see these files.

However, when I reboot Z, the files finally appear and whatever changes i have made on my cards are shown on my File Manager.

Are you talking about the doc tab, or the proper file manager here?

Check the output of 'mount' in the terminal after you insert the card to check that it has been mounted.


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

Thanks Si and Xamindar,
I was just wondering, should the CF card be unmounted everytime I unplug it from my Z and remounted when I replug it?

I have reformatted the CF card with FAT on my XP. And then plugged it on Z and mounted on for example /media/cf by calling mount /dev/hda  /media/cf

Then I suspend my Z and unplugged my CF card. Plugged it onto my XP copied a test file onto it. And unplugged it from XP and replugged it onto Z. Turn my Z on looked at the 'proper' File Manager software on Opie and went into the /media/cf but didn't find the file I copied over. The Z shows that CF is mounted on /media/cf

However, I then umount /media/cf and remount the CF onto /media/cf again and I see the transferred file!

I assume that there is an unmounting and remounting of the CF that needs to be carried out whenever i unplug and replug my CF but doesn't seem to be carried out.

Any idea what I can do?

Btw, how do I find out what ROM i have installed. The information I can gather so far from my Z is shown in my signature below. Is my ROM version one of them?

Sorry I am a newbie!

Once again, thanks for your advice.

Jeev
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142581\"][{POST_SNAPBACK}][/a][/div]
B. Ross Ashley
http://brashley46.livejournal.com
http://brashley46.no-ip.info
Home desktops: Hewlett-Packard Kayak XM600 running Xandros Desktop Home Edition Premium (4.1), on a P3 Coppermine processor w/ 20G harddrive, 256 MB RAM; Abyss X2 server running on a local shop-built special with Intel Celeron 1.8GHz processor, 40G harddrive running Win XP Home SP2; and my wife's eMac running OS X3.9

Handheld: C860 running CACkO 1.23, with a Panasonic Class 2 1G SD card and a GXT 1G CF card; AmbiCom WL1100C-CF wifi card, and a CE-AG06 camera card.

jeevandras

  • Newbie
  • *
  • Posts: 21
    • View Profile
Unable To Detect Files On Memory Cards
« Reply #7 on: September 29, 2006, 08:41:26 pm »
Quote
jeevandras, I don't run OZ, rather CACkO 1.23; but I don't think it's a good idea generally to just pull out a memory card (or a camera or wifi card, for that matter) without unmounting it first. In CACkO there's a little icon on the taskbar which I can touch and bring up the mounted cards ... if I hit on the mounted card it will "eject" it (unmount it). Much easier than running a command I might mistype. Is there no GUI for this on Opie?

Quote
Quote
Quote
I find that when I transfer a file from my XP through a card reader to my CF or SD card and then plug the card onto my Z, I don't see these files.

However, when I reboot Z, the files finally appear and whatever changes i have made on my cards are shown on my File Manager.

Are you talking about the doc tab, or the proper file manager here?

Check the output of 'mount' in the terminal after you insert the card to check that it has been mounted.


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

Thanks Si and Xamindar,
I was just wondering, should the CF card be unmounted everytime I unplug it from my Z and remounted when I replug it?

I have reformatted the CF card with FAT on my XP. And then plugged it on Z and mounted on for example /media/cf by calling mount /dev/hda  /media/cf

Then I suspend my Z and unplugged my CF card. Plugged it onto my XP copied a test file onto it. And unplugged it from XP and replugged it onto Z. Turn my Z on looked at the 'proper' File Manager software on Opie and went into the /media/cf but didn't find the file I copied over. The Z shows that CF is mounted on /media/cf

However, I then umount /media/cf and remount the CF onto /media/cf again and I see the transferred file!

I assume that there is an unmounting and remounting of the CF that needs to be carried out whenever i unplug and replug my CF but doesn't seem to be carried out.

Any idea what I can do?

Btw, how do I find out what ROM i have installed. The information I can gather so far from my Z is shown in my signature below. Is my ROM version one of them?

Sorry I am a newbie!

Once again, thanks for your advice.

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


Thanks Brashley.
I guess I figure what I was doing wrong. What you said was true. What I was doing is turning my zaurus off i.e. suspending it and then unplugging the cards. When I remove a card at such a manner, the OS is not aware of what happened. So when I turn Z on again, it still assumes the card is plugged in and does not update its file system. That explains why any changes I made to my card's content is not shown when i replug it in. However, when I reboot, the OS goes and remount the card, hence updating the filesystem as a result.
Great learning something new everytime I try to do something with this Z!!
However, to add... I have attempted to mount my cf card to a folder /media/cf using the command line it successfully mounts /dev/hda to that folder. However, whenever I remove the card (this time after unmounting it properly) and then replug it onto my Z, now.. instead of mounting the cf card to /media/cf, Z goes and automatically mount it on /media/hda. I assume it must be that there is somewhere I need to specify that Z should keep mounting my cf card onto my /media/cf folder everytime I plug it back in. Do you know how do I do this?

Anyway, next task... trying to get a video player running on my Z. At the moment my Z is still an expensive paper weight! Any idea on how to get one installed on OZ with a user interface that would work on Opie?

Once again, many thanks for your help. Deeply appreciated.



Jeev
OZ 3.5.4.1
Kernel 2.6.16
Opie 1.2.1
on a Z C860

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unable To Detect Files On Memory Cards
« Reply #8 on: October 01, 2006, 11:45:06 am »
Quote
for example /media/cf by calling mount /dev/hda /media/cf

You should partition the card really and then mount:

mount /dev/hda1 /media/cf

Though if that's the way Windows formats it, then so be it.

Quote
I guess I figure what I was doing wrong. What you said was true. What I was doing is turning my zaurus off i.e. suspending it and then unplugging the cards. When I remove a card at such a manner, the OS is not aware of what happened. So when I turn Z on again, it still assumes the card is plugged in and does not update its file system. That explains why any changes I made to my card's content is not shown when i replug it in. However, when I reboot, the OS goes and remount the card, hence updating the filesystem as a result.

You may also lose data as writes to the card can be cached (depending on the mount options, i.e. sync) and if you suspend while data is still cached and hasn't been written, it won't be.

Quote
Anyway, next task... trying to get a video player running on my Z. At the moment my Z is still an expensive paper weight! Any idea on how to get one installed on OZ with a user interface that would work on Opie?

Opie mediaplayer 2 is an option, though I think mplayer covers a better range of file-types. Not sure about the GUI for mplayer though.


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