usb-drive

How to perform low-level IO with a USB flash drive under the BIOS (compared to a floppy)?

老子叫甜甜 提交于 2020-01-31 10:18:11
问题 I have recently been studying some bootstrap code which was intended for use with a floppy drive. My goal is to modify the program so that it uses my USB flash drive. Now I see how the INT 13H function has been used with the floppy device, but I guess my question is, how will communicating with the USB drive differ? For example, here is a snippet of the floppy code (GNU assembler): movb $0x00,%dl /* select 1st floppy */ /* later */ movw sec,%cx /* get sector number */ movw head,%dx /* get

How to perform low-level IO with a USB flash drive under the BIOS (compared to a floppy)?

你说的曾经没有我的故事 提交于 2020-01-31 10:18:10
问题 I have recently been studying some bootstrap code which was intended for use with a floppy drive. My goal is to modify the program so that it uses my USB flash drive. Now I see how the INT 13H function has been used with the floppy device, but I guess my question is, how will communicating with the USB drive differ? For example, here is a snippet of the floppy code (GNU assembler): movb $0x00,%dl /* select 1st floppy */ /* later */ movw sec,%cx /* get sector number */ movw head,%dx /* get

Android Things filesystem

北城以北 提交于 2020-01-13 20:43:09
问题 I am building this app on android things. I want to be able to give it access to media files on a USB stick or maybe even the raspberry pi's SDcard. I don't know what I'll have it do with those files yet but I just wanna know if its possible. If it isn't that's fine I have other solutions but I figured I would start with the obvious approach first. 回答1: I'm didn't try it, but seems it's possible by the same way as in normal Android OS. To do this You should mount Your USB dongle into the

WinAPI calls to access USB storage which has no drive letter?

寵の児 提交于 2020-01-12 16:49:33
问题 I've noticed, that some USB storage devices don't register in Windows as regular drives, in that they don't even get assigned a drive letter. Therefore, I can't apparently access them using the standard file operations C API. What are the WinAPI calls I can use to do some normal file operations on those strange devices - so: find/enumerate those devices at all, browse the file/directory tree on the device and get some file stats (size, modification date, etc.), read/write contents of the

Upstart calling script (for inserted USB-drive)

雨燕双飞 提交于 2020-01-11 18:32:20
问题 I know that Ubuntu (and Fedora) uses Upstart istead of the classical System V init daemon (SysVinit). I would like to know how to detect when a USB-drive has been inserted, mount it and copy some files to it. I would like Upstart to call my own script for this. If it is possible I would like Upstart to call the script for a specific USB-drive, so that I would get normal functionality for every USB-drive except my "instant backup" USB-drive. If Upstart could send the USB-drive identification

Detecting and Writing to a USB Key / Thumb DriveAutomatically

对着背影说爱祢 提交于 2020-01-07 06:38:21
问题 I've been fighting with this for quote a while now: I'm trying to automatically detect the insertion of a USB key in Angstrom linux, but it's proven to be really tough. I unfortunately don't know a ton about linux and the file system, so any points come with quote a bit of gratitude. Right now I'm having a bit of trouble just detecting the USB key. My strategy so far has been to parse /proc/mounts to look for the mount points and write to those. Is this the best way? 回答1: Yes, better way is

What development tools do you carry on your USB drive? [closed]

梦想与她 提交于 2019-12-29 10:08:31
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I've just bought a new 4GB USB thumb drive and I'm trying to decide what to put on it. I'm thinking about one of the webserver on a

Can Android apps on Chrome access USB storage using the new ARC? (based on containers, limited device beta)

人盡茶涼 提交于 2019-12-25 08:28:08
问题 I recently found out that Google introduced a new runtime in May 2016 to run Android apps on Chromebooks. I'm already using the original ARC which was introduced a couple years ago. Unfortunately, the only way to access storage outside of the private runtime is by enabling { "enableExternalDirectory": true } , which prompts the end-user to mount a directory at startup, and then they can manually re-mount + restart as needed. This is not user-friendly. The new Android Runtime is only supported

Android app on Chromebook to access USB devices?

一笑奈何 提交于 2019-12-24 15:11:14
问题 I am taking an Android app and making it run on Chrome using the ARC Welder. For best results we're only targeting the Chromebook / Chrome OS, not Windows or OSX. The app is running with some minor glitches, but I need to enumerate photos on an inserted SD card. The problem is that the /mnt folder accessible within Android Runtime only contains the virual sdcard folder, and does not reflect the real SD Card or USB Flash Drives attached to the Chromebook. How can these photos be automatically

How to prevent autoplay and run my own app when inserting an USB-Flash drive

点点圈 提交于 2019-12-23 04:39:34
问题 when inserting an USB-Flash drive, Windows normally opens the Autoplay dialog that offers to browse the drive or if there are multimedia files it offers to choose an app to open them. We developed a media player that is connected to the USB-Drive and registers itself as Mass Storage Device. What I need is, that when inserting the Player that this Dialog is not shown, but instead my own application is launched. Ideally the application would be on the Flash Drive itself, but as I understood is