Due to a broken
udev setup on a machine from which I'm trying to rescue data (see this post of mine) I'm trying to write to a "character special" device corresponding to a USB flash drive, but am encountering difficulty.
What I would expect is that (with root permissions) I could do this:
echo "test 123" > /dev/bus/usb/001/031
But I get
bash: echo: write error: Invalid argument
What's going on? How can I write to a character device?
P.S.: this is of interest specifically because the block devices I would normally expect (
/dev/sdb, stuff in
/dev/block) aren't being created for some reason. Yet I noticed that a character device does get created when I insert a USB drive (and removed when I remove it). If I could find some way to write to that device I could save myself a lot of trouble transferring data slowly over audio cables (which is my current best approach).