OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => OpenZaurus/Opie/Qtopia => Topic started by: tinuviel on October 03, 2004, 06:43:20 pm

Title: compactflash problem
Post by: tinuviel on October 03, 2004, 06:43:20 pm
First off I am using a Zaurus SL-5600.  I am running OpenZaurus Opie.
My problem is when I put my compact flash card in it doesn't seem to be mounting properly.  I cannot access the files on the disk.  
When I plug the card in I get the little icon on the task bar and it says:
Eject card 0: ATA/IDE Fixed Disk

I've been looking for other posts with similar problems, but nothing seems to be of any use.   One site said to change the entry in /etc/fstab from auto to ext and then to # mount -t ext2 /dev/hda /mnt/cf/ or mount -t ext2 /dev/hda1 /mnt/cf/ And to  check Settings/Media file
Another said to try #mount -t vfat /dev/sda1 /mnt/compactFlash or mount -t vfat /dev/hda1

From what i've tried nothing seems to work
I get mount: Mounting /dev/hda on /mnt/cf failed: No such device or address
Can't find /dev/hda1/mnt in /etc/fstab

I'm not really sure what is going on. I was curious if anyone else was having the same problem.

Oh and the compactflash card is a 256mb SanDisk. I has been working just fine on my desktop and my zaurus when I had znergy install. So I don't think the problem is the card.

If anyone could share any words of wisdom that would be most helpful.
Jak-
Title: compactflash problem
Post by: lardman on October 04, 2004, 05:35:17 am
Some serious confusion in your paths.

You have a CF card which is mounted (by Zaurus convention) on /mnt/cf.

The CF card device is /dev/hda, the first partition, which is what you mount, is /dev/hda1

Make sure you are running as root for all of the commands below!

Therefore you should do (this assumes that it can automagically work out the partition type):

# mount /dev/hda1 /mnt/cf

If it can't work out the partition type then do:

# mount -t ext2 /dev/hda1 /mnt/cf
or
# mount -t fat16 /dev/hda1 /mnt/cf
or
# mount -t vfat /dev/hda1 /mnt/cf

depending on what you think the format is.

Assuming the fstab entry is correct, you can also get away with just doing:
# mount /mnt/cf



Si

P.S. Another option is to make sure it's not mounted (just run 'mount' on its own) and then run 'fsck /dev/hda1' to check the filesystem