August 13, 2006

Difficulty umounting CF card

Posted in CF Card Issues, Hardware Adventures at 3:27 pm by sdjf

According to the how-to for my distro at oesf,

http://www.oesf.org/index.php?title=Step-by-step_CF/SD_fdisk/formatting_for_newbies

the first step in formatting a card is to umount the card, but it doesn’t seem to work on any of my cf cards!

First tried with new card after did ls -l for the heck of it. Then tried umount and a bunch of guesses:

bash# ls -l /mnt/cf
lrwxrwxrwx 1 root root 15 Dec 31 2001 /mnt/cf -> /usr/mnt.rom/cf
bash# ls -l /mnt/cf/
-rw-rw-r-- 1 root root 0 Aug 13 00:41 NotAvailable
bash# umount /mnt/cf
umount: /mnt/cf: Invalid argument
bash# umount /mnt/cf/
umount: /mnt/cf/: Invalid argument
bash# umount /mnt/card
bash# umount /mnt/hda1
umount: /home/system/var/mnt/hda1: No such file or directory
bash# umount /usr/mnt.rom/cf
umount: /usr/mnt.rom/cf: Invalid argument
bash#

So tried with my old cf card:

bash# umount /mnt/cf
bash#

umount accepted the command, but didn’t unmount it, at least I don’t think so because the CF card icon still showed in my taskbar.

So, I went off to find the man page for umount.

Umount, btw, works fine on the new SD card:

bash# ls -l /mnt/card; umount /mnt/card
lrwxrwxrwx 1 root root 17 Dec 31 2001 /mnt/card -> /usr/mnt.rom/card
bash#

SD card icon disappeared like it should have.

Man page suggests -f and looking at /etc/mtab:

bash# umount /mnt/cf
umount: /mnt/cf: Invalid argument
bash# umount -f /mnt/cf
umount: forced umount of (null) failed!
bash# ls -l /etc/mtab
lrwxrwxrwx 1 root root 12 Dec 31 2001 /etc/mtab -> /proc/mounts
bash# ls -l /proc/mounts
-r--r--r-- 1 root root 0 Aug 13 01:09 /proc/mounts
bash#

Ugh!

Advertisements
%d bloggers like this: