Re: USB memory stick and flashcard mount failure

2007-01-15 Thread Herb Howe

Thanks to all who responded to my original post. The problem is
apparently that USB memory sticks and flash cards (and probably other
external memory cards) often have unique formatting that is understood
by Windows but not by Linux. The best solution suggested so far (from
Juha Tuuna, shown below) is to zero the device, and then partition and
reformat it. This installs a more standard VFAT format on the device. I
don't have the vfat option for mkfs on my Linux setup so I did the 
zeroing and partitioning with Linux and then the formatting with 
Windows. Devices now work fine with both systems and, for the flash 
card, still work in a Canon Powershot digital camera.


Should note that if the usbmount package is installed, then fstab
doesn't need to be changed and a mount command is not needed. The device
mounts automatically when inserted into the USB port.

This on Debian Sarge plus kernel 2.6.8.

Herb

Juha Tuuna wrote:

On Friday, 12. January 2007 16:47, Herb Howe wrote:

I'm having problems mounting either a memory stick or a flashcard using
Debian, kernel 2.6.8.
...
There are lots of questions on the web about this problem but few simple
answers. If there is a known workable solution online, could someone
supply the URL?

Thanks,
Herb


I had exactly the same problem. I copied the files on the Windows box, 
inserted the stick into the Debian box and zeroed the whole stick

(/dev/sda)
dd if=/dev/zero of=/dev/sda
Then I created a single primary partition with cfdisk on the usb stick
cfdisk /dev/sda
formatted it
mkfs.vfat /dev/sda1
and copied the files back.
At the moment the stick works fine under both Debian and Windows XP. 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: USB memory stick and flashcard mount failure

2007-01-13 Thread John W. Foster
On Friday 12 January 2007 12:01 pm, Wayne Topa wrote:
 Herb Howe([EMAIL PROTECTED]) is reported to have said:
  I'm having problems mounting either a memory stick or a flashcard using
  Debian, kernel 2.6.8.
 
  Here's the setup:
 
  Line from lsusb with usb memory stick inserted:
  Bus 004 Device 002: ID 08ec:0008 M-Systems Flash Disk Pioneers
 
  Line in fstab:
  /dev/sda1 /mnt/memstick vfat user,noauto,rw 0 0
 
  Mount command:
  mount /mnt/memstick

 Try mount -t vfat /dev/sda1 /mnt

 Never had a problem with any of the 12 flash drives I've tried.

 HTH=Hope This Helps, YMMV=Your Mileage May Vary, HAND=Have A Nice Day

 WT

 --
 A printer consists of three main parts: the case, the jammed paper
 tray and the blinking red light.
 ___
FWIW: My usb stick did not mount as sda* because I was mounting it in a card 
reader of several slots. My hardware management system decided that each slot 
was sde* so check you syslog output  look at the output of dmesg.

What about SD chips from cameras. I have been struggling with one of those for 
a month or so, off  on. I was getting the same message as Herb's stick, from 
the SD chip. It also works fine in XP, so I am assuming there is no problem 
with the card. BTW: it also shows a FAT system. I am using an I-DOT card 
reader  my usb sticks work fine so I think its in my configs. Any ideas will 
be appreciated.
Thanks!
-- 
John W. Foster


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: USB memory stick and flashcard mount failure

2007-01-13 Thread Wayne Topa
John W. Foster([EMAIL PROTECTED]) is reported to have said:
 FWIW: My usb stick did not mount as sda* because I was mounting it in a card 
 reader of several slots. My hardware management system decided that each slot 
 was sde* so check you syslog output  look at the output of dmesg.
 
 What about SD chips from cameras. I have been struggling with one of those 
 for 
 a month or so, off  on. I was getting the same message as Herb's stick, from 
 the SD chip. It also works fine in XP, so I am assuming there is no problem 
 with the card. BTW: it also shows a FAT system. I am using an I-DOT card 
 reader  my usb sticks work fine so I think its in my configs. Any ideas will 
 be appreciated.
 Thanks!

Have you tried running fdisk on it?  Does it see the SD chip? Have you
googled for an answer?

If you have the kernel source, I don't, you might look through the
Documentation directory for some mention of SD cards.  There may be a
kernel option for them(?).  I have never tried reading SD cards
myself.


BTW Take a look at the Netiquette thread.  I am subscribed to this
list and have no need of a Cc.  Thanks

Wayne

-- 
I haven't lost my mind; it's backed up on tape somewhere.
___


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: USB memory stick and flashcard mount failure

2007-01-13 Thread Dave Patterson
on Fri, Jan 12, 2007 at 06:47:41AM -0800 Herb Howe mumbled:
 I'm having problems mounting either a memory stick or a flashcard using
 Debian, kernel 2.6.8.
 
 Here's the setup:
 
 Line from lsusb with usb memory stick inserted:
 Bus 004 Device 002: ID 08ec:0008 M-Systems Flash Disk Pioneers
 
 Line in fstab:
 /dev/sda1 /mnt/memstick vfat user,noauto,rw 0 0
 
 Mount command:
 mount /mnt/memstick
 
 Error message from mount command:
 wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage
 or other error
 
 Output from dmesg | tail
 Buffer I/O error on device sda1, ...  (several such messages)
 FAT: invalid media value (0xb9)
 VFS: Can't find a valid FAT filesystem on dev sda1.
 
 This occurs with both a Memorex Traveldrive and a Compact Flashcard in a
 Flashcard-to-USB adapter. Both devices work fine with Windows XP which
 also verifies that a FAT filesystem is on these devices.
 
 The only advice I've found online is to reformat the USB devices. But
 these are devices from other people that I cannot reformat.
 
 Is there something I can add to the fstab line or the mount command to
 recognize the vfat file system on the USB devices?
 
The problem with the TravelDrive is the proprietary format Memorex
uses for their idiot software. They've basically built a little static
filesystem within a filesystem there that behaves like a live CD when
it loads on a windows box - this is marketing bs for selling
proprietary software.

You might try mountint that little portion of the drive first to get
it accounted for, then mounting the data portion in another location.

I bought two of the damn things without realizing, and played hell for
awhile until I found this out.  But they were mine, so I zero'd 'em
and slapped ext2 on.  Great ever since.

Cheers,

Dave


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: USB memory stick and flashcard mount failure

2007-01-12 Thread Andrew Perrin

What's the output of (as root):

fdisk -l /dev/sda

Also, what happens in /var/log/syslog when you insert the device?

ap

--
Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
Assistant Professor of Sociology; Book Review Editor, _Social Forces_
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
New Book: http://www.press.uchicago.edu/cgi-bin/hfs.cgi/00/178592.ctl



On Fri, 12 Jan 2007, Herb Howe wrote:


I'm having problems mounting either a memory stick or a flashcard using
Debian, kernel 2.6.8.

Here's the setup:

Line from lsusb with usb memory stick inserted:
Bus 004 Device 002: ID 08ec:0008 M-Systems Flash Disk Pioneers

Line in fstab:
/dev/sda1 /mnt/memstick vfat user,noauto,rw 0 0

Mount command:
mount /mnt/memstick

Error message from mount command:
wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage
or other error

Output from dmesg | tail
Buffer I/O error on device sda1, ...  (several such messages)
FAT: invalid media value (0xb9)
VFS: Can't find a valid FAT filesystem on dev sda1.

This occurs with both a Memorex Traveldrive and a Compact Flashcard in a
Flashcard-to-USB adapter. Both devices work fine with Windows XP which
also verifies that a FAT filesystem is on these devices.

The only advice I've found online is to reformat the USB devices. But
these are devices from other people that I cannot reformat.

Is there something I can add to the fstab line or the mount command to
recognize the vfat file system on the USB devices?

There are lots of questions on the web about this problem but few simple
answers. If there is a known workable solution online, could someone
supply the URL?

Thanks,
Herb


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject 
of unsubscribe. Trouble? Contact [EMAIL PROTECTED]






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: USB memory stick and flashcard mount failure

2007-01-12 Thread Juha Tuuna
On Friday, 12. January 2007 16:47, Herb Howe wrote:
 I'm having problems mounting either a memory stick or a flashcard using
 Debian, kernel 2.6.8.
 ...
 There are lots of questions on the web about this problem but few simple
 answers. If there is a known workable solution online, could someone
 supply the URL?

 Thanks,
 Herb
I had exactly the same problem. I copied the files on the Windows box, 
inserted the stick into the Debian box and zeroed the whole stick (/dev/sda)
dd if=/dev/zero of=/dev/sda
Then I created a single primary partition with cfdisk on the usb stick
cfdisk /dev/sda
formatted it
mkfs.vfat /dev/sda1
and copied the files back.
At the moment the stick works fine under both Debian and Windows XP. 

-- 
-=[JT]=-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: USB memory stick and flashcard mount failure

2007-01-12 Thread Wayne Topa
Herb Howe([EMAIL PROTECTED]) is reported to have said:
 I'm having problems mounting either a memory stick or a flashcard using
 Debian, kernel 2.6.8.
 
 Here's the setup:
 
 Line from lsusb with usb memory stick inserted:
 Bus 004 Device 002: ID 08ec:0008 M-Systems Flash Disk Pioneers
 
 Line in fstab:
 /dev/sda1 /mnt/memstick vfat user,noauto,rw 0 0
 
 Mount command:
 mount /mnt/memstick

Try mount -t vfat /dev/sda1 /mnt

Never had a problem with any of the 12 flash drives I've tried.

HTH=Hope This Helps, YMMV=Your Mileage May Vary, HAND=Have A Nice Day

WT

-- 
A printer consists of three main parts: the case, the jammed paper
tray and the blinking red light.
___


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]