Author Topic: 4gb Cf Card Mounts Ro, Bogus Directories  (Read 5477 times)

Retief

  • Newbie
  • *
  • Posts: 14
    • View Profile
4gb Cf Card Mounts Ro, Bogus Directories
« on: January 27, 2007, 03:08:34 pm »
I'm having a bit of a problem with a 4GB CF card on my Zaurus (SL-C860, Sharp ROM 1.40 JP, with tweaks for English).

Files written to the card on a Windows system appear ok on the Z, but so do a myriad of empty directories with bizarre names like "", "....", "fghijlkm.nop", and many with non-ASCII characters.  I cannot remove them because the card gets mounted read-only, according to "mount".

I figured I'd reformat the card as Fat16 on the Z, but that's not going well:

Code: [Select]
: su
: mkfs.vfat -F 16 /dev/hda1
mkfs.vfat: /dev/hda1 contains a mounted file system
: umount /dev/hda1
umount: /dev/hda1: Device or resource busy
: umount -f /dev/hda1
umount: forced umount of /dev/hda1 failed!
Mind you, the only app running is Qkonsole, and the cwd is /, so why it's "busy" I'm not sure.

Ok, now what?  Is there any point in editing /etc/fstab to force the mount to be rw?  Or maybe I need to comment out the /mnt/cf entry in /etc/fstab, reboot, reformat, uncomment, reboot?

Surely there's a better way...

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
4gb Cf Card Mounts Ro, Bogus Directories
« Reply #1 on: January 28, 2007, 05:46:53 pm »
isn't the card mounted by the hotplug scripts and not what's in /etc/fstab?

you can always try remounting thus
  mount -o remount /dev/hda1

I would check that the card is correctly partitioned, this seems to be a common problem with windows, formatting the card as a whole and not using a partition. use "fdisk /dev/hda".

not sure why you can't unmount it... the Z doesn't have "lsof"?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.