usb-drive

Where is g_multi configured in BeagleBone Black?

一世执手 提交于 2019-12-21 17:29:16
问题 With the default Debian installation in a BeableBone Black you can access it via USB as different devices: mass storage device, virtual ethernet and virtual serial uart. This is accomplished with the g_multi module. You can review its configuration via files in /sys/module/g_multi/parameters/ . I am trying to use it only as a mass storage device but with other disk/block device, not the second partition in the boot block device. I have checked that it is always the same partition not matter

Find USB drive letter from VID/PID (Needed for XP and higher)

混江龙づ霸主 提交于 2019-12-20 09:37:28
问题 So I thought I would include the final answer here so you don't have to make sense of this post. Big thanks to Simon Mourier for taking the time to figure this one out. MY WORKING CODE try { //Get a list of available devices attached to the USB hub List<string> disks = new List<string>(); var usbDevices = GetUSBDevices(); //Enumerate the USB devices to see if any have specific VID/PID foreach (var usbDevice in usbDevices) { if (usbDevice.DeviceID.Contains(USB_PID) && usbDevice.DeviceID

Python portable, linux & windows

ぐ巨炮叔叔 提交于 2019-12-18 13:33:21
问题 I am using linux at home but at school we use windows 7. I want to have python installed on my usb to that I can use it for both windows and linux (ubuntu 13.04). Is there a way that I can install python on my usb so that both win and linux computers can use it? I am more interest in python 2.7. I have Wine installed on my linux machine. It might no be ideal but could I use portable python and run it under wine? 回答1: You can install two python's. Download Anaconda from http://continuum.io/

OK Programming language from USB stick with no installation

本秂侑毒 提交于 2019-12-18 11:56:20
问题 I'm looking for a compiler or interpreter for a language with basic math support and File IO which can be executed directly from a memorystick in either Linux or Windows. Built in functionality for basic datastructures and sorting/searching would be a plus. (I've read about movable python, but it only supports windows) Thank you 回答1: Not sure what are the issues there for the other languages, but I am pretty sure that Lua will work fine on such environment. It is perfect for your requirements

Portable Ruby on Rails environment

六月ゝ 毕业季﹏ 提交于 2019-12-17 16:38:18
问题 I got myself a new 8 gig USB key and I'm looking for a decent solution to have a portable RoR environment to learn on. I did the google on it and found a few possibilities, but I'm curious to hear some real life experiences and opinions. Thanks! 回答1: I like InstantRails, very easy to use, no installer, and does not modify your system environment. 回答2: InstantRails was replaced by [BitNami RubyStack] in 2007. http://bitnami.org/stack/rubystack 回答3: How to create a portable environment based on

Find path of the PenDrive

旧城冷巷雨未停 提交于 2019-12-13 18:25:37
问题 I am beginner in android. How to find path of the PenDrive connected to android tablet programmatically at runtime. Because I need to store some files into the pendrive. 回答1: You will need to ask your device manufacturer. At the present time, the Android SDK has support for only one "external storage", and that will not be a "pen drive". 来源: https://stackoverflow.com/questions/11119016/find-path-of-the-pendrive

Writing a file to a USB stick in linux with Python?

空扰寡人 提交于 2019-12-13 16:01:29
问题 I'm having a lot more trouble than expected writing to a file than I expected. I have a small Single Board computer running on an arm processor with the Angstrom embedded distribution. I'm writing an application for it with python. The application should detect the USB stick and then dump the file to it. The issue I'm running into is that even when my script appears to write the file correctly, and the file appears to be there using "ls" and "cat" in Linux, when I remove the USB stick and try

Detect media insertion on Windows in Python

[亡魂溺海] 提交于 2019-12-13 15:54:17
问题 I need a program that detects media insertion and also tells me the drive letter so that I can build on it and add other functions to be run when the device inserted event is fired. I think it can be done using WMI using the Win32_VolumeChangeEvent class (I found some implementations in Powershell and C# but I want to do it with Python). I know there is also the wmi module for python eventually and I found this snippet of code from a Python mailing list but it seems it doesn't work. Then I

Run when USB is mounted [duplicate]

人盡茶涼 提交于 2019-12-13 08:55:38
问题 This question already has an answer here : Autorun removable drive (1 answer) Closed 3 years ago . Microsoft disabled autorun. However to run a scan and backup files (defined in file.cmd ), I found this AutoIt script: $DBT_DEVICEARRIVAL = "0x00008000" $WM_DEVICECHANGE = 0x0219 GUICreate("") GUIRegisterMsg($WM_DEVICECHANGE , "MyFunc") Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam) If $WParam == $DBT_DEVICEARRIVAL Then MsgBox(4096, "Info", "My Drive has been Inserted, Backup My Files!") EndIf

How to Read Pen Drives connected through OTG?

为君一笑 提交于 2019-12-12 20:19:37
问题 Here is my code of my activity. public class MainActivity extends AppCompatActivity { ListView lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lv=findViewById(R.id.chckExternal); filter(); } this is my code of filter files... //--------------------Filter files---------------- public ArrayList<File> findSongs(File root) { ArrayList<File> al = new ArrayList<>(); for(File singleFile : root.listFiles())