On 5/29/07, Yongsheng Yang <[EMAIL PROTECTED]> wrote: > > Thanks! You are right. > > But I still have one question: > When I plugin a compact flash card to the USB adaptor, the Slax will create > sdb,sdb1,sdb2,sdb5,sdb6. Five files in /dev directory. (The compact flash > has Linux OS which is used to boot system and total size is 64M) > And I write a Java program to read these files byte by byte, the total size > (sdb1+sdb2+sdb5+sdb6) is bigger than 64M. > That means some files are created duplicated?
I have no idea, but this is certainly completely unrelated to javax.usb. You should investigate some Linux documentation. > > I really don't know how the mounting process in Slax. And I don't know the > first(start) byte physical location(in sdb1 or sdb6?). > > Any one can give me some information how the sdb1 created? Again, you are on the wrong mailing list. This list is for javax.usb. > > Regard > > > ----- Original Message ---- > From: Dan Streetman <[EMAIL PROTECTED]> > To: Yongsheng Yang <[EMAIL PROTECTED]> > Cc: javax-usb-devel@lists.sourceforge.net > Sent: Monday, May 28, 2007 8:17:42 AM > Subject: Re: [javax-usb-devel] Read USB device > > Unless you want to implement the entire USB mass storage layer, you > don't want to use javax.usb to read your block device. You should > instead just use normal file I/O, like a FileReader or some other > reader. For example: > > FileReader reader = new FileReader(new File("/dev/sdb1")); > reader.read(buffer, offset, length); > > On 5/26/07, Yongsheng Yang <[EMAIL PROTECTED]> wrote: > > > > Hi: > > > > After USB key inserted, the new drive will be mounted as sdb1_removable (I > > am using Slax). > > I want to use javax-usb API to read the block device (/dev/sdb1) byte by > > byte and calculate the CRC byte. > > There is any sample Java code for this purpose? > > > > Thanks! > > > > > > ________________________________ > > Looking for a deal? Find great prices on flights and hotels with Yahoo! > > FareChase. > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > javax-usb-devel mailing list > > javax-usb-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > > > > > > ________________________________ > Shape Yahoo! in your own image. Join our Network Research Panel today! ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel