From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Jeba Anandhan A <jeba_career@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: USB Device Access
Date: Tue, 19 Oct 2004 16:03:08 +0200 [thread overview]
Message-ID: <20041019140308.GS5033@lug-owl.de> (raw)
In-Reply-To: <20041019112347.93552.qmail@web50608.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]
On Tue, 2004-10-19 04:23:46 -0700, Jeba Anandhan A <jeba_career@yahoo.com>
wrote in message <20041019112347.93552.qmail@web50608.mail.yahoo.com>:
> i have one USB Flash Disk.when i attached to it,linux
> 2.4.20-8 detected it as /dev/sda1.my question,i wish
No, it doesn't. It will detect it as /dev/sda and additionally create a
partition (/dev/sda1) for it).
> to write some raw data and read raw data.it consist
> fat filesystem.how to do it.[shall i need to mount the
> device in some directory].
Well, it depends on what you actually want:
- Raw data in a file inside a partition:
Mount the filesystem of the partition somewhere and open() the file
- Raw data inside the partition:
open() the partition (/dev/sda1 in your case); this'll probably
destroy the filesystem that it contains.
- Raw data directly on the (unpartitioned) device:
open() the device (/dev/sda) and write to it. That will probably
kill the partition table as well as the filesystem in this
partition.
By the way, this isn't really a kernel question, and if it's "urgent",
you'd probably ask your boss to send us some $$ for helping you...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2004-10-19 14:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 11:23 USB Device Access Jeba Anandhan A
2004-10-19 14:03 ` Jan-Benedict Glaw [this message]
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=20041019140308.GS5033@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=jeba_career@yahoo.com \
--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