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
6 points
*

Don’t do that.

fstab is just a config file so the computer knows what drives and storage volumes its supposed to have when it boots.

You can add and remove drives without ever editing fstab. Plugging something in should give you the option to mount it in your file explorer, and in the same place you should be able to “eject” it before disconnecting the actual cable.

permalink
report
parent
reply
5 points

Don’t do that.

Coming from non-linux, it’s not usually a problem. But now I know better :)

fstab is just a config file so the computer knows what drives and storage volumes its supposed to have when it boots.

You can add and remove drives without ever editing fstab. Plugging something in should give you the option to mount it in your file explorer, and in the same place you should be able to “eject” it before disconnecting the actual cable.

I know that, but this particular drive was meant to be permanently mounted and accessible, which is why I added it to fstab. I am removing it because it’s damaged and i have to replace it with something which isn’t to act as a permanent drive for the server.

Thank you for your help :)

permalink
report
parent
reply
1 point
*

It was always a problem. On all systems.

Filesystems are resilient, but one that is actually designed to reliably survive being physically disconnected without warning, does not exist.

Windows has always had a “make safe to unplug” button, too.

Not that it matters if you were discarding the drive.

permalink
report
parent
reply
0 points

I mean, yes. But on the other hand, I’ve removed usb-connected media without using that button thousands of times and never had an issue. I’m obviously not doing it when I am writing to or reading from the medium.

Either way, thanks again for taking the time to respond :)

permalink
report
parent
reply
1 point

Linux or not, never just yank out a usb. That’s a good way to end up corrupting it. Always unmount/eject before removing!

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

    Monthly active users

  • 5.6K

    Posts

  • 154K

    Comments