my usb is not accessible "The request could not be performed because of an I/O device error" - usb-drive

i`m trying to open my USB and i have the message drive is not accessible. The request could not be performed because of an I/O device error

Try this Easy step. It will be work for you.
Type CMD on your system search bar.
Right click and choose "Run as administrator".
Type chkdsk /f [Drive:]. Replace the [Drive:] to your removable drive letter. For e.g: If your USB drive letter is G:, then type chkdsk /f G:
Press "Enter" button to execute that command.
Now your USB can works fine and you can able to copy & paste your data.

Related

Command line bluetooth discovery as in Windows 10?

I'm trying to experiment with Bluetooth discovery from the command line.
I have tried:
btdiscovery from https://bluetoothinstaller.com/bluetooth-command-line-tools ( via https://superuser.com/questions/1604313/command-line-check-if-a-certain-bluetooth-device-is-discoverable )
The C code from https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedotherprotocol4j.html (via Unable to connect to Bluetooth Device using Window's Bluetooth API in C++)
Both of these, have the same problem: that when I run Bluetooth "discovery", they report one or two devices maximum, and then they exit.
However, if in Windows 10, I go to: Windows Settings/Devices/Add Bluetooth or other device/Bluetooth, so I get "Add a device" window:
... I get a while bunch of devices that are continuously updated (and some disappear, then reappear again)
Does anyone know of a ready (C/C++) example that would reproduce the same results I get in this "Add a device" window, but in the command line/terminal?
Short of that - could anyone give me any pointers on what APIs I'd need to use, in order to replicate the same Bluetooth discovery results from this "Add a device" window in a command line application? (presumably, that would be a continuous Bluetooth discovery process, that would be interrupted by Ctrl-C or similar in the terminal)

Disable USB Connected Digital Picture Frame

Is it possible to disable & enable a USB connected digital picture frame in a windows batch file? I am currently using the DEVCON Enabhle/disable command & that does make the unit not shown as a drive & shows USB disabled in the Device Manager but the actual frame still thinks its connected. It is not until the frame is turned off/on or the USB cable is removed that it act like its not connected.
Here is my current program.
devcon enable *DEV_24CD
devcon enable *DEV_24C2
devcon enable *DEV_24C4
copy C:\Pic_Frame\Br_Frame\*.* E:\ /y
copy C:\Pic_Frame\Blk_Frame\*.* I:\ /y
del C:\Pic_Frame\Br_Frame\*.* /q
del C:\Pic_Frame\Blk_Frame\*.* /q
devcon disable *DEV_24CD
devcon disable *DEV_24C2
devcon disable *DEV_24C4
I understand this maybe an issue with the frame, but hoped there was something on the PC I was missing.
Thanks in advance.
Andy
If you need the USB device to know it's disconnected you should have it reenumerate on the bus, which would mimic unplugging and plugging in USB, or possibly the on/off toggle in your case.
Instead of devcon disable issue devcon remove to disable and remove the device from the system completely. Then use devcon rescan to get it to reenumerate again. Depending on what you are trying to do you might need to use a combination of these and your original enable/disable commands.

Windows: suppress warning when plugging in unformatted flash drive

I'm working on a device that writes some information directly to a flash drive, without using any file system (it just writes blocks of data directly to the disk sectors). After the flash drive is filled, I need to plug it into any computer with windows and read data using my application.
Everything works great except for when I plug the flash drive in windows warns me that flash drive is invalid an offers me to format it. I want to get rid of this message for my flash drives on any computer that have installed my windows application.
My flash drive have signature bytes at the start so I can always make out whether it's my flash drive or just a regular flash drive.
My idea is that I should be able to write some sort of service or driver which will check all flash drives and will disallow OS to mount my drives. However I don't know whether its really possible and I can't find any documents mentioning this sort of functionality.
I'd appreciate any docs / links / functions names that can help me suppress unformatted disk warning.
Make a tiny real partition at the start and format it to keep windows happy.
Then just use the rest of the drive as you please
This seems to work:
Remove the drive letter assigned to the device:
Right-click the 'Computer' (or 'My Computer') icon on your desktop or in the Start Menu and select Manage. The 'Computer Management' window should appear.
From the list on the left, select 'Disk Management' (within the Storage sub-tree).
Right-click the encrypted partition/device and select Change Drive Letter and Paths.
Click Remove.
If Windows prompts you to confirm the action, click OK.

USB AutoRun: 'Open In Browser' Option never appears

I am attempting to make our webpage open when someone plugs in our USB device.
My Problem: When we plug in the USB device the autorun dialog appears but there is never an option to open/run the webpage we have specified. See below pic of the dialog we see. Isn't there meant to be an option that says something like "Open in Internet Explorer" or etc.?
What we are hoping to achieve is to have another option below 'Use this drive for backup' that says something like 'Open in Web Browser' or something that will ultimately open our webpage when the users decides to.
Heres our code that is inside the file autorun.inf which is placed on the USB device:
[autorun]
shellexecute=http://exds-test.epicservices.com.au/V10InstallationInfo.aspx
action=Open Website
label=EXDS USB Drive
According to this link, this will not work on modern OS versions
http://www.flashbay.com/services/usb-autorun
You've got to use a "helper" application.

Auto Open USB Drive on Mac 10.6/7/8/Windows XP/Vista/7

I'm creating a FAT32 formatted USB Stick/Drive to ship a product. We'd like it to behave a bit more like the hybrid CD/DVD's that we create:
Insert the disk on Mac 10.6 or later and the drive opens up and shows you a window with the application in it. We can do it from a DMG or CD but the USB drive doesn't seem to want to honor the bless command.
On Windows, we've set up an autorun.inf. On XP it's not showing the icon, label, or opening the specified file. I know that you can't have Windows Vista and Windows 7 automatically open something or add an entry to the AutoPlay list by default, but it still should show the Volume Label and icon.
Here is my autorun.inf:
[AutoRun]
Action="Install My Cool App"
Open="InstallThis.exe"
icon="Ultimate.ico"
[Content]
MusicFiles=false
PictureFiles=false
VideoFiles=false
Are these things too much to ask for a USB stick? Anyone else out there shipping things on a USB flash drive and have overcome these issues?
As of Windows 7, AutoRun feature is not supported on USB drives. Only the following commands are supported:
label
icon
See Improvements to AutoPlay on Engineering Windows 7 blog.
Examples in Autorun.inf Entries do not use quotes for values. Does it work without the quotes?
MacOS might have implemented a similar approach to Windows 7: do not autorun anything from a flash drive automatically to protect you from malware.

Resources