this post was submitted on 08 Jul 2024
24 points (92.9% liked)

Linux

47233 readers
784 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[–] abominable_panda@lemmy.world 6 points 2 months ago* (last edited 2 months ago) (1 children)

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

[–] EvilCartyen@feddit.dk 3 points 2 months ago* (last edited 2 months ago) (3 children)

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......

[–] NeoNachtwaechter@lemmy.world 13 points 2 months ago* (last edited 2 months ago)

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 :)

[–] rand_alpha19@moist.catsweat.com 7 points 2 months ago

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.

[–] communism@lemmy.ml 6 points 2 months ago

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