Help - Search - Members - Calendar
Full Version: Mounting Cf Storage Card
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Angstrom & OpenZaurus
malcolmxavier
I have a SimpleTech 256M storage card (which I used to install OZ and Opie) and now I can't seem to mount it. If I put it in the Zaurus sees it as aATA/IDE Fixed Disk.

If I do a mount it doesn't show up, so I tried to self mount it using:
mount /dev/hda1 /medai/cf

With the following error:
mount: Mounting /dev/hda1 on /media/cf failed: Invalid argument

If I look at the /etc/fstab I see:
/dev/hda1 /media/cf auto defaults,sync,noauto,noatime,user,exec,suid,gid=100,umask=0002 0 0

I tried it using the -t fat option with teh same results.

What am I doing wrong? It's a FAT16 formatted card (I tried reformatting it as FAT32 with the same results)

-John
malcolmxavier
QUOTE(malcolmxavier @ Jun 14 2005, 10:33 AM)
What am I doing wrong?  It's a FAT16 formatted card (I tried reformatting it as FAT32 with the same results)

*



I figured it out (sort of).

If I hand mount it using
mount -t vfat /dev/hda /mnt/cf
it seems to work. I can't seem to get it to work by editing anything in ftab and auto mounting when I insert the card. This is good enough for now, but if anyone has any suggestions on getting it to automount, I am hear to listen.


Thanks in advance!
-John
davr
QUOTE(malcolmxavier @ Jun 16 2005, 05:34 AM)
QUOTE(malcolmxavier @ Jun 14 2005, 10:33 AM)
What am I doing wrong?  It's a FAT16 formatted card (I tried reformatting it as FAT32 with the same results)

*



I figured it out (sort of).

If I hand mount it using
mount -t vfat /dev/hda /mnt/cf
it seems to work. I can't seem to get it to work by editing anything in ftab and auto mounting when I insert the card. This is good enough for now, but if anyone has any suggestions on getting it to automount, I am hear to listen.


Thanks in advance!
-John
*



i have the same exact problem
i have oz 3.5.3 on a sl5500 and using a 1gb kingston card
only difference is i formatted as ext2

but it doesnt automount, and if i just try
mount /media/cf
i get the same Invalid Argument error.
i can do
mount /dev/hda1 /media/cf
and it works, but its a bit of a pain, because it gets unmounted on every suspend (dont get me started on the suspend/hang bug)
markj541
QUOTE(davr @ Jun 24 2005, 10:22 AM)
QUOTE(malcolmxavier @ Jun 16 2005, 05:34 AM)
QUOTE(malcolmxavier @ Jun 14 2005, 10:33 AM)
What am I doing wrong?  It's a FAT16 formatted card (I tried reformatting it as FAT32 with the same results)

*


I figured it out (sort of).

If I hand mount it using
mount -t vfat /dev/hda /mnt/cf
it seems to work. I can't seem to get it to work by editing anything in ftab and auto mounting when I insert the card. This is good enough for now, but if anyone has any suggestions on getting it to automount, I am hear to listen.

Thanks in advance!
-John
*



i have the same exact problem
i have oz 3.5.3 on a sl5500 and using a 1gb kingston card
only difference is i formatted as ext2

but it doesnt automount, and if i just try
mount /media/cf
i get the same Invalid Argument error.
i can do
mount /dev/hda1 /media/cf
and it works, but its a bit of a pain, because it gets unmounted on every suspend (dont get me started on the suspend/hang bug)
*



I think the answer is in the file "/etc/pcmcia/ide_automount". If you have a version of "tail" (located in /usr/bin) instead of using the one built-in busybox, then I may have the answer. I found that the version in busybox supports the syntax "tail -2", where it means output the last 2 lines. A different version of tail (which I think is part of coreutils), only supports a syntax such as "tail -n 2". In the ide_automount file, there is a line where it is trying to get the partition from dmesg. The line looks like this:
PARTS="`dmesg | tail -2 | grep $DEVICE | grep -v ide-cs | tail -1 | sed s/^.*\:\ //`"
I made a backup of this file, then changed it to look like this:
PARTS="`dmesg | tail -n 2 | grep $DEVICE | grep -v ide-cs | tail -n 1 | sed s/^.*\:\ //`"
Once I did, the CF card would automount correctly. When it works correctly, the command will set the variable PARTS with the partition value for the CF card, such as "hda1".

I'm not sure which package installs the "/etc/pcmcia/ide_automount" file, but it should probably use the "tail -n 2" type format, since that seems to work for all versions of tail.

Let me know if that solves your problem.
Mark
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.