Results 1 to 10 of 12
hello to all
I want to send a file to a usb mass storage device . can use libusb for this purpose ?how?
if no what can i do?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-27-2012 #1Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
libusb
hello to all
I want to send a file to a usb mass storage device . can use libusb for this purpose ?how?
if no what can i do?
- 08-27-2012 #2
Usb storage devices usually have a filesystem.
Mounting it will provide file access.You must always face the curtain with a bow.
- 08-27-2012 #3Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
my project is a driver and/or program that can send file to mass storage device
can libusb alone help me ?
- 08-27-2012 #4
libusb operates on a lower layer than filesystems.
You can send data to a usb device with libusb, but this is then not a file on that mass storage.You must always face the curtain with a bow.
- 08-27-2012 #5Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
and how can i send file?
- 08-27-2012 #6
Via file operations.
The mass storage device needs to be already mounted at that point.You must always face the curtain with a bow.
- 08-27-2012 #7Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
can you explain more detail?
- 08-27-2012 #8Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
i want write a program that send a file via usb driver
is this posible?
- 08-27-2012 #9
As an example, please adjust to your usecase:
Letīs say, the usb mass storage device (/dev/sdb) is already partioned (/dev/sdb1) and has a filesystem (ext4)
You would then need a directory to server as mountpoint: /mnt/usb
Then mount it.
mount /dev/sdb1 /mnt/usb
Your program can then write to /mnt/usb via the usual systemcalls: open(), write(), etc
if the filesystem permissions allow it.You must always face the curtain with a bow.
- 08-27-2012 #10Just Joined!
- Join Date
- Aug 2012
- Posts
- 7
i am used libusb for send data to usb device in linux how can i retrieval or show data in usb devise?
my usb device is embedded linux board.


Reply With Quote
