Removing a mounted drive in Linux

 Before we begin, please note that it is only necessary to unmount a drive when you want to remove it from your computer.

For example, if you want to remove an external hard drive or USB drive, you will need to unmount it first. If you are not sure whether or not you need to unmount a drive, please consult your Ubuntu documentation or ask a qualified Ubuntu support specialist.

Note that if your drive is still listed as a mount point in your /etc/fstab file after you've removed your drive, then removal of a drive is normally only temporary until you reboot, except when your device is portable.

If the physical device your mount point is attached to is still connected on reboot, your startup configuration will attempt to re-mount the drive when your machine starts, unless you manually remove the line relating to that drive.

Also note that if you remove your drive and don't remove the associated /etc/fstab line your system may be unable to boot if what you've removed is required for startup or is part of a server you're running (e.g. you're storing important system configuration files on a separate drive, then disconnect it, your system may not start at all on reboot).

Graphical method - using the GUI

If you're using Ubuntu, you may have noticed there's no obvious way to unmount a drive in the file explorer.

While this may be confusing at first, it's actually quite simple once you know how.

In this article, we'll show you how to unmount a drive in Ubuntu with a step-by-step guide.

First, open the file explorer and find the drive you want to unmount.

Right-click on the drive and select "Disconnect." A pop-up window will appear asking you to confirm that you want to unmount the drive.

Click "Disconnect" again and the drive will be unmounted.

That's all there is to it! Now you know how to unmount a drive in Ubuntu.

Command line method - using the command line interface (CLI)

To unmount a drive in Ubuntu, follow these steps:

1. Open the terminal.

2. Type in the following command, replacing "DRIVE" with the name of the drive you want to unmount:

    sudo umount /media/DRIVE

3. Press Enter.

4. Type in your Ubuntu password and press Enter.
Name

false
ltr
static_page
Tech Lab: Removing a mounted drive in Linux
Removing a mounted drive in Linux
Tech Lab
https://techlab.connektiv8.com/p/removing-mounted-drive-in-linux.html
https://techlab.connektiv8.com/
https://techlab.connektiv8.com/
https://techlab.connektiv8.com/p/removing-mounted-drive-in-linux.html
true
5093225316588518036
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network