27
submitted 2 months ago by EvilCartyen@feddit.dk to c/linux@lemmy.ml

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
[-] ElderWendigo@sh.itjust.works 1 points 2 months ago* (last edited 2 months ago)

With all due respect, RTFM. Mount and umount are two sides of the same operational coin. You mount the drive to use it and unmount it when you're done. fstab is just a file system table used to remember and consistently apply the options used whether you're mounting the drives manually or telling the system to do it at boot.

Deleting a line from fstab is not the same as unmounting, it is just a shortcut to tell the system how you want that drive mounted when you or the system run the mount command. Mount directories (usually the folders in /media/ or /mnt/ ) also do not get automatically deleted just because you "yanked the drive". Again, those directories are just where your system is expecting to mount the drive. When the drive is mounted they will be the root path to its contents, when the drive is unmounted they will be empty but they still exist. If your planning on mounting the drive again leave them there. If you're not planning on mounting them again, delete them.

If you're not planning on regularly mounting a particular drive, it probably shouldn't be listed in fstab and you should just run the mount command with the appropriate options (again fstab is just a table for remembering those options for the mount command).

Many desktop Linux distros are also capable of automatically mounting new removable drives in such a way that the user can access them and doesn't have to worry about touching fstab or the mount directories.

[-] EvilCartyen@feddit.dk 8 points 2 months ago

Thanks. I don't mind reading manuals at all, but is this not a community for asking questions?

load more comments (3 replies)
this post was submitted on 08 Jul 2024
27 points (93.5% liked)

Linux

47347 readers
1855 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