LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-01-2005, 06:28 PM   #1
enrico14569
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Posts: 5

Rep: Reputation: 0
USB flash card reader in Mandrake 10.1


Hi,
I need to read from a CompactFlash card in an external card reader. I have been trying to followig the instructions found in another thread, but even though the device appears in the list of devices, it fails to be mounted. the messagge says something like "wrog block mount". I have also tryied with a differt device, replacing the multicard reader with a pendrive, but the outcome is the same. I quote here the instructions I followed:

"
Forum: Linux - Hardware
Thread: how to cofigure USB flash drive?
wrangler Hi,
Can anyone give pointers or links which explain how to configure portable usb flash drives. I have mandrake 10.1

thanks,
Sen
db391 If you mean getting them to work, that means adding a line to your /etc/fstab:

Code:
/dev/sda1 /mnt/usb1 vfat user,noauto,rw,sync,noexec 0 0
Also mkdir /mnt/usb and KDE (or gnome) will add the USB (sda1) to the devices.
wrangler thanks for that but in: /dev/sda1 /mnt/usb1 vfat user,noauto,rw,sync,noexec 0 0 should it be sda1 or ...
rpz I have no experience of flash drives in Mandrake, but in Fedora, the drives appear under /dev/sdaN, where N is not constant (for example, right now my USB drive is /dev/sda4). I prefer to use hald to automount them when plugged in (they pop up on the desktop just like in winxp/osx). This daemon takes care of all the hassle with fstab lines. This is default in Fedora, in mandrake you might have to install it yourself.
LJSBrokken Anyone any idea why some flash drives work well, while others seem not to be recognised?
fstab line is
Code:
/dev/sda1 /mnt/usbflash vfat noauto,user,owner,uid=1000 
0 0
Cheers, Leon.
[edit] Running Slack current, kernel 2.4.29
"

As anybody a clue to fix it?

Enrico
 
Old 10-01-2005, 09:55 PM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
I'm not trying to nag or be rude, but the exact error message is critical because there are many deviations of "wrong block" when it comes to mounting devices. It is even possible that you need to reconfigure your kernel with "Codepage 437 (United States, Canada)" and "NLS ISO 8859-1 (Latin 1: Western European Languages)" support, as described in the Gentoo Wiki about mounting USB devices.

Are you able to mount the device with the simple command (as root)
Code:
mount /dev/sda1 /mnt/usbflash
 
Old 10-02-2005, 09:23 AM   #3
enrico14569
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you very much for your reply.

[The error message was: mount/dev/sda1 in not a valid block device]

Anyway I have got a partial victory:
I have successfully monted the drive not using your instructions, but throught the commandline, but this is only a partical victory since I wish to see the content of a compactflash card in a multicard reader and this doen't work. It works with my pendrive only. Do you have any clue how to fix it with the multicard reader. The model is Trust 725 usb 2 card reader/writer pro.

TI quote from the commmand line: [
root@localhost mnt]# mount /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device
[root@localhost mnt]# mount /dev/sda /mnt/usb
[root@localhost mnt]# mount /dev/sda /mnt/usb
mount: /dev/sda already mounted or /mnt/usb busy
mount: according to mtab, /dev/sda is already mounted on /mnt/usb
]

Note that sda1 doesn't work, sda works (in the hardware list I also see sda, sdb, sdc sdd, according to 4 drive in the multicard reader when it is connected to the computer, only sda appears when the pendrive isconnected)

And this is the commandline when I try to read from the multicard reader, a compactflash card should be in the sda drive:

[
[root@localhost mnt]# mount /dev/sda /mnt/usb
mount: special device /dev/sda does not exist
[root@localhost mnt]#
]

The last few lines of fstab file now appears like this:

[
fstab
dev/hda2 /mnt/win_f ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0
/dev/sdb1 /mnt/removable auto umask=0,user,iocharset=iso8859-1,sync,kudzu,codepage=850,noauto,exec,users 0 0
]


Do you have any clue on how to make the card reader work?

Thank you
regards

Enrico
 
Old 10-02-2005, 10:40 AM   #4
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
Initialy, I am curious about one thing: Did you unmount the previous USB drive before putting the card reader in?

If they are both permanently attached, they won't both exist on sda. You said that you have sda, sdb, sdc, and sdd; sda would be the drive you successfully mounted. sdb would be what you have in your fstab under /mnt/removable, I don't know what sdc or sdd are. The output of
Code:
fdisk -l
as root could be of some help here, it lists the current devices attached to your computer that can be mounted. I'm guessing that either you didn't unmount with
Code:
umount /dev/sda
or that they are both attached at the same time and the card reader is on a different SCSI device (sd?).
 
Old 10-02-2005, 07:57 PM   #5
enrico14569
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry for opening similarly titled thread in two different categories, I wasn't sure about the right category. I know now this is not allowed.

Quote:
Originally posted by flower.Hercules
Initialy, I am curious about one thing: Did you unmount the previous USB drive before putting the card reader in?
Yes of course, I have never connected the pendrive and the card reader at the same time. I have also tried to start from the card reader.

If they are both permanently attached, they won't both exist on sda. You said that you have sda, sdb, sdc, and sdd; sda would be the drive you successfully mounted. sdb would be what you have in your fstab under /mnt/removable, I don't know what sdc or sdd are. The output of
Code:
fdisk -l
as root could be of some help here, it lists the current devices attached to your computer that can be mounted. I'm guessing that either you didn't unmount with
Code:
umount /dev/sda
or that they are both attached at the same time and the card reader is on a different SCSI device (sd?).
When I connect the pendrive, sda appears in the hardware list, by conctrast, when I do attach the card reader, sda, sdb, sdc, and sdd appear in the hardware list instead.
Likewise in windows xp, when I do attach the pendrive, letter I is assigned, while if connect the card reader instead, letters K, L, M and N are assigned to the corresponding card slots for different memory card types accepted by the card reader. The content of compactflash cards is available in letter K.

I have also tried to mount sdb, then sdc and sdd, the error message is no media present, but If I put an SD card in its slot, it is not read anyway.

Regards
 
  


Reply


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
Configuring USB flash card reader in Mandrake 10.1 enrico14569 Linux - Newbie 3 10-02-2005 01:31 PM
USB Flash card reader probs Randomcasualty Linux - Hardware 15 08-09-2005 09:20 PM
JFFS2 on USB Card Reader Flash Denes Linux - Hardware 1 07-14-2005 02:41 PM
Need a little help getting USB flash card reader to work Electrode Linux - Hardware 13 10-20-2003 05:04 PM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 10:37 AM


All times are GMT -5. The time now is 02:53 AM.

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