How to Safely Eject External Drives in Ubuntu
Safely ejecting external drives in Ubuntu prevents data corruption and keeps your files safe.
This process tells your computer to finish writing any information to the drive before you unplug it.
For example, pulling out a USB stick while transferring files on Ubuntu 22.04 LTS could damage the files on that drive.
You can safely remove your drives using either the file manager or the command line.
Open the Files application, find your drive in the sidebar, and click the eject icon next to its name. If the drive is busy, close any open files on it first, then click eject.
How to safely eject the external drive in Ubuntu Linux
Safely ejecting your external drive in Ubuntu Linux helps prevent you from losing or damaging your files. To do this, open the Files app, then click the small eject icon next to your drive’s name in the sidebar.
Open the Files application by searching for it from the Activities overview.

You can also open the File Manager by clicking its icon on the Dock, where it’s open by default. This tool lets you manage your files.
Locate your drive in the sidebar. You’ll see a small eject icon next to its name. Click this icon to remove or eject the device safely.

As another option, right-click the device’s name in the sidebar and select Eject.

If files on the device are currently open and in use by an application, you won’t be able to remove it safely. A window will appear stating “Volume is busy.”
To proceed, click Cancel.
Then, close all files on the device. After that, click the eject icon to safely remove it.
You’re all set!
Conclusion:
- Safely ejecting external storage devices in Ubuntu Linux is crucial to prevent data loss or damage.
- Utilize the “Files” application to eject external drives from Ubuntu Linux safely.
- Always ensure that files on the device are closed and not in use by any application before ejecting the device.
- Following these steps will help maintain the integrity of your data and prevent any potential loss or damage to your files.
What is the difference between safely remove drive and eject drive?
“Safely Remove Drive” and “Eject” mean essentially the same thing. The process first unmounts the filesystem (similar to using the `umount` command), then it sends a SCSI eject command, which devices like CD-ROM drives recognize, while most other devices ignore it.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!