August 15, 2006

My CF card saga continued

Posted in CF Card Issues, Hardware Adventures at 5:40 pm by sdjf

Okay, remember I bought a generic CF card. But it shows Hyperstone Model 1 on cardctl ident. Hmmm…..might be interesting to google Hyperstone Model 1! Found:

“Basically I want to make work a lucent orinoco card om my laptop. … 2.0 or 2.1 pccard1: CIS info: Hyperstone, Model1 pccard1: Manufacturer code 0x0, …”
lists.freebsd.org/pipermail/freebsd-mobile/2003-August/001409.html

I don’t understand all the output or follow the thread (I have no laptop experience) but maybe it is a lemon they wanted to disguise?

Tried comparing both old cards to new empty card…

Note that I did insert my cf card into it’s slot and that the cf card icon did appear, indicating that it had been properly inserted.

bash# echo Little CF card; fsck.vfat /dev/hda1 Little CF card
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Reclaimed 1 unused cluster (2048 bytes).
Leaving file system unchanged.
/dev/hda1: 202 files, 61087/62772 clusters
bash# echo Big CF card; fsck.vfat /dev/hda1
Big CF card
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
/dev/hda1: 175 files, 62839/62918 clusters
bash# echo New CF card; fsck.vfat /dev/hda1
New CF card
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Read 512 bytes at 0:Input/output error
bash#

bash# cat /mnt/cf/*
bash# ls /mnt/cf/*
/mnt/cf/NotAvailable
bash# mount
/dev/mtdblock0 on / type cramfs (ro)
/proc on /proc type proc (rw)
/dev/ram1 on /dev type minix (rw)
/dev/mtdblock1 on /home type ext2 (rw,sync)
none on /dev/pts type devpts (rw)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw)bash#
bash#

I put the new cf card back in the slot on another day. The icon appears. Then I enter:

bash# echo New CF card; fsck.vfat /dev/hda1
New CF card
dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Read 512 bytes at 0:Input/output error
bash# cardctl insert
ioctl(): Device or resource busy
bash# cardctl eject

The icon disappears as it should.

For the heck of it, try:

bash# umount /mnt/cf
umount: /mnt/cf: Invalid argument
bash#

Okay. Do:

bash# cardctl insert
bash# umount /mnt/cf
umount: /mnt/cf: Invalid argument
bash#

Icon appears but umount won’t work. Try hda1:
bash# umount /mnt/hda1
umount: /home/system/var/mnt/hda1: No such file or directory
bash#

Ah, let’s try changing path:

bash# umount /home/system/var/mnt/cf
umount: /home/system/var/mnt/cf: Invalid argument
bash#

Looked at man page for mount & umount. noauto in fstab could be the prob so changed it to auto.

bash# mount
/dev/mtdblock0 on / type cramfs (ro)
/proc on /proc type proc (rw)
/dev/ram1 on /dev type minix (rw)
/dev/mtdblock1 on /home type ext2 (rw,sync)
none on /dev/pts type devpts (rw)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw)bash# umount /mnt/cf
umount: /mnt/cf: Invalid argument
bash# umount /mnt/hda1
umount: /home/system/var/mnt/hda1: No such file or directory
bash# mount /mnt/cf
Can’t find /usr/mnt.rom/cf in /etc/fstab
bash# mount /mnt/hda1
Can’t find /mnt/hda1 in /etc/fstab
bash# mount /dev/hda1
mount: Mounting /dev/hda1 on /mnt/cf failed: Invalid argument
bash# mount /dev/cf
Can’t find /dev/cf in /etc/fstab
bash# mount /mnt/cf
Can’t find /usr/mnt.rom/cf in /etc/fstab
bash# cat /etc/fstab
/dev/mtdblock0 / cramfs ro 1 1
/dev/ram1 /dev minix defaults 1 2
/dev/mtdblock1 /home ext2 defaults 1 2
/dev/hda1 /mnt/cf auto auto,owner 0 0
/dev/mmcda1 /mnt/card auto noauto,owner 0
0
none /dev/pts devpts gid=5,mode=620 0 0 bash#
bash# mount -a /mnt/cf
mount: Mounting /dev/hda1 on /mnt/cf failed: Invalid argument
bash# mount -a /dev/hda1
mount: Mounting /dev/hda1 on /mnt/cf failed: Invalid argument
bash#

But didn’t work either.

Tried changing fstab to show /usr/mnt.rom/cf but that didn’t work either. :-((

bash# mount /mnt/cf
mount: Mounting /dev/hda1 on /usr/mnt.rom/cf failed: Invalid argument
bash#

So changed auto,owner to ‘defaults’. No luck:

bash# mount /mnt/cf
mount: Mounting /dev/hda1 on /usr/mnt.rom/cf failed: Invalid argument
bash# mount -a /mnt/cf
mount: Mounting /dev/hda1 on /usr/mnt.rom/cf failed: Invalid argument
bash# mount -a /dev/hda1
mount: Mounting /dev/hda1 on /usr/mnt.rom/cf failed: Invalid argument
bash#

Can I use my new cf card with no formatting? It needs some kind of formatting, doesn’t it?

Reliability from formatting the CF is the issue at the moment…what next? I don’t want to move stuff onto it if it won’t be retrievable.

sdjf

Advertisements
%d bloggers like this: