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?
Did you umount the file system before unplugging the drive?
I figured removing it from fstab was akin to unmounting it.
I don’t think so. I guess it’s sort of possible that it automagically does that but I haven’t kept track. I just use umount(8).
Definitely no
Hopefully it wasn’t in use and doing that can cause issues. It probably not a big deal but next time hit the eject button.
Nope, it doesn’t work that way. You have to umount it. You could reboot after removing it from fstab, but that’s a bigger hammer than necessary.