User Tools

Site Tools


uneject_an_usbstick

If you want to send us your comments, please do so. Thanks
More on comments


Uneject an USBstick

Being able to uneject an USBstick is very handy when writing scripts involving inserting and extracting USBsticks.
Below sdb and sdb1 are just an example. Whith

sudo blkid

you can see what the drivename and number of the USBstick is.
When you do

eject /dev/sdb1

the USBstick will not be shown with

sudo blkid

so apart from being unmounted it is also some sort of ejected but still connected to the PC. Mounting does not work at this point.
With

eject -t /dev/sdb

an USBstick can be unejected. Now the USBstick can be mounted again.
When you get an error message have a look at Uneject


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
uneject_an_usbstick.txt · Last modified: 21-03-2015 21:15 by wim