Author Topic: CF card lost, almost... Help!  (Read 3640 times)

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
CF card lost, almost... Help!
« on: January 19, 2004, 02:32:00 pm »
Now I\'ve gone and done it... After getting the wireless working, samba working, shares working, and being very happy, I go to plug in my CF card to install some new stuff and the add/remove installer won\'t see the CF card.
A little more checking: Backup see the card but says it can\'t find how much free space is available so it won\'t let me back up to the card. Software that I have installed on the card run. I can see the card in /mnt/cf and /home/samba/CF_Card. I manually installed a package from konsol from the cf card. I can mount and eject the crad. My cf network card still works.
Doesn\'t look like a hardware problem. But either something happened to the card, or I messed something up in trying to get samba working?
Again, if anyone can offer some advice on what to do or where to look, I\'d much appreciate it. And, aren\'t there any \"chkdsk\" type programs for the Z?

How do you folks put up with us newbies? ;-)
Thanks!
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
CF card lost, almost... Help!
« Reply #1 on: January 19, 2004, 05:43:20 pm »
Quote
And, aren\'t there any \"chkdsk\" type programs for the Z?

fsck. But if you can access it using Konsole this is probably not the problem. On the off chance that you want to try anyway:

# umount /mnt/cf
# fsck /dev/hda1
# mount /mnt/cf

Should do the trick.

Perhaps try restarting Qtopia from the Shutdown applet?


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

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
CF card lost, almost... Help!
« Reply #2 on: January 19, 2004, 08:34:58 pm »
thanks for that info. Apparently fsck only works on linux formatted media and it complained about the card\'s format. But I did plug the card into a pc card reader and ran diskdoctor on it. Windows says its fine... And it does mount & unmount just fine. I justr can\'t see it in install/remove, sys info and some others...
I did notice when I entered the mount command, it says:
/dev/hda1 on /usr/mny.rom/cf type vfat (rw,noatime)
The sd card is similar, but does not have the \"noatime\" Is that meaningful? Or do I just have some system config messed up?
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
CF card lost, almost... Help!
« Reply #3 on: January 19, 2004, 08:56:19 pm »
noatime means not to update the last file access time (saves wear & tear on the card).  IIRC, the SD card doesn\'t have this option set by default & I had to modify the config to turn it on.

Back to your original problem...  See if my answer in this thread helps:
http://www.zaurus.com/dev/board/index.php?...?showtopic=4210

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
CF card lost, almost... Help!
« Reply #4 on: January 19, 2004, 09:24:55 pm »
YES, THANKYOU!!!

mtab was certainly a true file, and did not have an entry for the cf card. I followed your instructions to delete it and create a link. Rebooted and tested the cf card mounting & unmounting and my wireless card, back to the cf card. Looks like everything is back to normal. I did get a scare when the network wouldn\'t connect. But second try worked. Never had a failure before. But as long as it works, I\'m happy.
Thanks again!
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
CF card lost, almost... Help!
« Reply #5 on: January 19, 2004, 10:24:59 pm »
Ummm, okay. It\'s not quite that fixed yet. I can switch cards and connect to my network with no problems. But if I mount/unmount the share on my pc, mtab goes back to a file.
I just tried a few combinations. The only thing that makes mtab go back to a file is my script that contains the line:
sudo smbumount /home/zaurus/Documents/mypc

Don\'t know why that would affect it?
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
CF card lost, almost... Help!
« Reply #6 on: January 19, 2004, 10:40:05 pm »
Maybe fixed for good? I noticed in the script example offer by Tehas (thank you!) that he used the umount command and not smbumount. So I thought I\'d try it in my script. Well, it makes everything work. I mounted, unmounted, swtiched cards and did just about everything I could think of. The linked mtab held it\'s place and I had no problem with either the CF card of my samba  mounts. Of course I have no idea why smbumount causes the problem, but umount works and seems to cause no problems. So it looks like I\'m fixed... until next time ;-)
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF