this post was submitted on 08 Jul 2024
27 points (93.5% liked)
Linux
48031 readers
1112 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
- 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
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I could be wrong but I thought fstab only runs those commands on boot? If so you'll need to manually unmount using "umount" for now. It shouldnt be there next reboot
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?
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
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......
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 :)
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.
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