From: Jonathan Corbet <corbet@lwn.net>
To: gen-lists@blueyonder.co.uk
Cc: linux-kernel@vger.kernel.org
Subject: Re: Problems accessing USB Mass Storage
Date: Tue, 17 Sep 2002 12:15:13 -0600 [thread overview]
Message-ID: <20020917181513.9217.qmail@eklektix.com> (raw)
Don't know if this is helpful or not, but, based on my messing around with
SmartMedia USB stuff...
SmartMedia cards are weird in that they have a (seemingly) random amount of
waste space at the beginning of the card. Your 8MB card, in particular,
has nothing of interest in the first 25 sectors. Some cards have a
reasonable partition table in the first sector, and some don't. Modern
Windows systems (and cameras, of course) seem to be able to access the
filesystem on the card without needing to see a partition table.
A little while I posted a Lexar SmartMedia driver patch which hacked around
this by substituting a fake partition table when the first sector was read.
I'm not sure it's the right solution, though. A better way, perhaps, is a
little user-space program which writes the appropriate partition table
depending on the card capacity. Note that fdisk doesn't (easily) work for
this purpose, since it wants partitions to start on cylinder boundaries.
You might try just using dd to copy your card to disk with an offset of 25
sectors, and see of you can mount the resulting image.
Then again, the interface to some SmartMedia readers is vastly more
complicated, as the sddr09 driver shows.
jon
Jonathan Corbet
Executive editor, LWN.net
corbet@lwn.net
next reply other threads:[~2002-09-17 18:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-17 18:15 Jonathan Corbet [this message]
2002-09-17 18:22 ` Problems accessing USB Mass Storage Randy.Dunlap
2002-09-17 19:46 ` Mark C
2002-09-17 20:12 ` jbradford
2002-09-17 21:21 ` Jonathan Corbet
2002-09-17 19:50 ` Thomas Dodd
2002-09-17 19:58 ` Matthew Dharm
2002-09-17 20:13 ` Thomas Dodd
2002-09-17 21:13 ` [Linux-usb-users] " Mark C
2002-09-17 21:40 ` Thomas Dodd
2002-09-17 21:51 ` Mark C
2002-09-17 21:58 ` Rogier Wolff
2002-09-17 22:17 ` Thomas Dodd
2002-09-17 22:23 ` Randy.Dunlap
2002-09-18 9:28 ` Andries Brouwer
2002-09-18 9:22 ` Andries Brouwer
-- strict thread matches above, loose matches on Subject: below --
2002-09-17 11:25 Mark C
2002-09-17 15:18 ` Greg KH
2002-09-17 17:37 ` Thomas Dodd
2002-09-17 17:46 ` Greg KH
2002-09-17 18:06 ` Richard B. Johnson
2002-09-17 20:09 ` Thomas Dodd
2002-09-17 21:01 ` Mark C
2002-09-17 21:43 ` Rogier Wolff
2002-09-17 22:04 ` Thomas Dodd
2002-09-17 22:21 ` Patrick Mansfield
2002-09-17 22:51 ` Mark C
[not found] ` <mailman.1032306001.9987.linux-kernel2news@redhat.com>
2002-09-18 1:37 ` Pete Zaitcev
2002-09-18 6:01 ` Rogier Wolff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020917181513.9217.qmail@eklektix.com \
--to=corbet@lwn.net \
--cc=gen-lists@blueyonder.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox