I have very little experience with linux, so maybe this is a dumb question :)

I run Ubuntu 24.04 on a machine, and I had an old HDD in a usb-case which I mounted using fstab. Worked fine, but I decided it wasn’t appropriate for my purpose and removed it (physically and from fstab).

But it still shows up in the file manager? What am I missing?

You are viewing a single thread.
View all comments View context
7 points

Well, I just rebooted and it’s still there, which is what is confusing me :) But thanks!

So I should unmount it in other ways too?

permalink
report
parent
reply
6 points
*

Are you saying the drive still shows up on the side as ejectable? Or the mount directory is still there?

If the latter what directory is it mounted to? May just be as simple as deleting that directory if its empty. (Assuming its like /media/xxx/ or /mnt/yyy/)

Check with lsblk command if anything is in those directories

permalink
report
parent
reply
3 points
*

It’s mounted to /srv which is not empty, and I can also still browse some of the folders on the removed drive, which is also confusing :) I don’t understand how that’s even possible.

Edit: It does not show up as a drive, but the mount directory is still there with a folder structure and a single file.

Edit2: I deleted the folder which seems to have done the trick. Still confused about how and why it was still accessible…

permalink
report
parent
reply
13 points
*

It’s mounted to /srv

I suspect that your /srv had already existed before you mounted that drive for the very first time, and there were even some files in /srv.

The mounting of the drive has made these “old” /srv files invisible. But it has not deleted them. Now you unmounted the drive, and they have come back like Zombies :)

permalink
report
parent
reply
7 points

When you mount something into a directory that already exists, the drive mount replaces the original contents. When the drive is unmounted, the original contents are restored.

permalink
report
parent
reply
6 points

Does lsblk say it was mounted to /srv? If the drive doesn’t show up in lsblk that means that /srv is non-empty and those files exist on whatever drive your root directory is on

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments