Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-25-2003, 02:37 PM   #1
Registered: Apr 2003
Posts: 47

Rep: Reputation: 15
Question Compact Flash (USB)

OK....I know this has come up time and time again.....

I am completely new to this and I have searched and searched through plenty of forums but I cannot resolve this problem.

I have a Compact Flash Reader connected via USB. I am running Red Hat 8.0 and it is only a recent installation (as I try to come to grips with it). I am upto date on all of the upgrades available from Red Hat.

I have created a directory in the mnt folder as FLASH and entered the following line '/dev/sda1 /mnt/flash vfat noauto,user,fat=12 0 0' into the fstab file.

When I attempt to mount the drive I get the following errors 'mount: wrong fs type, bad option, bad superblock on /dev/sda1, or too many mounted file systems' OR 'mount: /dev/sda1 is not a valid block device'.

I have read in some threads that that messages sometimes indicated no media in the reader - I can assure you there is! The Compact Flash card is a 32MB card from a camera and should therefore I guess be FAT.

As far as I can tell I have the correct USB / SCSI modules loaded.

Help please....this is driving me insane! Thanks.
Old 04-25-2003, 06:32 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Is the flash card formated? If not you will have to format it before you mount it.
Old 04-25-2003, 11:55 PM   #3
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
I'm not sure why you use fat=12 in your options to mount, but it's usually unnecessary because mount will probe for the correct parameters. Also, I always use msdos as the filesystem type because that's actually what my camera formats the card as.

I've noticed that with my USB Compact Flash card reader, I need to try a couple of times because the USB timeout is too low and the device doesn't respond in a reasonable amount of time. There is an option you an give to the kernel that will allow you to give USB a long time out, but that requires a recompile of the kernel (even with this option turned on, the device is still too slow).
Another problem may be your /dev directory. Depending on whether RH starts up with devfs enabled or not (anyone?), you may have to make /dev/sda and /dev/sda1. If devfs is not enabled, you'll have to do something like the following (assuming the special files don't already exist; ls -l /dev/sda*):
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
However, if devfs is enabled, this is unnecessary and the files will disappear on the next boot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Compact flash card reader with XANDROS dkunjeer Linux - Distributions 2 08-08-2004 07:43 AM
USB Compact flash card reader with XANDROS dkunjeer Linux - Newbie 1 08-03-2004 03:07 PM
Attaching USB compact flash reader in Fedora carjumble Linux - Newbie 3 12-27-2003 09:48 PM
Compact Flash Card and USB Lockup... Will anyone believe this? davecs Linux - Hardware 11 07-16-2003 03:35 PM
Making Suse 7.1 see a USB compact flash reader Dave Linux - General 1 04-15-2001 11:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration