I'm on Debian Bullseye XFCE. Please find the relevant details of my system below:

vrgovinda@krishna:~$ uname -a
Linux krishna 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 GNU/Linux

When I try to eject my USB drive, I get the following error:

error message

I am experiencing this error only recently (2-3 days). Can someone help me out?


  • If this is a USB device then you should use umount command instead. Eject is usually used for Optical media like CD-ROM drives which don't need to flush data before disconnection. What is the reason behind using eject instead of umount ? Nov 9, 2021 at 10:19
  • @ValentinBajrami: I meant the eject symbol in the sidebar of my file manager. Edited my question title. Nov 9, 2021 at 10:34
  • 1
    @ValentinBajrami Up-to-date eject is actually the right command. man 1 eject in Ubuntu states "if the device or a device partition is currently mounted, it is unmounted before ejecting". In my Debian eject is older, the manual says "if the device is currently mounted, it is unmounted before ejecting", so I don't know how well it handles mounted partitions in Debian. Anyway, sole umount unmounts a filesytem. eject is designed to flush to a block device and prepare it to be physically disconnected. Nov 10, 2021 at 12:18
  • 1
    @VrajarajaGovindaDas What is the output of type -a eject in Bash? What is the output of apt list --installed eject? Maybe eject is not installed. In this case you need to invoke sudo apt-get install eject. Nov 10, 2021 at 12:21
  • 1
    @VrajarajaGovindaDas Hint: to embed a picture you need a link to the picture only. The link you posted is to a site where your picture can be seen along with other things; it's not a link to the picture itself. Nov 10, 2021 at 12:31

1 Answer 1


Thanks @kamil. I don't know how, but eject was not installed. But previously I have many a times used to eject the USB drive directly from my file manager. Anyway, I have installed eject, and now everything works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.