I'm using the upload.cgi to delete a file from the SD and upload a newer version of that file to the SD, but the device the SD is into still does recognize the old version.
The FlashAir SD seems to cache the old file contents until I reboot it.
I know that writing to one SD card from two devices is a bad idea so I understand why they implemented it like this, but I need to swap a file on the SD without unplugging it from the device ...
Is there any kind of hidden setting, shell, whatever I could use to actually make the card "have" the edited file without unplugging the card?
The device the SD card is in will not write to the SD at all (so, no data corruption due to two devices writing at the same time), but it recognizes when I unplug the SD and refuses to work (because it validates the file on restart or when I re-insert the SD). But I'd like to swap that file "live" without the device noticing anything strange...
Related
In a DART-6UL linux based board, when I booted my system (both from eMMC or SD Card) with USB flash drive or a FTDI USB-to-serial converter inserted, it compared in: /run/media device list or in: /dev list.
When I removed it, USB devices are correctly removed, but it's no possible to inserted again. The only way is to reboot the system with USB inserted.
I tried the same on the EvKit and USB can be inserted and removed all times with no problem, without the need of reboot.
In Kernel usin Menuconfig I set CONFIG_USB_SERIAL=y and ftdi-sio module appears as regularly loaded at boot.
What can I check on my system?
I want to open a PowerPoint file when I plug in the USB Drive. I know that there is something called Autorun, but I do not know how to make it open a file in my USB Drive.
Windows had a built in feature where you could set a USB to auto run on any machine when it was plugged in. It would usually prompt the user if they wanted to run the files. but some clever fellows figured out how to bypass this prompt and used it to maliciously run code from the USB as soon as it was plugged in. Windows 10 patched out the ability to auto run flash drives meaning that without finding a work around it is unlikely that you will get a USB to auto run.
In genymotion settings->storage there is only the internal storage, no SD card.
Is there a way to have a SD card also?
There's already some emulation of SD card (external) storage in Genymotion that might work for you, depending on what you're trying to do. Although Settings->Storage doesn't show it separately as External Storage like you might expect, Genymotion does emulate external storage. The size of files stored there will be reflected in the totals shown under Internal Storage by Settings-Storage.
Running in Genymotion, an app using Environment.getExternalStorageDirectory().getPath() or .getAbsolutePath() will get back /storage/emulated/<userId>, where userId=0 if the app is running as Owner, and 10, 11, 12, etc. if the app is running as another user or restricted/managed profile. The Android framework actually maps this for you to /mnt/shell/emulated/<userId>, which is why you won't find /storage/emulated/<userId> if you use a shell to poke around.
The paths /sdcard and /mnt/sdcard are symlinks to /storage/emulated/legacy, which is basically the Owner's storage. Don't use these in your apps, since they might not exist everywhere and/or your app might not have access to them if not running as Owner. They are just there to support legacy hardcoded apps.
Not being sure what you're trying to do, it's probably also worth mentioning that Genymotion now supports VirtualBox shared folders which will appear under /mnt/shared inside your VM. Check their Google+ post for instructions.
I'm looking for a method of reading/writing (actually programming) the Master Boot Record (or maybe VBR) of a usb mass storage device. Actually its a flash drive whose MBR I want to program, so that whenever I plug it into any computer, a program (stored on my flash drive in a file) gets executed.
I know quite a bit of assembly but I don't know how to go about programming MBRs..
Please help
Thanks
If you're using linux, you can simple open the device file /dev/sdXY and write to it, the MBR will be the first 512 bytes.
Is there a way to programatically turning off the power or killing a USB port on the Mac?
I believe that the USB power typically comes directly from the power supply. It might go through the motherboard or some other hardware to combine it with the data lines, but I don't think the voltage ever goes through any programmable circuitry. If you wanted to deactivate the data transfer, that would probably be possible since that is handled by an extension file (IOUSBMassStorageClass.kext), but short of modifying the port physically, I don't think you will be able to deactivate the power.
If you're refering to USB storage devices, according to the Tiger Security Configuartion Manual (pdf):
6 To remove support for mass storage devices (e.g. USB flash drives, external
USB hard drives, external FireWire Hard Drives), drag the following files to the Trash:
IOUSBMassStorageClass.kext
IOFireWireSerialBusProtocolTransport.kext
7 Open the /System/Library folder.
8 Drag the following files to the Trash:
Extensions.kextcache
Extensions.mkext
9 Choose Finder > Secure Empty Trash to delete the file.
10 Restart the system.
I've seen some other stuff around but it's all much harrier. Leading gluing the ports up to get suggested quite a bit.