Quote:
Originally Posted by shruggy
Code:
sudo udisksctl power-off -b /dev/sdc
|
Thanks all for the tips again.
The command above does the same thing as clicking on the little eject icon in my file manager Nemo (or running
sudo eject /dev/sdc). The light on my USB stick goes
off and it disappears from the list of devices in Nemo. After that command it also doesn't show up anymore in the command
lsblk. When I use any command with
umount in it the light stays
on and it's easy peasy to remount it.
Maybe I'm wrong: after ejecting and/or power-off it's not possible to get power on without re-inserting the USB stick.
When I format an USB stick I always remove and re-insert the stick to force Linux to re-read the new partition table etc. I thought I remembered that I issued a command that would do the same thing without touching the USB stick. Guess I'm wrong...