I'm connected via ssh to a Debian computer. What I need to to do is to safely remove the external usb storage device.
I have found this answer to a comparable question. One of the recommendations is just to eject or unmount by doing sudo eject /dev/sda. Now my problem is that I don't have a /dev/sd*.
So the next proposed solution is by echo
'offline' > /sys/block/sdb/device/state
echo '1' > /sys/block/sdb/device/delete
Now my problem is another one. How do I now the my usb hard drive is sdb and not sda, sdc or sdd?
lsusb `just shows me` Bus 002 Device 008: ID 1058:25a2 Western Digital Technologies, Inc. Elements 25A2
Do you have any ideas? Thanks in advance