On Wed, 3 Jan 2007, Minuk Choi wrote:

> I'm not having much luck... so maybe I should rephrase.
> 
>     Anyone know of any programs which allows you to read "every" sector 
> of a USB storage(usb floppy)?  If I can get the usb device to read a 
> certain sector, I can figure out how to make the usb's stepper motor to 
> turn...

"dd" will allow you to read every sector:

        dd if=/dev/sda of=/dev/null

However I think what you want is to read a specific sector, not "every" 
sector.  For that you can use the PLscsi program, available from

        http://members.aol.com/plscsi/linux/

The command to issue is:

        plscsi -x '8 0 aa bb 1 0' -i 512 /dev/sg0

where 0xaabb is the hexadecimal representation of the sector number to 
read.  This assumes that you have the "sg" module loaded and that the 
floppy drive corresponds to /dev/sg0; you can easily make any appropriate 
modifications.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to