this post was submitted on 20 Sep 2023
82 points (97.7% liked)

Linux

48185 readers
1109 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
top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 17 points 1 year ago

lsof /mountpoint

[–] [email protected] 13 points 1 year ago (1 children)

fusker -k
...i like living dangerously

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

In that case, why not simply

rm -rf /

😜

[–] [email protected] 5 points 1 year ago

Too simple.

For complexity, add a "sudo" :-)

[–] [email protected] 8 points 1 year ago (1 children)

And what do you do when neither fuser not lsof return any results? Every single time I've had something stuck that refused to umount, I have gotten no help from either of these tools. One recent example was mounting a drive image as a loop device, modifying /etc/fstab, backing out of the mounted device so I could umount it.... and it completely refused.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

umount -l usually works for me

[–] [email protected] 1 points 1 year ago

True, but it leaves things behind that can get in way when you go to mount other resources in the same folder. On my desktop I just reboot to clear things up, but on my servers it is usually months between reboots and I have to schedule it.

[–] [email protected] 7 points 1 year ago
sudo umount -l

/s